First off I don't know if this belongs here, so I apologize in advance.
I'm trying to create an AppleScript where I copy a folder in /Library/Logs/ over to /Desktop/Logs/ ... Like so:
tell application "Finder"
make new folder at alias "Mac:Users:user:Desktop:" with properties {name:"Test"}
copy folder "Mac:Library:Logs:com.test.testlog:" to folder "Mac:Users:user:Desktop:Test"
end tell
However, I want to make this work on other Macintosh's as well, and other Mac's rename their HD. I basically just want to know how to write this to make it look for / and not the HD name and also the user folder (since it'll be different user folder names)
I've tried ~/Library/ basically adding the tilda, but that didn't work.
Any help is appreciated, thank you.

New Topic/Question
Reply



MultiQuote




|