Re: iDisk (paul mccabe kampu)
Re: iDisk (paul mccabe kampu)
- Subject: Re: iDisk (paul mccabe kampu)
- From: paul mccabe kampu <email@hidden>
- Date: Wed, 29 Aug 2001 23:10:58 -0400
- Organization: Kalsea Lane
Frank Barlow wrote:
>
The script
>
>
mount volume "afp://userName:userPassword@serverIP/volumeName/"
>
>
works fine. I assume a similar dismount command.
>
>
Please what is the test for "mounted" so I could script:-
>
>
if "test for mounted" is false
>
mount volume ....
>
else
>
dismount volume ....
>
end if
>
>
And thank you.
>
>
Frank Barlow
>
This can be modified/switched around to suit...
tell application "Finder"
if exists disk "volumeName" then
put away disk "volumeName"
else
mount volume "afp://userName:userPassword@serverIP/volumeName/"
end if
end tell
hth,
--
Paul
http://homepage.mac.com/pkampu/ (*not for the faint of heart*)
"No, TRY not. do or do not. There is no TRY." --Yoda(on error handling)