Re: convert command ignoring reference list in iTunes 7.0
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 19:30:37 -0400
I switched the "On CD Insert" to "Show CD" fairly early in the
process so that isn't the issue. I'll try some other settings though.
Don
At 10:45 PM +1000 9/20/06, Peter Baxter wrote:
Yes, I tried that and it failed also so I tried step by step convert:
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 name of current track
(*convert track1 if you wish*)
delay 10
next track
set secondTrack to name of current track
convert secondTrack
delay 10
next track
set thirdTrack to name of current track
convert thirdTrack
end tell
and this doesn't even work!
I'll have to look at all my iTunes scripts for faults now.
Peter
On 20/09/2006, at 10:43 PM, Don Crockett wrote:
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>mailto:email@hidden><mailto:email@hidden>email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to
<<mailto:email@hidden>mailto:email@hidden><mailto:email@hidden>email@hidden
Peter Baxter
<<mailto:email@hidden>mailto:email@hidden><mailto:email@hidden>email@hidden
iChat
<<mailto:email@hidden>mailto:email@hidden><mailto:email@hidden>email@hidden
_______________________________________________
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
--
Don Crockett - <mailto:email@hidden>mailto:email@hidden
The Virtual Birder(R) -
<http://www.virtualbirder.com>http://www.virtualbirder.com
Newton, Massachusetts
_______________________________________________
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
--
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