I am trying to refine a script so it can run on several computers without changing. I know I can create a folder on the startup disk:
open folder “Photos” at startup disk
But is it possible to tell finder to open a specific folder on the current desktop without knowing the user name?
Something like: open folder “Photos” on current desktop of startup disk.
The ‘path to’ command combined with ‘desktop’ will work on any Mac OSX computer and give the script the Finder reference to the current user’s desktop folder. Like so:
set pathToDesktop to path to desktop
– returns something like this: alias “SystemDisk:Users:username:Desktop”
Yeah, I noticed that when I checked my code, but I figured mentioning that might confuse the issue. You missed a nit: I left out the last colon in my result note.