The name of your script is "ID 2.0"? Then I suppose that this name should be quoted ...
no, it's the script id, as given by applescript.
Bu I also tried quoted
As far as I remember, this is not supported. AppleScript support for FileMaker is quite limited.
I just created the following apple script:
tell application "Finder"
open document file "AutoType.fmp12" of folder "Community sample files" of folder "Filemaker" of startup disk
tell application "FileMaker Pro Advanced"
do script "Autotype"
I added the sample I used in the AppleScript.
Hope this helps.
AutoType.fmp12.zip 67.8 K
I think he wants to look at the script, not run it.
You might be able to do this by scripting the UI instead of FileMaker directly.
I did this to "quickly" duplicate layouts when I integrated GoZync into one of my solutions recently.
Here are the convoluted steps I used to create the Applescript:
- Launch Automator
- Create a new Service, Workflow, Application, what-have-you, depending on how you intend to invoke the script. I used a Service so that I could call the routine from the Services menu.
- Click the Record button toward the top right corner of the Automator window. A little "Automator Recording" popover will appear.
- In FileMaker Pro, do the actions you want to automate, e.g. Open Script Workspace, click on Script, etc.
- Stop the Automator recording.
- Go to Automator. There will be a single action called "Watch Me Do."
- Select all of the steps in the Watch Me Do events list and Copy.
- Open Script Editor and Paste.
Voila, you now have an AppleScript that you can edit to your heart's content. In my case I removed all of the timeouts and such since Automator will even pause as long as you've paused when performing your actions.
I hope this helps.
Thanks for all your advise, I'll use the script GUI /automator route then