-
... ileClass( fn ); this.open( fn ); } checkFileClass{ |fn| var tar,txt; var path = PathName(fn); tar = (path.extension == "tar"); txt = (path.extension == "txt"); if ( tar ){ fileClass = MultiFilePlayer; }{ if ( txt ){ fileClass = TabFilePlaye ...
-
... Script( pageSize, *args ), true, // overwrite any existing doneAction: { |file, pathName| File.checkDo( path, "", doneAction: { |file, finalPath| ("/tmp/" ++ path.basename.replaceExtension( "ps" )) .ps2pdf( finalPath, true ); }); }); } } + ...
-
... of all your soundfiles in your sounds directory s.boot; ( a= RedSampler (s); p= PathName ( "sounds" ).deepFiles.select{ |x| var sf= SoundFile .openRead(x.fullPath); if(sf.notNil, { sf.close; true ; }, { false ; }); }; p.do{ |x| var sf= Soun ...
-
... {thisPath = filesPath}, {thisPath = mainPath});}; dir = (thisPath ++ modPath); PathName(dir).files.do{|item| existFiles = existFiles.add(item.fileNameWithoutDoubleExtension.asSymbol); }; classString = class.asString.firstToUpper; if(existF ...
-
... lue].asString) .loadBuffers( bufferDict.at(selPool.items[selPool.value])[0], // pathnames bufferDict.at(selPool.items[selPool.value])[1] // selections ); ); }); }); // if the manager is created from a save button in the pool if(pool.notNil, ...
-
... // quark was installed via Quarks.install or dropped into Extensions. *root { ^PathName(this.filenameSymbol.asString).pathOnly.dirname } *coreDir { ^this.root +/+ "Core" } // --- server ----------------------------------------------------- ...
-
... ndChild(nameTag); this.asDOMElement( d, root ); if(path.notNil) { File.checkDo( PathName(path).extension_( "xml").fullPath, //force xml extension { |f| d.write(f); }, overwrite, ask) // output to file with default formatting }; ^d.format; } ...
-
... ".format(this.name).error }); } *prMakeFileListTXT{|configString| var outFile = PathName.tmp +/+ "filelist.txt"; "%: Creating % file containing:\n%".format(this.name, outFile, configString).postln; File .open(outFile, mode:"w") .write(confi ...
-
... ~hf .addDescription( \new , "Create an instance of HelpFile2, with the path <em>pathName</em>" , \class ); ~hf .addDescription( \createInstanceMethods , "creates the instance methods. Is called when the classname is set." ); ~hf .addDescrip ...
-
... .order; report = AtkTests.report; floatWithin = AtkTests.floatWithin; dataDir = PathName(AtkTests.filenameSymbol.asString).parentLevelPath(1) +/+ "TestData"; // When checking many values in reference file, just exit after numerous failures ...