re: Sometime error -10006 copying a folder
re: Sometime error -10006 copying a folder
- Subject: re: Sometime error -10006 copying a folder
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 06 Mar 2008 19:38:39 -0800
- Thread-topic: Sometime error -10006 copying a folder
>> I guess Finder doesn't like trying to decode the path when two volumes have
>> the same name.
>
>Tom> i've run into that problem too...POSIX paths solved it.
I'm not sure that would work in this case.
>>>I'm using the "open panel" studio suite to select a folder. It seems to
traffic only in paths.
The problem seems to be that the result of the choose file operation (open
panel) is coming back as a string, which must then be coerced to either an
alias or a Posix Path, but, since multiple valid paths could be represented
by the same string, appleScript would still make an arbitrary and possibly
incorrect selection of which path.
In other words if you have two volumes mounted that are both named:
"Macintosh Hard Drive" and both have a file named "foo", then the path
"Macintosh Hard Drive:Foo" could refer to two different files on two
different volumes.
Posix path of "Macintosh Hard Drive:Foo"
Or
Alias "Macintosh Hard Drive:Foo"
May not end up pointing to the file the user has selected.
>>>Is there a way to get an alias straight out of it since converting a path to
an alias probably won't work if two volumes have the same name? (Assuming that
the whole 2 mounted vols with the same name problem isn't a red herring.)
Here's your error code:
error -10006 errAEWriteDenied or telCAUnavail: a CA is not available
AE Write Denied, uh.. maybe AppleEvent write Denied ? ?
Beats me what a CA is or why it would have to be available.
I think it's likely there are two mounted volumes with the same name/path
and one of them doesn't let you write to it
Given that, you may be able to write a routine that looks for the posix path
of the two volumes, distinguishes between the one you want to write to and
the one you don't and then gets the posix path of the one you want to.
Good luck with that, let us know how it works out.
WTH
ES
_______________________________________________
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