Page 3 of 3
Re: iTunes Help
Posted:
Sat Jan 07, 2012 8:25 pm
by kinkyrastaman
I tried all the suggestions above and still cant get itunes to skip the first song when it start. Or shuffle. Help Please. Thanks.
Re: iTunes Help
Posted:
Thu Dec 13, 2012 4:57 pm
by bbruck
i'm having a slightly different problem.
In a control page, I've created a static image /caption with a server action to play an embedded Applescript:
iTunesStartPlaylist("Christmas", true)
or
iTunesStartPlaylist("Christmas", false)
When I click the button what I see in iTunes is that the current playlist does not change to the Christmas playlist. Instead, the first song of the Christmas playlist plays, and when it's finished, the old playlist resumes (or restarts - don't know).
Thoughts?
Re: iTunes Help
Posted:
Fri Dec 14, 2012 10:42 am
by jay (support)
Are you using iTunes 11? There have been a bunch of complaints that some of the AppleScript is no longer working correctly - I've already found that you can't set shuffle or randomization like you once could.
In the iTunes attachment.scpt file, you might try changing the iTunesStartPlaylist(plist, end) function to this:
- Code: Select all
on iTunesStartPlaylist(plist, rnd)
try
with timeout of iTunesTimeout seconds
if my iTunesIsRunning(true) then
tell application "iTunes"
play playlist plist
set shuffle of current playlist to rnd
end tell
my iTunesLog("start playlist " & plist)
end if
end timeout
on error number errNum
if errNum is -1712 then
my iTunesLogTimeout()
end if
end try
end iTunesStartPlaylist
Specifically, I took out the "first track of" from the play line. That seems to work differently in iTunes 11 than it did in other versions. No guarantees and I don't have time at the moment to dive into the problems more. I am, however, considering the options since iTunes 11 also broke the plugin.
Re: iTunes Help
Posted:
Fri Dec 14, 2012 11:25 am
by bbruck
No joy. Log gives me this:
Dec 14, 2012 12:23:11 PM
WebServer request to execute "iPad Control" control #31 from 127.0.0.1
but nothing happens in iTunes. It keeps playing the current songs.
Re: iTunes Help
Posted:
Fri Dec 14, 2012 11:28 am
by jay (support)
Did you reload the attachments after you modified the iTunes Attachment script? (Plugins->Reload Libraries and Attachments)?
Re: iTunes Help
Posted:
Fri Dec 14, 2012 2:48 pm
by bbruck
Ah, no.
Actually I've never noticed that command. What's the rule about when it should be run?
In any case, I ran it and still no joy. The log has one entry:
WebServer request to execute "iPad Control" control #31 from 127.0.0.1
But the playlist did not change. Not a problem will wait until it comes up in the queue.
Re: iTunes Help
Posted:
Fri Dec 14, 2012 2:52 pm
by jay (support)
Whenever you change an attachment you should reload.
Odd - it's working for me.
Re: iTunes Help
Posted:
Sat Dec 15, 2012 4:06 am
by bbruck
User Error. Works perfectly now.
Thanks Jay!