Re: Keeping a volume Mounted
Re: Keeping a volume Mounted
- Subject: Re: Keeping a volume Mounted
- From: Sander Tekelenburg <email@hidden>
- Date: Sat, 10 Feb 2001 03:04:44 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 09:53 -0500 UTC, on 09/02/2001, Andrew Donnelly wrote:
>
I need to make sure that a certain volume stays mounted on my desktop. I
>
have figured out how to get the volume to mount--(mount volume "Myvolume"
>
on server "MyServer" in AppleTalk zone "MyZones"). Now I need to make sure
>
if it unmounts, that it is remounted without any user interaction. Would
>
this be done using some kind of scripting addition ?
on idle
tell application "Finder"
if not (exists disk "x") then
mount volume "x" on server "y" as user name "z" with password "***"
end if
end tell
end idle
Save as a "keep open" script and have it launched from your Startup Items
folder.
Note the possible security problems with storing a passphrase in a script...
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBOoShq+sywKfXgqKdEQJPNgCg6FI4Fl3eJAuwj3RjMo3Q2aKpiOoAnRVl
2OXNPbkQ1PMLNLSMb2f4Nn8U
=wfL4
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <
mailto:email@hidden>
Web site at <
http://www.euronet.nl/~tekelenb/>
Do not seek to follow in the footsteps of the wise. Seek what they sought.