• 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 16:40:32 -0800

On 08-03-05, at 15:40, Thomas Summerall wrote:

I found a clue.  If I have two installer images with the same name mounted then the installer fails with the -10006 error when it tries the Finder->duplicate command.

I'm using ((path to me) as string), so when I call the duplicate command I guess Finder doesn't like trying to decode the path when two volumes have the same name.

But I'm confused about how the users could be getting this, because I can't seem to get the same image to mount twice, so this may just be a coincidence.

I've had something similar happen when I eject a disk with an Xcode project on it while the project is still opened in Xcode. What it does is auto-save a dummy folder with the same name of the disk in /Volumes. When I try to re-mount the disk on the same machine (maybe days later) then it is mounted at "/Volumes/MyDisk 1" and my paths get messed up. There's not much choice for a remedy:

1. Eject the real disk.
2. Delete the dummy folder, 
3. Restart and re-mount the disk.

That's easy to do in a manual step but perhaps too much for a script so maybe present an error dialog suggesting the most common source of the problem and then:

do shell script "open /Volumes"

to show them.

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

References: 
 >Sometime error -10006 copying a folder (From: Thomas Summerall <email@hidden>)
 >Re: Sometime error -10006 copying a folder (From: Philip Aker <email@hidden>)
 >Re: Sometime error -10006 copying a folder (From: Thomas Summerall <email@hidden>)
 >Re: Sometime error -10006 copying a folder (From: Philip Aker <email@hidden>)
 >Re: Sometime error -10006 copying a folder (From: Thomas Summerall <email@hidden>)

  • Prev by Date: Re: Sometime error -10006 copying a folder
  • 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