FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Improvement to "iTunes Remote" SC action

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Jan 13, 2004 5:53 pm    Post subject: Improvement to "iTunes Remote" SC action Reply with quote

A small but significant improvement to the iTunes Remote salling
clicker action is to modify the playlist_was_selected function in this
to show the selected playlist in iTunes when the user selects a
playlist. Just add the following line prior to the "play pl" line in
playlist_was_selected. You can also make a similar change to the
standalone select playlist action:

if exists browser window 1 then set view of browser window 1 to pl

Here is the complete function:

on playlist_was_selected(itemIndex)
try
tell application "iTunes"
set pl to item itemIndex of the_playlists
if class of pl is radio tuner playlist then
my showTracks(pl, "Select Station")
else
if exists browser window 1 then set view of browser window
1 to pl
play pl
tell application "SEC Helper"
show screen message name of pl icon play
end tell
return false
end if
end tell
on error
tell application "SEC Helper"
enter popup mode text "Cannot play this playlist."
end tell
beep
end try
return true
end playlist_was_selected


Steve


Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group