• 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: Auto Mount Server with Apple Script (Beginner Here)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Auto Mount Server with Apple Script (Beginner Here) (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: *Very* strange script / global variable behavior
  • Next by Date: RE: About integers
  • Previous by thread: Re: Auto Mount Server with Apple Script (Beginner Here)
  • Next by thread: Why does this filter expression not work? Anyone have an idea?
  • Index(es):
    • Date
    • Thread