Hi Brendan,
Have been looking for a solution but don’t even know if its possible to add a script button to trigger an “Automator” workflow.
What I would like in my “Job Sheet” Form is to have a button to trigger an auto folder creation for the job number that was generated with a new Job Sheet.
Thanks!
derek
Is it possible? Yes! Is it easy? Not exactly!
This is something I have been looking at in the past, but never spent time on implementing it.
You need to create a custom URL scheme that runs your AppleScript. Here is one simple example on how to do this: https://github.com/chrisliuqq/mac-custom-url-scheme-to-script.
Then in TapForms, you can create a form script that calls your script using the registered custom URL with something like Utils.openUrl("custom://something-I-dont-need?param=Hello");
. My example uses the custom URL shown in the example above. As you see, you can use parameters to provide an argument to your AppleScript. Another option is to use the clipboard (eg, Utils.copyTextToClipboard("Some text")
.
All that is left is assigning the form script to a script button in your custom layout. That’s it. Good luck!
thank you! will try tomorrow!