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

Re: how to copy a file


  • Subject: Re: how to copy a file
  • From: Graham Anderson <email@hidden>
  • Date: Fri, 21 Jan 2005 15:30:46 -0800

many thanks :) that did it

g
On Jan 21, 2005, at 11:13 AM, Adam K. Wuellner wrote:

On Jan 21, 2005, at 11:54 AM, Graham Anderson wrote:

I want to copy a file [myPref.xml] from a folder downloaded to the user's desktop to the user's preference file.

This might help get you started:

-- begin script
set destination_folder to path to preferences from user domain
set desktop_folder to path to desktop from user domain

tell application "Finder"
duplicate file "myPref.xml" of folder "folder-name" of desktop_folder to destination_folder
end tell
-- end script


Use the appropriate value for folder-name.


_______________________________________________ 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: 
 >Use applescript to copy file to preference folder (From: Graham Anderson <email@hidden>)
 >how to copy a file (From: Graham Anderson <email@hidden>)
 >Re: how to copy a file (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: iWork Pages
  • Next by Date: getting user's system info
  • Previous by thread: Re: how to copy a file
  • Next by thread: Re: Use applescript to copy file to preference folder
  • Index(es):
    • Date
    • Thread