Re: Help with a FileMaker Script
Re: Help with a FileMaker Script
- Subject: Re: Help with a FileMaker Script
- From: Steve Savery <email@hidden>
- Date: Wed, 19 Mar 2003 15:17:54 +0000
This was posted by a fellow 'scripter earlier. Works a treat for me.
--BEGIN--
set myVolume to "Name of Drive to mount"
set myServer to "Name of Server with myVolume"
set myPassword to "Your Password"
tell application "Finder" to set volExists to exists (disk myVolume)
if volExists = false then
try
mount volume myVolume on server myServer with password myPassword
on error
display dialog "Could not mount \"" & myVolume & " \"" buttons
{"Cancel"} with icon stop
return
end try
end if
--END--
Hope this helps Aaron!
Steve
On Friday, March 14, 2003, at 09:06 pm, Aaron Willems wrote:
Hello Everyone,
Thanks for everyone's help before in helping me write my first script.
It was script to mount an Appleshare Volume on my desktop. I want to
write a second script that acts as a Qualifier. Simply put, I want an
Applescript that checks to see if the drive is already mounted. I
figured I need an "if" Statement. Something like "true if it exists",
or "false or not"
Am I on the right track.
Thanks in advance for any Help.
Aaron Willems
Network Administrator
Lieberman Productions
For reference the first script looked like this.
tell application "Finder"
activate
open location "afp:/at/name of server:*"
end tell
_______________________________________________
Steve Savery
Bristol, United Kingdom
[Mac OS X 10.2.4]
_______________________________________________
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.