• 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: Adam Wuellner <email@hidden>
  • Date: Wed, 2 Mar 2005 08:49:01 -0600

On Wed, 2 Mar 2005 09:40:40 +0000, Simon Forster <email@hidden> wrote:
> tell application "Finder" to mount volume
> "afp://<username>:<password>@<remote machine>/<volume to mount>"

That's pretty much what I use, except I use no tell block, just:

mount volume "afp://blah.com/Volume"

I do put it in a try/end try block, to quietly fail if something's
inaccessible.  Here's my whole script:

on run
	try
		mount volume "afp://blah.com/volume1"
		mount volume "afp://blah.com/volume2"
	end try
end run

Finder does not automatically open Finder windows when these mount.
I save it as an application, and put it in my 'startup' items in
account prefs.  (That's probably why I have the try/end try in there,
as I some times login without access to my office net.)

> 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.
 _______________________________________________
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: 
 >Auto Mount Server with Apple Script (Beginner Here) (From: Doug Melillo <email@hidden>)
 >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: Events in iCal - how do you do recurrence?
  • Previous by thread: Re: Auto Mount Server with Apple Script (Beginner Here)
  • Next by thread: Re: Auto Mount Server with Apple Script (Beginner Here)
  • Index(es):
    • Date
    • Thread