• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: convert command ignoring reference list in iTunes 7.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert command ignoring reference list in iTunes 7.0


  • Subject: Re: convert command ignoring reference list in iTunes 7.0
  • From: Don Crockett <email@hidden>
  • Date: Wed, 20 Sep 2006 08:43:32 -0400

That doesn't work. The "convert" command takes a list of references to tracks/ files and a database ID is just an integer. Nothing gets imported when a list of database IDs are passed.

I did try passing the location of the 2 tracks but that also results in the entire CD being imported.

I filed a Bug Report on this, any experience on how responsive AppleScript/iTunes folks are on fixing things? Also I can no longer access the bug I posted. It shows up in "My Originated Problems" but when I click on the bug it tells me "You do not have privileges to view problem X." It's listed as "Open". It looks like someone added an "AS:" to the title I posted "AS: Applescript "convert" ignores track list, imports all tracks with iTunes 7.0".

						Don


At 8:57 PM +1000 9/20/06, Peter Baxter wrote:
Hi Don

How about this:


tell application "Finder"
set audioCDSource to the name of first disk whose format is audio format
(*get name of disk on the desktop*)
end tell
tell application "iTunes"
activate
play audioCDSource
delay 1



set track1 to database ID of current track next track set secondTrack to database ID of current track next track set thirdTrack to database ID of current track


set importedTracks to convert {secondTrack, thirdTrack} end tell

It probably works



On 14/09/2006, at 12:54 PM, Don Crockett wrote:

I just upgraded my iTunes to 7.0 and now a script that used the convert command to import individual tracks off a CD now causes iTunes to import the entire CD. The convert command fails with a timeout error.

Here's a sample script that demonstrates the problem:

tell application "iTunes"
	set audioCDSource to (first source whose kind is audio CD)
	set secondTrack to track 2 of playlist 1 of audioCDSource
	set thirdTrack to track 3 of playlist 1 of audioCDSource
	set importedTracks to convert {secondTrack, thirdTrack}
end tell

Load a CD and after iTune recognizes the CD, run the script. The script should just import tracks 2 & 3 (which it does with iTunes 6.0) but with 7.0 it loads all tracks starting with track 1.

I was getting ready to launch a product with this script in the next month but this bug will cause me major headaches. I logged a bug using Bug Reporter.

Anyone have any suggested workarounds or approaches to take? Any guesses on how long a bug like this might take to get fixed or addressed? DTS tells me they don't support AppleScript.

Thanks!

Don
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (<mailto:email@hidden>email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to <mailto:email@hidden>email@hidden




Peter Baxter <mailto:email@hidden>email@hidden


iChat <mailto:email@hidden>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:
This email sent to email@hidden


--
Don Crockett - mailto:email@hidden
The Virtual Birder(R) - http://www.virtualbirder.com
Newton, Massachusetts
_______________________________________________
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


  • Follow-Ups:
    • Re: convert command ignoring reference list in iTunes 7.0
      • From: Peter Baxter <email@hidden>
References: 
 >convert command ignoring reference list in iTunes 7.0 (From: Don Crockett <email@hidden>)
 >Re: convert command ignoring reference list in iTunes 7.0 (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: convert command ignoring reference list in iTunes 7.0
  • Next by Date: Re: convert command ignoring reference list in iTunes 7.0
  • Previous by thread: Re: convert command ignoring reference list in iTunes 7.0
  • Next by thread: Re: convert command ignoring reference list in iTunes 7.0
  • Index(es):
    • Date
    • Thread