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

[sc-users] Main.sc and stand-alone application



Hi,

I am trying to create a quasi-standalone application.?

I don't need any extra Classes so just put an rtf file that I coded (myApp.rtf) in SuperCollider directory

(/Applications/SuperCollider/myApp.rtf),

then added a line on Main.sc:


startup {

platform = this.platformClass.new;

platform.initPlatform;

super.startup;

Server.default = Server.internal;

interpreter.s = Server.default;

GUI.fromID( this.platform.defaultGUIScheme );

GeneralHID.fromID( this.platform.defaultHIDScheme );

this.platform.startup;

StartUp.run;

(

osx: "Welcome to SuperCollider, type cmd-d for help",

linux: "Welcome to SuperCollider, type ctrl-c ctl-h for help from Emacs",

windows: "Welcome to SuperCollider, press F1 for help"

).at(platform.name).postln;


/******* stand-alone application *******/

interpreter.executeFile(String.scDir ++ "/myApp.rtf");

}


But when I tried to start up SC, it wouldn't show anything and seemed crashed.

Are there any points that I have to check? Or any mistakes?


I am on OSX 10.5.5.


Thanks in advance,


Tadashi



発想力を鍛えるクイズ『ことのパ!』目指そうランキング入り! 企画担当者のハイスコア:1023点