Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX Applescript - Specify generic local user directory

I'm looking to create an applescript that will run across our office and copy a select file to co-workers users/co-workersusername/library/application support/adobe/cameraraw directory. Is there a generic alias so i can copy the file to whatever the current users library is?

like image 848
rootsup Avatar asked Jul 27 '26 17:07

rootsup


1 Answers

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
like image 103
NSGod Avatar answered Jul 30 '26 10:07

NSGod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!