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

Open iTunes and Clutter together via AppleScript Apps
The other day I started fooling around with Applescript just to see what it was and what I could do with it. After opening a few scripts in Script Editor and trying out a few things, I ended up making a little app that opens iTunes and Clutter together. I use Clutter to control iTunes; most of the time I just set my library on shuffle and let the tunes play. So this script opens iTunes, tells it to play, opens Clutter, and then closes the main iTunes window. I must mention that I am Applescript (or any type of programming language for that matter) illiterate. This script is really simple and may have already been done in other, better ways. I just couldn't find one already out there, so I made my own.

Here's the script (for other illiterates like myself who may run across this hint, open a new script in Script Editor, then paste the following text):
tell application "iTunes"
  activate
end tell

tell application "Clutter"
  activate
end tell

tell application "iTunes"
  play
end tell

tell application "iTunes"
  close window "iTunes"
end tell
I saved the script as an application with no start-up screen (Save As -> Application, click "Never show start-up screen"), gave it a custom icon, and now just use it to launch iTunes and Clutter. I'm sure most people here can do this themselves, but if they haven't, at least now they can cut and paste and save a little typing. I know it's not much, but I'm kinda proud of my first venture into writing scripts.

[robg adds: Yes, it's a simple script, but it does show just how easy it is to get started with AppleScript...]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,428 views]  

Open iTunes and Clutter together via AppleScript | 1 comments | Create New Account
Click here to return to the 'Open iTunes and Clutter together via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open iTunes and Clutter together via AppleScript
Authored by: diamondsw on Sep 18, '03 10:51:33AM
Or simply:

tell application "Clutter" to activate

tell application "iTunes"
play
close window "iTunes"
end tell


[ Reply to This | # ]