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: 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