mount volume
mount volume
- Subject: mount volume
- From: Wayne Melrose <email@hidden>
- Date: Wed, 19 Sep 2007 15:42:06 +0200
I've got a script that runs and mounts volumes on request... This is
a server and so it would be best that errors happen silently, log,
and move on..
On occasion servers that it connects to will not be available, in
which case I'd like it just to log that it didnt perform the task and
move one.
However I've just discovered something very odd..
here is a small handler i've made for mounting disks.
--------------------- script start
on MountVolume(SMB_afp, diskname, usr, pass, ipadd)
try
mount volume SMB_afp & "://" & usr & ":" & pass & "@" & ipadd &
"/" & diskname & "/"
return "Disk Mounted"
on error errmsg
return "Disk unavailable"
end try
end MountVolume
--------------------- script end
However, if the disk is unavailable it will error, but also display a
dialog error..
I tried wrapping this in "ignoring application responses" although
that didnt seem to solve it.. ?
Surely there is a way to make this silent?
Thanks
Wayne Melrose
_______________________________________________
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