• 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: Sometime error -10006 copying a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sometime error -10006 copying a folder


  • Subject: Re: Sometime error -10006 copying a folder
  • From: Philip Aker <email@hidden>
  • Date: Wed, 05 Mar 2008 10:48:50 -0800

On 08-03-05, at 09:31, Thomas Summerall wrote:

I have written our Photoshop plug-in's installer in AppleScript.  Generally it works great.  The installation is very simple, I simply tell the finder to duplicate our product folder from inside the installer apps package to Photoshop's plug-ins folder, which has been chosen by the user using folder select.

Some users (a small percentage) have been reporting a -10006 error in this form:

-- Finder got an error: Can’t set folder "OSX:Applications:Adobe Photoshop CS3:Plug-Ins" to folder "Installer Disk:Installer.app:Contents:Product Folder".  (-10006)

The code in applescript is pretty straightforward:

tell application finder
  duplicate (folder (myPath as string)) to (folder (destPath as string))
end tell

I can't duplicate the error on any machine here.  At first I thought it might be a permissions issue, but when I try to create that situation I get a different, permissions-specific error.

The source folder is on a non-writable compressed disk image.

Any ideas?

You're not addressing the Finder correctly. It should be:

tell application "Finder"

I suggest to use a 'try' block in the script and use aliases for both the source and destination file system objects.

You might want to try using 'ditto' in a 'do shell script' call as a means of getting a different error readout.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@




 _______________________________________________
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: Sometime error -10006 copying a folder
      • From: Thomas Summerall <email@hidden>
References: 
 >Sometime error -10006 copying a folder (From: Thomas Summerall <email@hidden>)

  • Prev by Date: Re: Uninstall script
  • Next by Date: Re: Sometime error -10006 copying a folder
  • Previous by thread: Re: Sometime error -10006 copying a folder
  • Next by thread: Re: Sometime error -10006 copying a folder
  • Index(es):
    • Date
    • Thread