I’m a newbie who’s trying to make a script to run in Filemaker to simply open an app and have it come to the front. Here’s what I have so far:
tell application “Cardiris 3.0”
run
set frontmost to 1
end tell
However, when I run the script, I get the following message:
“Cardiris got an error: Can’t set frontmost to 1.”
Is the failing my script, or the Cardiris program?
kel
#2
Hi,
The application is probably not scriptable. Try:
tell application “Cardiris 3.0”
activate
end tell
If that doesn’t work, then you can set the process property ‘frontmost’.
gl,
kel
#3
Here’s the process way:
tell application “System Events”
set frontmost of process “Safari” to true
end tell
gl,
Thanks. I tried
tell application “Cardiris 3.0”
activate
end tell
and it worked just right.