@@ -107,26 +107,66 @@ Fomus {
107107 this .newTag;
108108 this .write;
109109 f = this .fileName.standardizePath ++ timeTag;
110- format("fomus %.fms -o %.ly" , f, f).runInTerminal;
110+ Platform .case(
111+ \osx , {
112+ format("fomus %.fms -o %.ly" , f, f).runInTerminal
113+ },
114+ \linux , {
115+ format("fomus %.fms -o %.ly" , f, f).unixCmd
116+ },
117+ \windows , {
118+ format("fomus %.fms -o %.ly" , f, f).unixCmd
119+ }
120+ );
111121 }
112122
113123 midi {
114124 var f;
115125 this .newTag;
116126 this .write;
117127 f = this .fileName.standardizePath ++ timeTag;
118- format("fomus %.fms -o %.mid" , f, f).runInTerminal;
128+ Platform .case(
129+ \osx , {
130+ format("fomus %.fms -o %.mid" , f, f).runInTerminal
131+ },
132+ \linux , {
133+ format("fomus %.fms -o %.mid" , f, f).unixCmd
134+ },
135+ \windows , {
136+ format("fomus %.fms -o %.mid" , f, f).unixCmd
137+ }
138+ );
119139 }
120140
121141 xml {
122142 var f;
123143 this .newTag;
124144 this .write;
125145 f = this .fileName.standardizePath ++ timeTag;
126- format("fomus %.fms -o %.xml" , f, f).runInTerminal;
146+ Platform .case(
147+ \osx , {
148+ format("fomus %.fms -o %.xml" , f, f).runInTerminal
149+ },
150+ \linux , {
151+ format("fomus %.fms -o %.xml" , f, f).unixCmd
152+ },
153+ \windows , {
154+ format("fomus %.fms -o %.xml" , f, f).unixCmd
155+ }
156+ );
127157 }
128158
129159 show {
130- format("% %.pdf" , this .lilyViewPath, this .fileName.standardizePath).runInTerminal
160+ Platform .case(
161+ \osx , {
162+ format("% %.pdf" , this .lilyViewPath, this .fileName.standardizePath).runInTerminal
163+ },
164+ \linux , {
165+ format("% %.pdf" , this .lilyViewPath, this .fileName.standardizePath).unixCmd
166+ },
167+ \windows , {
168+ format("% %.pdf" , this .lilyViewPath, this .fileName.standardizePath).unixCmd
169+ }
170+ );
131171 }
132172}
0 commit comments