• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rep: System Events versus Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Rep: System Events versus Finder
      • From: KOENIG Yvan <email@hidden>
References: 
 >Rep: System Events versus Finder (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Rep: System Events versus Finder
  • Next by Date: Re: Rep: System Events versus Finder
  • Previous by thread: Re: Rep: System Events versus Finder
  • Next by thread: Re: Rep: System Events versus Finder
  • Index(es):
    • Date
    • Thread