…“other scripts” meaning “real” scripts or e.g. the “run AppleScript” functionality in FileMaker Pro.
Hi,
I have an AS Studio app that runs fine in interactive mode. I.e., I have a handler like this
on clicked theObject
if the name of theObject is “StartButton” then
eupdate()
else if the name of theObject is “QuitButton” then
quit
else
–display dialog “Error”
end if
end clicked
If I click the startButton, the function eupdate is called and runs. So far, so good.
Now I want to start the eupdate() function from within FileMaker Pro, using the “Run AppleScript” script step. So I’d assume it goes with putting a
“tell application “Macintosh HD:Users:.app”
launch
activate
end tell”
into the FMPro script step. The problem is: How do I tell my App to actually start and run eupdate() just the same way as if it had been started by clicking on the StartButton in window “main”?
I have tried
on start
eupdate()
end start
and modified the Filemaker script step to look like
“tell application “Macintosh HD:Users:.app”
launch
activate
start – this is the added line
end tell”
but this obviously is too simple, since it does not work. :rolleyes:
Any help would be greatly appreciated!!