Re: Help needed with Finder copy/duplicate with Apple script !!
Re: Help needed with Finder copy/duplicate with Apple script !!
- Subject: Re: Help needed with Finder copy/duplicate with Apple script !!
- From: Luther Fuller <email@hidden>
- Date: Thu, 12 May 2011 14:17:45 -0500
On May 12, 2011, at 12:19 PM, Naresh Kongara wrote: I want to copy an item say on desktop to temporary folder.
set sourceFile to "/Users/nareshkongara/Desktop/Saharsh.jpg" set targetDirectory to "/var/folders/+S/+SfqdTOqEDapIOVh4OYDIE+++TI/-Tmp-/"
tell application "Finder" duplicate sourceFile to targetDirectory end tell
Use this ... set sourceFile to ((path to desktop) as text) & "Saharsh.jpg" as alias set targetDirectory to (path to temporary items from system domain) |
_______________________________________________
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