Re: I'm embarrassed to even ask...
Re: I'm embarrassed to even ask...
- Subject: Re: I'm embarrassed to even ask...
- From: Matthew Smith <email@hidden>
- Date: Fri, 08 Apr 2005 14:19:03 +1000
Title: Re: I'm embarrassed to even ask...
on 08/04/2005 14:09, Thomas Berry at email@hidden wrote:
But I've spent over 2 hours trying to figure out how to make iTunes repeat songs/playlists. Google is no help, MacScripter.net is no help, Doug's applescripts are of no use. I can only presume that this is so blindingly simple that I'm the stupid one. Flame away if you must but include the answer, please.
According to the applescript dictionary, the "Playlist" class contains and element "Track" with property song repeat off/one/all
I'm trying to have the user click a button that sets and reflects the shuffle status of the iTunes player. This compiles but doesn't work (can't get song repeat):
tell application "iTunes"
if song repeat is off then
set song repeat to all
set strButtonTitle to "Repeat List"
else if song repeat is all then
set song repeat to one
set strButtonTitle to "Repeat Song"
else if song repeat is one then
set song repeat to off
set strButtonTitle to "Repeat Off"
end if
end tell
You'd think it would work like the Shuffle command: "set shuffle of current playlist to false"
but I've tried every variation I can think of but to no avail.
It would work like the shuffle command, if you put “of current playlist” after it:
tell application "iTunes"
if song repeat of current playlist is off then
set song repeat of current playlist to all
set strButtonTitle to "Repeat List"
else if song repeat of current playlist is all then
set song repeat of current playlist to one
set strButtonTitle of current playlist to "Repeat Song"
else if song repeat of current playlist is one then
set song repeat of current playlist to off
set strButtonTitle to "Repeat Off"
end if
end tell
--
Matthew Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden