Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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?

  • 2 weeks later...
Posted

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

  • 3 weeks later...
Posted


tell application "Finder"

	repeat 10 times

		try

			close Finder window "Projects"

			exit repeat

		end try

		delay 1

	end repeat

end tell



Thanks Fenton!

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 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.