Mount volume bug: caller must be in front
Mount volume bug: caller must be in front
- Subject: Mount volume bug: caller must be in front
- From: Steven Angier <email@hidden>
- Date: Sat, 01 Feb 2003 17:23:52 +1100
It seems that the "mount volume" command requires that the calling
application be in front for the target volume to be mounted. If the calling
script is not frontmost then its icon will flash in the application menu (as
if there were a dialog box displayed).
As far as I know this was not always the case, but it seems to be so now on
Mac OS 9 / AS 1.6+ (Don't know about under Mac OS X).
Perhaps this only affects connection attempts requiring authentication,
where the username and password are supplied in the URL or "user name" and
"password" parameters. In such cases, there is obviously no need for an
authentication dialog, but perhaps "mount volume" doesn't attempt to
authenticate without the caller being in front.
Examples:
mount volume "afp://username:password@host[:port]/share"
mount volume "volume" B,
on server "server" B,
as user name "user name" B,
with password "password"
If the user brings the now flashing script application to the front, the
volume mounts and execution continues. With no user interaction, the result
is eventually a timeout error.
Any similar experiences?
Also, "mount volume" doesn't seem to recognise Apple's own afp-appletalk URL
template spec (proposed by Apple to W3 in 1998):
"afp:/at/[username[:password]@]server[:zone]/volume"
Steven Angier
Macscript.com
_______________________________________________
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.