• 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 item with new name to same folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Duplicate item with new name to same folder?


  • Subject: Duplicate item with new name to same folder?
  • From: Ruth Bygrave <email@hidden>
  • Date: Thu, 11 May 2006 12:16:36 +0100

This _must_ be obvious, but I'm scratching my head about it.

set docpath to (path to documents folder as string)
tell application "Finder" to duplicate file XMLFile to file docpath & "NewFile.xml"


That doesn't seem to work. I looked it up, and the book says it wants a folder or disc name as where to copy to.

Right, so I tried

tell application "Finder" to duplicate file XMLFile to docpath with properties {name: "NewFile.xml"

That doesn't even compile. Help! What obvious thing am I missing?
_______________________________________________
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


  • Follow-Ups:
    • Re: Duplicate item with new name to same folder?
      • From: Peter Waibel <email@hidden>
  • Prev by Date: XML?
  • Next by Date: RE: Duplicate item with new name to same folder?
  • Previous by thread: Re: XML?
  • Next by thread: Re: Duplicate item with new name to same folder?
  • Index(es):
    • Date
    • Thread