OSX Applescript - specify a shared local user directory

I am looking to create applescript that will work through our office and copy the selected file for users / employees co-workersusername / library / application / adobe / cameraraw. Is there a common alias so I can copy the file to any current user library?

+3
source share
2 answers

You can use the standard Unix shortcut to access the user's home folder:

set path_ to "~/Library/Application Support/..."

The previous one ~is a shorthand for the user's home directory (equivalent to an environment variable $HOME)

+2
source

You can use something like this:

set adobeCameraRawFolderPath to (((path to application support from user domain)
                    as string) & "Adobe:CameraRaw:") as alias

To get the POSIX path:

set posixAdobeCameraRawFolderPath to POSIX path of adobeCameraRawFolderPath
+3
source

All Articles