Can you run a script from a file

This script is a little demo as I explore this whole business on and off.
With thanks to Leo and TBone for previous help in this journey here
Send filepath of current tab to clipboard
[url]Send filepath of current tab to clipboard]
and here
Capture current Path programmatically
[url]Capture current Path programatically]

Question: Is it possible to have the Command shown in the screenshot refer to a script in a text file?
This would be for the purpose of development. The iterative development/learning process would be a lot easier editing a file then navigating to this dialog box every time. Make sense?
Thanks as always


Yes, as a Script Add-In.

You can also use the CLI to test code.

And we plan to make it easier from the button editor in the future.

Ah Leo what can I say :slight_smile:
Thank you