duplicate with "System Events"
duplicate with "System Events"
- Subject: duplicate with "System Events"
- From: patrick machielse <email@hidden>
- Date: Fri, 16 Sep 2005 21:18:19 +0200
It's me again.
This time I want to duplicate files from one folder to another using
"System Events". The dictionary suggests the following code:
tell application "System Events"
set f1 to folder "test1" of desktop folder
set f2 to folder "test2" of desktop folder
duplicate every disk item of f1 to f2
end tell
but that doesn't work.
The workaround for the 'move' command doesn't work either:
duplicate every disk item of f1 to (path of f2) as alias
fails too.
I've tried numerous combinations (even duplicating to the 'end
of'...) but I seem to be stuck. What am I missing here? Should I be
using 'duplicate' at all, or is there a better solution?
patrick
_______________________________________________
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