Re: Copy folder to the root of a server volume
Re: Copy folder to the root of a server volume
- Subject: Re: Copy folder to the root of a server volume
- From: Emmanuel LEVY <email@hidden>
- Date: Wed, 24 Mar 2010 20:46:45 +0100
It's very personal, but I like to feed Finder with aliases, so I would
have tried (assuming I don't have Files.osax):
set myTargetFolder to posix file "/Volumes/Assets/" as alias
-- copy files
tell application "Finder"
duplicate mySourceFolder to myTargetFolder
end tell
Emmanuel
On Mar 24, 2010, at 8:33 PM, Alex Zavatone wrote:
I've been spinning my wheels trying to copy or duplicate a folder to
the root of a server volume and I keep getting the error message
"can't make string into folder"
Finder got an error: Can’t make "'/Volumes/Assets/'" into type folder.
Does anyone know the proper way to do this?
I'm trying it this way:
set mySourceFolder to pOptimizedPNGPath
set myTargetFolder to (the quoted form of POSIX path of
"Volumes:Assets:")
-- copy files
tell application "Finder"
duplicate mySourceFolder to myTargetFolder
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden