Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'a couple small additions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
a couple small additions
Authored by: reverie on Nov 11, '01 05:33:16AM

I have a huge mp3 library stored over several different locations (different folders, as well as different networked machines!), so it's kind of a pain to keep everything in the itunes music library. I have a simple alias to open up a folder of music in itunes:

alias itunes 'open -a iTunes'

so that "itunes /mp3s/Coil*" will load up and start playing all of my Coil mp3s.

Also, the initial aliases in this thread were a little more wordy than necessary. Try this out to save yourself a few keystrokes (and make the code more maintainable):

alias next 'osascript -e '"'"'tell application "iTunes" to next track'"'"
alias prev 'osascript -e '"'"'tell application "iTunes" to previous track'"'"

The ugly quoting up there is to make use of nested quoting--another problem I had with the initial posting was that I couldn't get the aliases to work! I think all aliases with spaces in them need to be surrounded by quotes, at least when you have them in your .cshrc (in fact, I highly recommend using quotes in all of your unix scripting--I'm sure we all know by now what nightmares await those who skimp on quotes).



[ Reply to This | # ]