Command Line Cocoa
by Marco Coïsson
In this section you can download command line tools that implement some of the functionalities of Cocoa classes. Download the commands that you need, unpack them and use them from the Terminal. Unless otherwise stated, get help on them by invoking each command with the -h or --help option.
- NSSound class:
- clnssoundplay: shell command that plays a sound file in any format supported by the Cocoa NSSound class; you can download a demo AppleScript by Thomas Kühner of MacScripter, making use of clnssoundplay: thank you Thomas! You can also download a nice droplet by Sal Soghoian made with AppleScript and clnssoundplay: simply drop one or more sound files on its icon to play them; open the package (control-click or right-click on its icon) to look at its AppleScript file; thank you Sal!
- clnssoundfiletypes: want to know which sound file types are supported by clnssoundplay? Download clnssoundfiletypes and invoke it from the shell without any arguments (no help options are available).
License
All these command line tools are freeware. Use them freely. If you want to distribute one or more of these tools in an application or an application bundle, please cite this page. If your application or application bundle is not freeware or OpenSource you are not allowed to distribute these tools; in this case, please contact me for further information.
Return to my homepage