View Full Version : Applescript actions -Upon CD insertion

Dec 23, 2011, 02:15 AM
So far I have the script:

if player_state of application "iTunes" is paused then
tell application "Finder"
eject disk "Audio CD"

And a script I found online

tell application "iTunes"
set myCD to first source whose kind is audio CD
tell playlist 1 of myCD
repeat 4 times
set shuffle to false
set shuffle to true
end repeat
I was going to put them together so I would have a script in which I insert a CD and have it automatically play and then eject once finished.

I think I'm on the wrong track...

Anyone have any ideas? :rolleyes: