A quick (and dirty) Script Palette script

 From:  dinos
5993.32 In reply to 5993.31 
Hi Hans!

I havent tried it, but yes it should work as you describe.

Just change the ! at line 22 in the second copy of the script to something else:
code:
title = line.match(/\/\*\!(.+)\*\//);

Its escaped so you should be fine with most symbols.

I wrote this script primarily for me, and released it in case someone else needed a relatively simple way to keep their scripts in a palette. The Shortcut Keys panel inside Options is hardcoded and cannot be altered so i used the ! sign to emulate a check box next to each command. In my mind the ! sign is actually a check box saying "include in the palette" ;-)

I could replace the ! with !1, !2 etc for multiple categories, but there a few issues that i'll have to think about such as naming the categories, passing parameters to the script etc.
If i can find some free time i might give it a shot.
In the meantime what you are describing is the best way to do it.


Dinos