I am trying to reference an HFS file path that works on all systems if possible. Meaning reference the home directory. From what I can tell I have to go through the Finder to do that.
This works but the problem is it is an absolute path and only works on one system.
run script file "Mac HD 1TB:Users:BozRoz:Dropbox:Reference Files:*My Scripts:Aplication Scripts:Pomodoro:01 Start.scpt"
This works but the problem is the path is harder to read (plus it only opens it and doesn’t run it).
tell application "Finder"
open document file "01 Start.scpt" of folder "Pomodoro" of folder "Aplication Scripts" of folder "*My Scripts" of folder "Reference Files" of folder "Dropbox" of home
end tell
What I’m hoping for is a hybrid if possible is something like this
run script file "Dropbox:Reference Files:*My Scripts:Aplication Scripts:Pomodoro:01 Start.scpt" of home
If I understand correctly “of home” would be need to used by in a Tell App “Finder” command. I am not at all a fan of the “of folder” approach because it is harder to read and I am going to be using this in several AppleScripts.
Browser: Safari 534.57.2
Operating System: Mac OS X (10.7)