In another thread someone was looking for a script that would add all scripts in a directory to a toolbar as custom actions. It was an interesting idea and I had a few minutes, but the request was off topic for the thread, so I am posting my take on it here.
Given the file structure
- /data/Omni Flux/Scripts/Cool Things
- Do Cool Thing.dsb
- Do Cool Thing.dsb.png
- Do Something Else.dse
- Do Something Else.png
- Fix It.dsa
- Fix It.dsa.png
Run the attached script with the parameter '/data/Omni Flux/Scripts/Cool Things' and it will create a new ToolBar named "Cool Things" with the CustomAction's "Do Cool Thing", "Do Something Else", and "Fix It" with their associated icons.