[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] constant app crashes



Okay, can't see anything in particular wrong with that. Let me know if you have any further issues.

S.

On 19 Dec 2008, at 01:29, jostM wrote:



Scott Wilson wrote:
Jost,

I know this seems to be better, but can you show me your menu code,
just in case?

S.

On 18 Dec 2008, at 07:21, jostM wrote:


one is the help menu. the other just runs a shell command:


{var m,q;
m = CocoaMenuItem.new(nil, 9, "Tools", true);

File.exists(Platform.userAppSupportDir++"/extensions-off").if{

   q = CocoaMenuItem.new(m, 1, "extensions on", false,{
       "mv %/% %/%; osascript
%%".format(Platform.userAppSupportDir.escapeChar($ ),
        "Extensions-off", Platform.userAppSupportDir.escapeChar($ ),
"Extensions",
        Platform.userAppSupportDir.escapeChar($
),"/recompile.scptd").unixCmd;});
   }{
   q = CocoaMenuItem.new(m, 1, "extensions off", false,{
       "mv %/% %/%; osascript
%%".format(Platform.userAppSupportDir.escapeChar($ ),
        "Extensions", Platform.userAppSupportDir.escapeChar($ ),
"Extensions-off",
        Platform.userAppSupportDir.escapeChar($
),"/recompile.scptd").unixCmd;});

   };
}.value;

Help.addToMenu;




_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/