iTunes Help

Posted on
Sat Jan 07, 2012 8:25 pm
kinkyrastaman offline
Posts: 12
Joined: Jun 21, 2010

Re: iTunes Help

I tried all the suggestions above and still cant get itunes to skip the first song when it start. Or shuffle. Help Please. Thanks.

Posted on
Thu Dec 13, 2012 4:57 pm
bbruck offline
Posts: 343
Joined: Oct 05, 2008

Re: iTunes Help

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?

Posted on
Fri Dec 14, 2012 10:42 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: iTunes Help

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Dec 14, 2012 11:25 am
bbruck offline
Posts: 343
Joined: Oct 05, 2008

Re: iTunes Help

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.

Posted on
Fri Dec 14, 2012 11:28 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: iTunes Help

Did you reload the attachments after you modified the iTunes Attachment script? (Plugins->Reload Libraries and Attachments)?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Dec 14, 2012 2:48 pm
bbruck offline
Posts: 343
Joined: Oct 05, 2008

Re: iTunes Help

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.

Posted on
Fri Dec 14, 2012 2:52 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: iTunes Help

Whenever you change an attachment you should reload.

Odd - it's working for me.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Dec 15, 2012 4:06 am
bbruck offline
Posts: 343
Joined: Oct 05, 2008

Re: iTunes Help

User Error. Works perfectly now.

Thanks Jay!

Who is online

Users browsing this forum: No registered users and 8 guests