Re: remote volume mounted
Re: remote volume mounted
- Subject: Re: remote volume mounted
- From: Ron Bishop <email@hidden>
- Date: Wed, 10 Jul 2002 08:09:14 -0500
>
Hi,
>
>
Can someone tell me how to find out if a remote volume is mounted?
>
>
We use some very simple scripts that get remote volumes, move the icon
>
to a
>
second screen, then open the remote desktop folder and place it in
>
position.
>
Simple.
>
>
But the first time that it runs, we get an error. I've tried a few things,
>
notably just putting in various delays and waits, but they are inelegant
>
and
>
not consistent. I need to have a way for AS to actually test for the
>
presence of a remote volume mounted on the desktop and, as they say,
>
'good
>
to go'.
>
>
How do I do this? (I am working in 9 and in X)
>
>
Thanks, Michael Spencer
Michael,
We ran into the much the same problem. We had to mount three volumes, but the first
volume had to be mounted before the second, etc...So I put a check into my script.
I have the Finder get the names of every volume repeatedly as a list. Then it checks the list
for the name of the volume. The script can't continue until the Finder "sees" the new
volume
tell application "Finder"
activate
set theDisks to {}
set theFirstVolume to "smb://domain;username:password@kcs8554/BWAds"
set theSecondVolume to "smb://domain;username :password@kcs8554/4colorAds"
set theThirdVolume to "smb://domain;username:password@kcs8554/2colorAds"
try
open location theFirstVolume
repeat until theDisks contains "First Volume Name"
set theDisks to name of every disk
end repeat
open location theSecondVolume
repeat until theDisks contains "Second Volume Name"
set theDisks to name of every disk
end repeat
open location theThirdVolume
repeat until theDisks contains "Third Volume Name"
set theDisks to name of every disk
end repeat
end try
That has worked for us,
Ron Bishop
www.daddydoodaa.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.