• 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
duplicate with "System Events"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: a numeric bug.
  • Next by Date: Re: Sequential Numbering
  • Previous by thread: Re: Sequential Numbering
  • Next by thread: Check to see if a computer is running....
  • Index(es):
    • Date
    • Thread