• 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: Emmanuel LEVY <email@hidden>
  • Date: Wed, 24 Mar 2010 20:46:45 +0100

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


On Mar 24, 2010, at 8:33 PM, Alex Zavatone wrote:

I've been spinning my wheels trying to copy or duplicate a folder to the root of a server volume and I keep getting the error message "can't make string into folder"

Finder got an error: Can’t make "'/Volumes/Assets/'" into type folder.

Does anyone know the proper way to do this?

I'm trying it this way:

set mySourceFolder to pOptimizedPNGPath
set myTargetFolder to (the quoted form of POSIX path of "Volumes:Assets:")


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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Copy folder to the root of a server volume
      • From: Alex Zavatone <email@hidden>
References: 
 >Copy folder to the root of a server volume (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Copy folder to the root of a server volume
  • Next by Date: Re: Copy folder to the root of a server volume
  • Previous by thread: Copy folder to the root of a server volume
  • Next by thread: Re: Copy folder to the root of a server volume
  • Index(es):
    • Date
    • Thread