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

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

Recommended Posts

Posted

I want to open a filmaker file but I want to check to see if it is already open if it is don't open it again.

tell application "Filemaker Pro"

if "Mytest.FP3" doesn't exist then

open file "Mytest.FP3"

activate

else

display dialog "Mytest already Opened"

end if

Posted

Seems like you'd do it more like this:

tell application "FileMaker Pro"

.. if exists database "Mytest" then

.. .. display dialog "Mytest already Opened"

.. else

.. .. tell application "Finder"

.. .. .. open file "yourpathto:Mytest"

.. .. end tell

.. end if

end tell

Note that, starting in FileMaker 4, you have the DatabaseNames design function, so you can actually do this from a FileMaker script, e.g. If ( PatternCount (DatabaseNames, "Mytest") ) ...

This topic is 7691 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.