ondadl
06-11-2002, 08:53 PM
HI had found a iTunes applescript that displays the current song that you are listening to in you AIM profile, i decided that this was cool but i use Audion 2. After struggling to convert this script i am kind of stuck, it just doesnt work Here is the iTunes script then I'm gonna post my Audion script to show people what i changed but to no avail, any help would be appreciated. I added two arrow comments on my modified script so be careful when you cut and paste, and also, i did look up the dictionary for Audion 2 and they gave the class "item" with "name" being one of its properties
Alex
property profilebits : "
my awesome page:
www.canceroftheweb.com
"
-- this is the prompt that'll precede the track
property prompt : "What's playing on my iTunes: "
-- ------------------------------------------
try
tell application "iTunes"
set theSong to (artist of current track) & " - " & (name of current track) & ""
end tell
on error
set theSong to "(no song playing)"
end try
try
tell application "AOL Instant Messenger (SM)"
set profile to prompt & theSong & return & profilebits
end tell
end try
property profilebits : "
my awesome page:
www.canceroftheweb.com
"
-- this is the prompt that'll precede the track
property prompt : "What's playing on my iTunes: "
-- ------------------------------------------
try
tell application "Audion 2" <---changed this line
set theSong to (name of item) <--- changed this line
end tell
on error
set theSong to "(no song playing)"
end try
try
tell application "AOL Instant Messenger (SM)"
set profile to prompt & theSong & return & profilebits
end tell
end try
Alex
property profilebits : "
my awesome page:
www.canceroftheweb.com
"
-- this is the prompt that'll precede the track
property prompt : "What's playing on my iTunes: "
-- ------------------------------------------
try
tell application "iTunes"
set theSong to (artist of current track) & " - " & (name of current track) & ""
end tell
on error
set theSong to "(no song playing)"
end try
try
tell application "AOL Instant Messenger (SM)"
set profile to prompt & theSong & return & profilebits
end tell
end try
property profilebits : "
my awesome page:
www.canceroftheweb.com
"
-- this is the prompt that'll precede the track
property prompt : "What's playing on my iTunes: "
-- ------------------------------------------
try
tell application "Audion 2" <---changed this line
set theSong to (name of item) <--- changed this line
end tell
on error
set theSong to "(no song playing)"
end try
try
tell application "AOL Instant Messenger (SM)"
set profile to prompt & theSong & return & profilebits
end tell
end try