Cal’s style guide, and good practice for app dictionaries, emphasises building a good object hierarchy, and using properties instead of making new commands where possible. But in a script library, that’s generally not practical – by their nature they tend to be almost totally command-based.
The main think I’d advise is to concentrate on not clashing in either terminology or event codes. Using multiple-word terms decreases the chance of clashes significantly.
I’m trying to do something that should be simple (although take a long time), but it’s not working.
I want to search the contents of every application package in the Apps folder, and every script bundle in the Script Library folders for .sdef files.
My script will then read them, extract the names and codes for all the Suites, commands, objects, ennumerators and save them to a tab-separated text file I can look at in Excel, numbers or Myriad tables.
I’ve tried both the MetaDatalib and the FileManagerLib but in the first case I get nothing, in the second case I crash SD.