Now while it's true we can perform the next step using any text editor, since you have the Developer Tools installed you have an even better tool for the job, the PropertyListEditor application, which you'll find in
/Developer/Applications. So go ahead and open PropertyListEditor.
From the File menu, select Open, navigate to
~/Library/Application Support/Terminal, and open the
streamripper.term file. Like plist files, the data in term files are arranged in a hierarchy with a "Root" level at the top. Clicking the Root level's disclosure triangle will expose the next level down, "WindowSettings." Disclose that level, and the "0" level below it and you'll then see the complete list of the term file’s properties, most of which will look familiar.
Next, scroll down to the "ExecutionString" line and double-click on its field in the "Value" column, which will select it for text entry.
Enter this string:
streamripper 184.108.40.206:8046 -d ~/Music/;open ~/Music/Japan-*;exit
And press Return to close that field. The string you entered is a single command line made of three commands, each separated by a semicolon. Joining commands in this way allows you to run commands sequentially (the next one running only when the previous has finished), just as if you entered them on three different lines. Therefore, the line you entered is equivalent to you first running Streamripper:
streamripper 220.127.116.11:8046 -d ~/Music/
and then once you've stopped the ripping, issuing this command:
open command opens the destination folder in the finder, allowing you to see your freshly ripped files. Since the destination folder is named for the "station" providing the stream, the pathname will, of course, be different for different stations. The
* in the pathname is a wildcard character, letting you designate the directory by only its first few characters. Finally, the
exit command terminates your shell session (always a good idea when you're done).
Now for the finishing touch. Scroll down to the "TerminalOpaqueness" line. This hidden setting allows you to set the window's transparency, which will give our window a realistic, glass-like appearance. The value you need to enter is the decimal equivalent of the desired percentage of opaqueness. The default setting of 1.0, then, results in a 100% opaque window. A good setting for our window will be .85, which will be just a bit transparent. Enter ".85" in the value field and press Return.
We're done with the term file and now only need to save it. From the File menu, select Save As and save the file with an appropriate new name (still appended with ".term") in the same directory as the original.
You might need to restart Terminal to see the file in your Library menu. Once it's there, select it and see your creation:
Finally, here are a few more points regarding term files and Streamripper that will help you make your own version of this file (and others):
Previously in the Series
- A term file, when double-clicked in the Finder, opens and runs in Terminal just as if you had selected it from the Library menu. You might want to paste a custom icon onto your file and put it in the Dock, Toolbar, or Favorites folder. Or, you could make a folder full of different Streamripper term files for different stations and put that in the Dock.
- Just as a
crontabcommand line can reference a shell script, so can the command line you add to your term file, allowing you to do just about anything with a term file.
- Terminal also recognizes double-clickable "command files," which are plain text and hold just command lines and scripts, and are named with
.commandat the end. Opening a command file in Terminal will open a new default window in which to run the command. This differs from a term file, which specifies the properties of the window. You'll find more about command files here.
- Each Streamripper session will require a good chunk of CPU attention. Depending on your machine, you probably don't want to run more than a couple of sessions at once.
- If you want to listen to the stream as you rip, add the
-r(relay) flag to the Streamripper command, like this:
- Some stations don't send the meta-data needed to break the stream into individual song files. In these cases, Streamripper will rip to one long file.
- Not all Unix software installs on OS X as effortlessly as Streamripper. For hints on installing other packages, see this site.
streamripper 18.104.22.168:8046 -r -d ~/Music/
Then, open iTunes, select Open Stream from the Advanced menu, and enter this as the URL:
With the procedures you've learned in this tutorial, you'll be able to take even more advantage of Mac OS X's Unix roots, as well as Terminal's unique capabilities. If you come up with any interesting term files of your own, feel free to share them in TalkBack.
Mac terminal in Gentoo Linux style
2007-03-31 16:45:14 totopo [View]
2006-01-09 14:52:13 Cruzapete [View]
2006-05-26 01:30:22 email@example.com [View]
2004-05-30 20:18:56 mkf [View]
2003-10-26 22:57:12 anonymous2 [View]
2003-02-26 00:23:31 anonymous2 [View]
2003-02-09 09:19:25 anonymous2 [View]
streamripper: Command not found. Try this...
2003-06-13 10:09:28 hypatio [View]
2003-02-07 14:14:00 anonymous2 [View]
2003-02-07 11:37:28 anonymous2 [View]
2003-02-07 11:29:01 anonymous2 [View]
2003-02-07 11:28:52 anonymous2 [View]
2003-02-07 11:14:46 Chris Stone | [View]
2003-02-07 10:54:52 anonymous2 [View]
2003-01-15 12:53:12 anonymous2 [View]
Terminal and color listings with ls
2004-04-23 12:28:44 teeter [View]
2002-08-23 10:20:21 isabellovesme [View]
2002-08-04 10:41:18 royland [View]
2002-08-04 10:37:24 royland [View]
2002-06-17 16:13:30 comdico [View]
2002-05-19 06:12:27 audiophyle [View]
2002-05-10 11:46:36 lilnemo [View]
IP trouble in www.live365.com, no .pls files, unix?
2002-05-11 17:12:18 psheldon [View]
2002-05-10 09:23:54 psheldon [View]
2002-05-09 21:15:56 psheldon [View]
streaming lectures anywhere?
2003-12-05 13:46:16 anonymous2 [View]
2002-05-09 21:13:27 psheldon [View]
2002-05-09 21:01:42 psheldon [View]
2002-04-28 06:40:36 wguyette [View]
?IP and port Number
2002-05-09 21:05:17 psheldon [View]
2002-04-16 12:42:12 raynerc [View]
2002-04-08 15:00:42 mcginniwa [View]
2002-04-08 14:52:46 mcginniwa [View]
2002-04-07 05:12:12 tsull [View]
2002-04-06 12:27:25 rberg [View]
2002-04-05 13:45:58 pnschatz [View]
2002-04-05 05:33:30 bradrice [View]
2002-04-03 23:07:28 kwidholm [View]
2002-04-03 14:04:17 remaley [View]
2002-04-03 00:15:15 runediva [View]
2002-03-29 17:38:49 tomp2002 [View]
2002-03-28 10:42:39 Chris Stone | [View]
Addendum -- /usr/local/bin
2002-03-28 15:56:05 Chris Stone | [View]
Addendum -- /usr/local/bin
2002-03-28 13:39:13 network23 [View]
2002-03-28 01:24:13 oreillynet20000 [View]
2002-03-28 00:14:55 rberg [View]
2002-03-27 13:22:15 network23 [View]
2002-03-27 12:31:59 gumbright [View]
2002-03-27 12:20:29 russh [View]