Icecold Posted November 4, 2003 Posted November 4, 2003 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
-Queue- Posted November 4, 2003 Posted November 4, 2003 Can you not use the DatabaseNames function and test: If[ not Position( "
Fitch Posted November 4, 2003 Posted November 4, 2003 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") ) ...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now