• 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 file copy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple file copy


  • Subject: Re: simple file copy
  • From: kai <email@hidden>
  • Date: Thu, 21 Apr 2005 00:52:26 +0100


On Wed, 20 Apr 2005 18:01:49 -0400, Bob Cuilla wrote:

i need to copy an existing file "File a" in folder "desktop/source" to another folder location "desktop/destination" and call it "File B"

Since the desktop can be identified as a Finder property, desktop items can be considered elements of either the desktop or of the Finder. This can simplify the Finder's access to desktop items - such as in the following line (watch for wraps):


-----------------

tell application "Finder" to set name of (duplicate file "File A" of folder "Source" to folder "Destination") to "File B"

-----------------

---
kai

_______________________________________________
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: Applescripting SummaryService
  • Next by Date: Re: Filemaker and AppleScript and Compilation....
  • Previous by thread: Re: simple file copy
  • Next by thread: 'with timeout' and scripting additions
  • Index(es):
    • Date
    • Thread