• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keeping a volume Mounted
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Keychain Scripting (Was Re: Keeping a volume Mounted)
      • From: Rob Jorgensen <email@hidden>
References: 
 >Keeping a volume Mounted (From: "Andrew Donnelly" <email@hidden>)

  • Prev by Date: Re: Get info without opening a file
  • Next by Date: Re: Changed definition of word? No dashes?
  • Previous by thread: Keeping a volume Mounted
  • Next by thread: Keychain Scripting (Was Re: Keeping a volume Mounted)
  • Index(es):
    • Date
    • Thread