Re: iTunes script problems
Re: iTunes script problems
> I can get this to play one song, then it's back to other artists.
Are you letting the song play, or are you using the user interface to go to the next song?
The problem with this solution is that it delays a set amount of time no matter what's happened in iTunes via the UI.
A similar solution would be to use something like:
repeat with thisTune in myTunes
set theTime to the duration of thisTune
play thisTune
repeat until (duration of thisTune- playerPosition <2)
delay 1
end repeat
delay 1
end repeat
(Untested
But, if I were doing this, I'd create a new playlist, named "TEMP" or "Last Find"
the script would:
clear the play list
put the found songs in the play list
play from there
HTH,
ES
On Nov 20, 2009, at 7:23am, Chuck wrote:
> I can get this to play one song, then it's back to other artists.
>
> It might be that I have the shuffle set for all songs.
>
> I will modify that in the script and see of that makes it work.
>
> Chuck
>
> On Nov 20, 2009, at 1:23 AM, Simone Paoletti wrote:
>
>> This works fine for me:
>>
>> set author to the text returned of (display dialog "Which author name ?" default answer "U2")
>> tell application "iTunes"
>> set myTunes to get search playlist "Music" for author
>> repeat with thisTune in myTunes
>> set theTitle to the name of thisTune
>> set theTime to the duration of thisTune
>> -- display dialog theTitle default answer "ok" giving up after 1
>> play thisTune
>> delay theTime
>> end repeat
>> end tell
>>
>>
>> Simone Paoletti
>>
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden