More order in Scripts menu

24 views
Skip to first unread message

Rainer Krug

unread,
May 11, 2021, 3:52:27 AM5/11/21
to BBEdit Talk
Hi

I have some scripts in the script menu which contains general scripts and scripts for specific languages.

What is the easiest way of sorting these? I am using at the moment e.g `R)` for R sripts. but is there something else?

Can I define dividers in the Scripts menu?

Can I define submenus in the Script menu?

Can I hide scripts which depending on the language in the editor window?

Are there any other ways of sorting the scripts, which I am missing?

Thanks

Rainer

jj

unread,
May 11, 2021, 6:13:42 AM5/11/21
to BBEdit Talk

Hi Rainer,

From the excellent BBEdit User Manual;-)

menu Help > User Manual

Organizing Scripts
Items in the Scripts menu and Scripts palette are displayed in alphabetical order by default, but you can force them to appear in any desired order by including any two characters followed by a right parenthesis at the beginning of their name. (For example “00)Save All” would sort before “01)Close All.”) For names of this form, the first three characters are not displayed in the window.
You can also insert a divider into the Scripts menu by including an empty folder whose name ends with the string “-***”. (The folder can be named anything, so it sorts where you want it.)
Note Any dividers you add will appear in the Scripts menu, but not the Scripts palette.

Furthermore you can google "github applescript bbpackage" and see how to wrap your scripts in a bbpackage.

HTH

Jean Jourdain
Reply all
Reply to author
Forward
0 new messages