![]() This script will operate on the currently selected pane. Set targetFolderAlias to alias POSIX file targetFolderPathįorklift's AppleScript dictionary is brain-dead but not entirely useless. Set targetFolderPath to ((current application's NSString's stringWithString:targetFolderPath)'s stringByExpandingTildeInPath) as text Set targetFolderPath to "~/Downloads/Test Folder in Downloads/" # Posix Path or Home-Based (Tilde) Posix Path: Use AppleScript version "2.4" -» Yosemite or later Set targetFolderAlias to alias ((path to downloads folder as text) & "Test Folder in Downloads:") You can apply a folder’s view settings to only those folders. Easy peaseyįinder is simple: # Path-To based alias form: Set a default Folder View for all folders in Windows Now that we are clear on the basics, let’s roll over to the task at hand. Tell application process "Default Folder X"ĭo shell script "killall 'System Events'"īy the way Chris - thank you for your patience! Worked out how to paste AS script. But is there a simpler way? (Folders are living on webdav mounted volume but is there a way to script so does not matter if local or mounted volume? repeat x times My original solution was to use script below to access DFX Favourites menu and then change the repeat to select correct folder. The DFX Favourites menu is available but I would like to be able to switch folders using AS script in similar fashion to above solution. It does not work when the DFX dialog is not in use. set webDavDiskAlias to alias "77.103.226.111:VW Files 2023:HT H Tiddy" This works great when switching folders from the Default Fold X interface so big thanks. That should pop a Finder window showing the root directory of the share, which will prove things are properly mounted/accessible. Set goToPath to get variable "Local_GoToPath" - I'm assuming 2 underscores in there?Īnd, unless this is part of something bigger and you earlier got (or later need) the full path, the Parent Path Filter action is unnecessary - just use /Volumes/77.103.226.111 when you set your variable.Īs with Chris's tests, make sure you're connected to the WebDav volume, but have no Finder windows open, and then try: tell application "Finder" Tell application "Keyboard Maestro Engine" It shouldn't make a difference, but you could try setting an explicit file object by changing the AppleScript in your last macro to: set inst to system attribute "KMINSTANCE" I don't have Default Folder X, but the examples on their website separate setting the path from calling SwitchToFolder. ![]() You didn't actually use the path in your script - you set it in KM, "imported" it into the AppleScript, but used a different value for SwitchToFolder. ![]() But might have been just me not getting addressing correctly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |