AnsweredAssumed Answered

Windows version of AppleScript

Question asked by TimAnderson on Jul 28, 2015
Latest reply on Oct 10, 2016 by mrvanbeurden

Thanks to the very smart and helpful John Renfrew I use the following AppleScipt to check whether FileMaker is the front-most application on Mac. Now the user may have some Windows machines connecting, an almost alien environment to me!


Can anyone convert this foe me?

 

Thanks

 

Tim

 

"set var to get the name of the front window" & ¶ &

 

"set scriptName to \"" & $script & "\""& ¶ &

"set var3 to \"FileMaker Pro Advanced\"" & ¶ &

"set var2 to the name of application (path to frontmost application as text)" & ¶ &

"if var2 = var3 then" & ¶ &

  //"activate" & ¶ &

  "do script scriptName" & ¶ &

"end if"

Outcomes