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

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

Recommended Posts

  • Newbies
Posted

Hi everyone...

When writing an applescript embedded in a "Perform AppleScript" step, is there any reliable way to address the FileMaker application in a tell block or similar?

The problem is that if you

tell application "FileMaker" or tell application "FileMaker Pro" or tell application "FileMaker Pro Advanced" and the end user does not have that exact version of FileMaker, the AppleScript system will ask the user to pick the intended application.

The situation is even worse if you're trying to make a runtime application.

I thought I had come up with a working solution as follows:


tell application "System Events"

	set appname to name of (item 1 of (every process whose frontmost is true))

end tell



using terms from application "FileMaker Pro Advanced"

	tell application appname

        end tell

end using terms from

However when I ran that on a computer running FileMaker Pro Advanced that also had FileMaker Pro 9 installed on it (and must for reasons I could explain if needed), it continually launched FileMaker Pro 9!

I need a solution that will run on any version of FM + 7 and also on a runtime version.

Thanks.

  • Newbies
Posted

See:

http://fmforums.com/forum/topic/75454-write-statement-in-error/page__p__357118#entry357118

Thanks. That was helpful. It works locally, I will test on other configurations later.

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