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


Click here to return to the 'mp3 alarmclock?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
mp3 alarmclock?
Authored by: tcurtin on Jan 22, '03 11:38:17PM

Check out this previous article here - the poster included a bash script that will run itunes and tell it to play from a playlist. You can pretty easily adapt what you get from the script to your own nefarious purposes. ;)

http://www.macosxhints.com/article.php?story=20020110163623707

For instance, I put the following line (all one line) into my .cshrc file in my home directory:
alias music 'echo tell application \"Itunes\" to play \(some track of playlist \"Library\"\) | /usr/bin/osascript; echo tell application \"Finder\" to set visible of process \"itunes\" to false | /usr/bin/osascript'

Once you add that line, quit Terminal, and when you restart it you can type 'music' in any terminal window, and itunes starts up, plays a random track, and hides itself. I'm used to writing scripts in perl and sh - AppleScript is taking a while to get used to, but this makes a good start!

Good luck,
-Tim



[ Reply to This | # ]