Re: Sometime error -10006 copying a folder
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"
|
_______________________________________________
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