Re: Panther Problems - Error type 80 on Mount Volume
Re: Panther Problems - Error type 80 on Mount Volume
- Subject: Re: Panther Problems - Error type 80 on Mount Volume
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 26 Oct 2003 09:12:18 -0800
On 10/26/03 8:38 AM, "Andrew" <email@hidden> wrote:
>
After upgrading to Panther and the new Xcode Tools from 10.2.6, all of my
>
old scripts that use "mount volume" on local server volumes have stopped
>
working and return an error.
>
>
The format of the scripts is as follows:
>
>
tell application "Finder"
>
mount volume "afp://192.168.1.101/Volume One"
>
end tell
>
>
Previously, this would return a dialog requesting a login/pw. Now I get an
>
error type 80.
>
>
Revising the scripts like this:
>
>
tell application "Finder"
>
open location "afp://192.168.1.101/Volume One"
>
end tell
>
>
....will run as expected. I would rather not go through all of my scripts
to
>
revise them. Is there some good reason why "mount volume" no longer works?
>
There's no mention of a change in the release notes or at macscripter.net
--
>
is this problem afflicting just me?
It's got nothing to do with Xcode Tools. Nor does it have anything to do
with the Finder: in _neither_ case does your code need to be in a Finder
tell block.
Both 'mount volume' and 'open location' are in the Standard Additions
scripting additions. These have been updated to v1.9.2 along with
AppleScript 1.9.2. You're right that there's nothing in the AppleScript
1.9.2 Release Notes about mount volume, but have you checked the Dictionary?
In the Standard Addition dictionary, I see
mount volume: Mount the specified AppleShare volume
mount volume string -- the name or URL path (starting with afp://9)
of the volume to mount
on server string -- the server on which the volume resides
[in AppleTalk zone string] -- the AppleTalk zone in which the
server resides
[as user name string] -- the user name with which to log in to the
server; omit for guest access
[with password string] -- the password for the user name; omit
for guest access
You'll notice that the 'on server' parameter is not in brackets - therefore
it is not optional. It's mandatory. What happens if you include that
parameter, outside the Finder? (I haven't checked yet myself.) If you don't
want to get password dialogs you'll need to include the user name and
password parameters too.
--
Paul Berkowitz
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.