Scripting the AppleCD Player (anwered myself)
Scripting the AppleCD Player (anwered myself)
- Subject: Scripting the AppleCD Player (anwered myself)
- From: "Brandon Carpenter" <email@hidden>
- Date: Mon, 8 Jan 2001 18:06:44 -0600
Turns out the CD Player is somewhat scriptable
tell app "Apple CD Player"
open file "Audio CD 1:track1"
end tell
or I could have done this with the "Finder"
on run
tell app "Finder"
set audioCD to ""
set diskList to every disk whose (ejectable is true)
repeat with i in diskList
if the name of I starts with "Audio" then
set audioCD to i
exit repeat
end if
other stuff to pick track to play
open selection
end repeat
end tell
end run
I guess I could write other variations to play the selection(s).
Hope this helps others.