Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion iTunes script
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve  
View profile  
 More options Oct 25 2009, 9:05 am
Newsgroups: microsoft.public.scripting.vbscript
From: "Steve" <cerberu...@gmail.com>
Date: Sun, 25 Oct 2009 05:05:36 -0400
Local: Sun, Oct 25 2009 9:05 am
Subject: Re: iTunes script

tonysathre wrote:
> I've been looking for a way to embed the iTunes downloaded album art
> into the actual MP3 files so when I'm streaming my music from home
> computer to my iPhone using Simplify Media, it shows the artwork. I
> have found a script that can automate this, but apparently it only
> works on iTunes 7. The COM interface, or ActiveX controls must be
> different. Could anyone port this script to work with iTunes 9? The
> script is below.

The script *should* work with iTunes 7 *and later* but the version test
is too simple-minded:

> Dim vers
> vers = iTunesApp.Version
> Dim Reg1
> Set Reg1 = new RegExp
> Reg1.Pattern = "^7"
> if Reg1.Test(vers) Then
> ' yay
> Else
> Wscript.Echo "This script requires iTunes 7"
> Wscript.Quit
> End If

The test only accepts version strings that start with "7"; it assumes
that other versions must be earlier. (BTW, similar simple-mindedness is
the same reason that Opera 10.00 identifies itself as "Opera/9.80" in
its browser identification string--scripts that just tested the first
digit of the version would decide that the current version is actually
version 1.)

This test worked fine when iTunes V7.0 was bright and shiny. If the
script is for your personal use only, you can just remove the test (and
cross your fingers whenever you update iTunes). If you intend to share
the script, you can make the version test smarter.

You can download the iTunes COM SDK from
http://developer.apple.com/sdk/itunescomsdk.html
(you might have to join the Apple Developers Club first).

--
Steve

Horse sense is the thing a horse has which keeps it from betting on
people. -W. C. Fields


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google