Re: Rep: System Events versus Finder
Re: Rep: System Events versus Finder
- Subject: Re: Rep: System Events versus Finder
- From: has <email@hidden>
- Date: Fri, 29 Feb 2008 17:35:08 +0000
On 29 Feb 2008, at 14:44, KOENIG Yvan wrote:
The lazy guy is glad to be able to make a new item at end of its
folders but
this time I want to duplicate a file
I think you're out of luck. While System Events' 'move' command works
okay, 'duplicate' just gives an error:
tell application "System Events"
duplicate disk item "/Users/foo/some-item" to ¬
end of disk items of disk item "/Users/foo/some-folder"
end tell
-- Error: Files/Folders can not be copied. (-1717)
File a bug report at <http://bugreport.apple.com>, and use Finder or
cp in the meantime.
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
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