January 2, 200719 yr 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?
January 11, 200719 yr 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
February 1, 200718 yr Author tell application "Finder" repeat 10 times try close Finder window "Projects" exit repeat end try delay 1 end repeat end tell Thanks Fenton!
Create an account or sign in to comment