tell application "iTunes"
try
set CTRACK to the current track
on error
display dialog "Error: No active track!"
end try
end tell
tell application "iTunes"
if the player state is not stopped then
set CTRACK to the current track
end if
end tell
tell application "System Events"
keystroke return
keystroke "iTunes is playing "
keystroke CTRACK
keystroke return
end tell
tell application "iTunes"
try
set CTRACK to the name of the current track
tell application "TextEdit" to activate
tell application "System Events"
keystroke return
keystroke "iTunes is playing "
keystroke CTRACK
keystroke return
end tell
on error
display dialog "An error occurred!"
end try
end tell
Yeah, it's easy. Instead of saying "the name of the current track", just say, "the artist of the current track".alright, that worked, thanks, but how do i get the Artists name? Is that even possible?