set messageText to ""
try
tell application "iTunes"
set trackName to name of current track
set trackArtist to artist of current track
set trackAlbum to album of current track
end tell
if not trackArtist = "" then
set trackArtist to " by " & trackArtist
end if
if not trackAlbum = "" then
set trackAlbum to " from " & trackAlbum
end if
set messageText to trackName & trackArtist & trackAlbum
end try
set commandText to "SET PROFILE MOOD_TEXT " & messageText
tell application "Skype"
send command commandText script name "test"
end tell
try
tell application "iTunes"
set trackName to name of current track
set trackArtist to artist of current track
set trackAlbum to album of current track
end tell
if not trackArtist = "" then
set trackArtist to " by " & trackArtist
end if
if not trackAlbum = "" then
set trackAlbum to " from " & trackAlbum
end if
set messageText to trackName & trackArtist & trackAlbum
end try
set commandText to "SET PROFILE MOOD_TEXT " & messageText
tell application "Skype"
send command commandText script name "test"
end tell

8 responses so far ↓
1 DanielD // Aug 9, 2006 at 7:24 PM
2 Sean Corfield // Aug 9, 2006 at 11:01 PM
3 cyprian.pl // Nov 15, 2006 at 5:15 PM
It can trigger AppleScript everytime a track is changed.
4 John Wilker // Dec 18, 2006 at 10:14 AM
5 mortimer // Jan 17, 2007 at 9:14 AM
next step, find how to do the same with last.fm ;)
6 Kelly // Jan 30, 2007 at 11:02 AM
7 Marco van Lienen // Dec 2, 2007 at 12:19 PM
I gave Proxy permission to 'talk' to the Skype API (Proxi is showing as a Skype API Client).
should that be enough to show which iTunes song is playing from within Skype (on Mac version 2.6.0.151) cuz im not seeing it.
8 Sean Corfield // Dec 2, 2007 at 4:01 PM
Leave a Comment