Ocean West Posted January 2, 2007 Posted January 2, 2007 I have an apple script to mount a remote volume via the script however it leaves the finder window on top. How do I modify my apple script to mount the remote volume hidden or with out spawning a new finder window, leaving Filemaker the active application?
Ballycroy Posted January 11, 2007 Posted January 11, 2007 You may have an activate command after tell app "Finder". If so, then delete it. Here is a sample applescript I use to check for and mount needed volumes. It is run from within a Perform Applscript Script Step. --get all the volumes mounted on your desktop tell application "Finder" set theVOLUMES to every disk in desktop end tell set theExistingVolumes to {} --make a list of all the volume names repeat with i in theVOLUMES set a to name of i set end of theExistingVolumes to a end repeat --See if the volume is mounted if "VolumeOne" is not in theExistingVolumes then try mount volume "afp://name:[email protected]/VolumeOne" end try end if if "VolumeTwo" is not in theExistingVolumes then try mount volume "afp://name:[email protected]/VolumeTwo" end try end if
Ocean West Posted February 1, 2007 Author Posted February 1, 2007 tell application "Finder" repeat 10 times try close Finder window "Projects" exit repeat end try delay 1 end repeat end tell Thanks Fenton!
Recommended Posts
This topic is 6506 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now