Re: Auto Mount Server with Apple Script (Beginner Here)
Re: Auto Mount Server with Apple Script (Beginner Here)
- Subject: Re: Auto Mount Server with Apple Script (Beginner Here)
- From: "John C. Welch" <email@hidden>
- Date: Wed, 02 Mar 2005 09:53:10 -0600
On 3/2/05 3:40 AM, "Simon Forster" <email@hidden> wrote:
> tell application "Finder" to mount volume
> "afp://<username>:<password>@<remote machine>/<volume to mount>"
>
> So an example would be:
>
> tell application "Finder" to mount volume
> "afp://fred:email@hidden/Macintosh HD"
>
> Save as run only script.
>
> You could also look at using .afploc files.
Or you could create a key in the default keychain that stores this
information securely, instead of embedding it in the script, (always a bad
idea). You can even embed the URL and share to the share in the key and just
pull all of it from the key.
This way, the only time the login credentials are available is in memory,
and if someone's reading your memory data at will, you have other, very bad
problems.
Take a look at the dictionary for "Keychain Scripting".
john
--
Sure, she¹s good-lookin¹. She¹s also crazy. Crazy as a shithouse rat. Run
for your life.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden