I’m working on my “architecture” to have a reusable set of action code functions. If I copy a function to a new TBX file I run into the problem that I need to create the user attributes used in the function manually. So I created a small AS app that will solve this issue for me.
addTBXAtt.zip (56.9 KB)
This is an AppleScript app with the source included - you can open it with the Script Editor if you like.
if you don’t like to jump into the AS world - just place the app anywhere on your Mac, copy the path to the app and enter this action code in TBX:
$MyString = runCommand("osascript ~/Desktop/addTBXAtt.app 'FirstAttribute:string;SecondAttribute:number'");
A good place may be a stamp - since you need to run it only once. The parameter is a string containing any number of attributes to be created. Its “name:type” separated by a “;”.
Maybe useful for someone
P.S.: The hard thing to solve were some security issues I ran into on my Mac. The security settings are getting weird in the current Mac OS releases…