• 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: Copy folder to the root of a server volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy folder to the root of a server volume


  • Subject: Re: Copy folder to the root of a server volume
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 24 Mar 2010 14:56:36 -0500

Yeah, I even tried wrapping the target folder definition in a Finder tell block with the previous attempt, but this is FINALLY what worked:

tell application "Finder"
set myTargetFolder to (the quoted form of POSIX path of "Volumes:Assets:") -- pDocumentName
set myTargetFolder to disk "assets"
end tell

Thanks, 
- Alex

On Mar 24, 2010, at 2:46 PM, Emmanuel LEVY wrote:

It's very personal, but I like to feed Finder with aliases, so I would have tried (assuming I don't have Files.osax):

set myTargetFolder to posix file "/Volumes/Assets/" as alias

-- copy files
tell application "Finder"
duplicate mySourceFolder to myTargetFolder
end tell

Emmanuel


 _______________________________________________
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

References: 
 >Copy folder to the root of a server volume (From: Alex Zavatone <email@hidden>)
 >Re: Copy folder to the root of a server volume (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: Copy folder to the root of a server volume
  • Next by Date: Re: quicktime player: make recording ... and save it
  • Previous by thread: Re: Copy folder to the root of a server volume
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread