I want to copy a few files from mounted volumes on my desktop to a specified folder on my local HD.
I thought just open Script Editor and set it to record
No recording in OS X yet... Probably they want you to use automator now. Of course it doesn't suit your needs.
however, your task is not so hard once you get the paths straight...
So I go through this list archives (I've subscribed for years and find it helpful to search historic emails when I can't find the right Applescript code - unfortunately more often than not) and find a note from January where some one suggests using Do script and the cp command in the shell.
If you're in applescript, i'd stay in AppleScript (i.e., if you're not writing a shell script, then where it's easy, stay inside the applescript environment.
> I just want to copy this file with spaces and stuff in the path
> /Volumes/1GIG/\ SPELEAN/\ Spelean\ data /Volumes/Lt\ Data/v3.9\ DF/\ Spelean\ data.AP
try not to work in unix path syntax if possible.
if you type this
posix file "/Developer/About Xcode Tools.pdf"
it will compile to
file "Prelude:Developer:About Xcode Tools.pdf"
so the droid you are looking foris
tell application "Finder"
duplicate file "1GIG: SPELEAN: Spelean data :Volumes:Lt Data:v3.9 DF: Spelean data.AP" to ¬
folder "1GIG: SPELEAN: Spelean data :copies:" with replacing
end tell