Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

do Filemaker script

here's my Applescript:

tell application "FileMaker Pro"
activate
do script "script name"
end tell

does not do script
get "Object not found"

??

Mac Mini, Mac OS X (10.6.4)

Posted on Aug 29, 2010 10:09 AM

Reply
Question marked as Best reply

Posted on Aug 29, 2010 10:48 AM

Filemaker scripts are stored within databases. You need to tell Filemaker which database to run the script from:

tell application "FileMaker Pro"
tell database "database name"
do script "script name"
end tell
end tell


That's partly because you could have multiple databases open, each with theor own 'script name', so Filemaker needs to know which one to run.
9 replies
Question marked as Best reply

Aug 29, 2010 10:48 AM in response to swanker

Filemaker scripts are stored within databases. You need to tell Filemaker which database to run the script from:

tell application "FileMaker Pro"
tell database "database name"
do script "script name"
end tell
end tell


That's partly because you could have multiple databases open, each with theor own 'script name', so Filemaker needs to know which one to run.

Aug 30, 2010 11:16 AM in response to Camelot

I created a test script and it does work IF the database which holds the script is the foremost window

so, the question becomes--- what is the wording for AppleScript to open that database and bring it foremost?

here's the script that wqorked:

tell application "FileMaker Pro"
activate
do script "pub to web"
end tell

do Filemaker script

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.