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

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



what is in MyApp.rtf? 

Best,

Josh

On Dec 25, 2008, at 7:05 PM, Usami Tadashi wrote:

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点

******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/