Re: mount volume, new error from out of the blue
Re: mount volume, new error from out of the blue
- Subject: Re: mount volume, new error from out of the blue
- From: "John C. Welch" <email@hidden>
- Date: Wed, 12 Oct 2005 10:54:12 -0500
- Thread-topic: mount volume, new error from out of the blue
Title: Re: mount volume, new error from out of the blue
On 10/12/05 10:40, "Eric Geoffroy" <email@hidden> wrote:
> tell application "Finder"
> if not (exists disk "Graphics") then
> mount volume "afp://h3rm4n:munster@mojo/Graphics"
> end if
> end tell
You can dip in and out of the Finder as you need. Do the mount outside of the Finder tell, there's no reason to put it in there. In fact, you don't even need the Finder to check for a disk, you can get that from Standard Additions as well.
set theTest to list disks
if theTest does not contain "Graphics" then
mount volume "afp://h3rm4n:munster@mojo/Graphics"
end if
There’s no reason to use the Finder at all here. Again, when doing anything that’s not explicitly requiring a third party application, check to see if you can do it with Standard Additions first. You’ll save a ton of time and terminology clash.
--
"The Exertion of Better Men"
- Motto for Special Boat Unit 22, Det 122- Sacramento , Ca.
_______________________________________________
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