• 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: Simple Addition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Addition


  • Subject: Re: Simple Addition
  • From: "Adam K. Wuellner" <email@hidden>
  • Date: Fri, 21 Jan 2005 14:25:38 -0600


On Jan 21, 2005, at 1:03 PM, email@hidden wrote:

Would someone assist me in alltering this script to include:

overwriting the duplicte if it already exists, disregarding creation dates:

Thanks
-----------------
on open (someItem)
tell application "Finder"
duplicate someItem to folder "Duplicate Folder" of disk "AppleScript
Drive"

append the above line with "with replacing"

duplicate: Duplicate one or more object(s)
duplicate reference -- the object(s) to duplicate
[to location reference] -- the new location for the object(s)
[replacing boolean] -- Specifies whether or not to replace items in the destination that have the same name as items being duplicated
[routing suppressed boolean] -- Specifies whether or not to autoroute items (default is false). Only applies when copying to the system folder.
Result: reference -- to the duplicated object(s)


end tell
beep 2
end open
--------------------------

HTH
Adam
 _______________________________________________
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

References: 
 >Simple Addition (From: "email@hidden" <email@hidden>)

  • Prev by Date: FW: Simple Addition
  • Next by Date: Apple Scripting Filemaker Pro 6 Question
  • Previous by thread: Re: Simple Addition
  • Next by thread: FW: Simple Addition
  • Index(es):
    • Date
    • Thread