• 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: Why is copying a file so hard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is copying a file so hard?


  • Subject: Re: Why is copying a file so hard?
  • From: tim <email@hidden>
  • Date: Sat, 18 Jun 2005 09:53:27 +1000


I want to copy a few files from mounted volumes on my desktop to a specified folder on my local HD.
I thought just open Script Editor and set it to record

No recording in OS X yet... Probably they want you to use automator now. Of course it doesn't suit your needs.
however, your task is not so hard once you get the paths straight...


So I go through this list archives (I've subscribed for years and find it helpful to search historic emails when I can't find the right Applescript code - unfortunately more often than not) and find a note from January where some one suggests using Do script and the cp command in the shell.
If you're in applescript, i'd stay in AppleScript (i.e., if you're not writing a shell script, then where it's easy, stay inside the applescript environment.

> I just want to copy this file with spaces and stuff in the path
> /Volumes/1GIG/\ SPELEAN/\ Spelean\ data /Volumes/Lt\ Data/v3.9\ DF/\ Spelean\ data.AP

try not to work in unix path syntax if possible.
if you type this
     posix file  "/Developer/About Xcode Tools.pdf"
it will compile to 
     file "Prelude:Developer:About Xcode Tools.pdf"

so  the droid you are looking foris
tell application "Finder"
    duplicate file "1GIG: SPELEAN: Spelean data :Volumes:Lt Data:v3.9 DF: Spelean data.AP" to ¬
        folder "1GIG: SPELEAN: Spelean data :copies:" with replacing
end tell
 _______________________________________________
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: 
 >Why is copying a file so hard? (From: email@hidden)

  • Prev by Date: Re: Why is copying a file so hard?
  • Next by Date: Re: Why is copying a file so hard?
  • Previous by thread: Re: Why is copying a file so hard? part 3
  • Next by thread: Re: Why is copying a file so hard?
  • Index(es):
    • Date
    • Thread