Jump to content
Server Maintenance This Week. ×

Mount Volume...


This topic is 6308 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

  • 3 weeks later...

This topic is 6308 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.