Duplicate item with new name to same folder?
Duplicate item with new name to same folder?
- Subject: Duplicate item with new name to same folder?
- From: Ruth Bygrave <email@hidden>
- Date: Thu, 11 May 2006 12:16:36 +0100
This _must_ be obvious, but I'm scratching my head about it.
set docpath to (path to documents folder as string)
tell application "Finder" to duplicate file XMLFile to file docpath &
"NewFile.xml"
That doesn't seem to work. I looked it up, and the book says it wants
a folder or disc name as where to copy to.
Right, so I tried
tell application "Finder" to duplicate file XMLFile to docpath with
properties {name: "NewFile.xml"
That doesn't even compile. Help! What obvious thing am I missing?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden