iPhone 4 Review
Become a member of the iLounge Forums. Register Now!
To start viewing messages, select the forum that you want to visit from the selection below.
If this is your first visit, be sure to check out the Forum FAQ and Forum Policy.

Topic: About Copy Track Info to CD Tracks and iTunes 4.1

Reply Thread Tools Topic Search
 
Old 10-21-2003, 06:26 AM
#1
 

 
Join Date: Jan 2002
Posts: 2,284
Exclamation About Copy Track Info to CD Tracks and iTunes 4.1

Several users have emailed me over the past few days reporting that, upon updating to iTunes 4.1, the script no longer works and reports an error.

After having spent some time with it, I'm not any closer to a real solution, because I'm stumped.

In specific, these two lines of code result in the error:

Code:
set track count of (audio CD track i of theCD) to (track count of track trackNum of trLister) as integer
set track number of (audio CD track i of theCD) to (track number of track trackNum of trLister) as integer
From tinkering, I think the bug is Apple's not mine. Put a CD in your Mac and after it mounts in iTunes, select a track, type "command-i", select the "Info" tab, and try to edit either the track count or track number, and you will find that you cannot. It may be that Apple has made these items read-only in iTunes 4.1 (stupid, stupid Apple, if that is the case.) Or it may be an honest-to god bug.

In the meantime, a temporary fix is pretty easy for any user to implement.

1. Open the script in Script Editor.
2. Find the two lines mentioned above.
3. Add "--" to the beginning of each like so:

Code:
--set track count of (audio CD track i of theCD) to (track count of track trackNum of trLister) as integer
--set track number of (audio CD track i of theCD) to (track number of track trackNum of trLister) as integer
4. Save the script.

It will run, but it will not (because it no longer can) edit the track number and track count info. You will have to edit these manually after the songs have been imported. This defeats the whole purpose of the script, I know, and I am sorry.
__________________

1G iPod 5GB : lucy 4G iPod Photo 60GB : SoaringRabbit| iMac G4 800Mhz | 17" Aluminum Powerbook| OS 10.3 | LaCie 160 GB External Firewire HD - 70 GB of Music!
eustacescrubb is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote

Become a member of the iLounge Forums and the ad above will disappear.

Old 10-21-2003, 06:51 AM
#2
 
Senior Lounger
 
Join Date: Jul 2003
Location: Indianapolis, IN
Posts: 119

I have not used your script before, but it would seem to me that the track number and track count of a cd would be read only. what would be the pupose of changing them except to make them incorrect?
__________________
AppleScripts for Entourage, iTunes, and more
http://applescript.plaidcow.net/
DeltaTee is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote
Old 10-21-2003, 08:00 AM
#3
 

Mod
 
Join Date: Jun 2003
Location: Providence, RI, USA
Posts: 705
Bummer

Yep, you're locked out all right. As DeltaTee has observed, what sense would there be in altering the track number and count of a CD?

I wish they had made note of it in the iTunes AppleScript dictionary, however.

Regards retro-fitting the script: you may want to wrap the track number/count lines in a try block rather than commenting them out, so earlier versions of iTunes can still access the track number and count.
__________________
Visit Doug's AppleScripts for iTunes
Doug Adams is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote
Old 10-21-2003, 12:19 PM
#4
 

 
Join Date: Jan 2002
Posts: 2,284

Quote:
what would be the pupose of changing them except to make them incorrect?
There's actually several reasons - one, for example is that when I put a boxed set into iTunes, I like to re-organize everything into the original albums, which requires changing track count and track number.
__________________

1G iPod 5GB : lucy 4G iPod Photo 60GB : SoaringRabbit| iMac G4 800Mhz | 17" Aluminum Powerbook| OS 10.3 | LaCie 160 GB External Firewire HD - 70 GB of Music!
eustacescrubb is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote
Old 10-21-2003, 12:42 PM
#5
 

Mod
 
Join Date: Jun 2003
Location: Providence, RI, USA
Posts: 705

Quote:
Originally posted by eustacescrubb
There's actually several reasons - one, for example is that when I put a boxed set into iTunes, I like to re-organize everything into the original albums, which requires changing track count and track number.
Excellent point!
__________________
Visit Doug's AppleScripts for iTunes
Doug Adams is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote
Old 10-21-2003, 05:26 PM
#6
 
Senior Lounger
 
Join Date: Jul 2003
Location: Indianapolis, IN
Posts: 119

Quote:
Originally posted by eustacescrubb
There's actually several reasons - one, for example is that when I put a boxed set into iTunes, I like to re-organize everything into the original albums, which requires changing track count and track number.
Point taken, but I agree with Apple's decision that a CD is a physical item which has a fixed track number and track count.
__________________
AppleScripts for Entourage, iTunes, and more
http://applescript.plaidcow.net/
DeltaTee is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote
Old 10-21-2003, 09:35 PM
#7
 

 
Join Date: Jan 2002
Posts: 2,284

I think my main issue is that whether one agree's with Apple or not on the matter, it shouldn't be Apples decision to make. One of the reasons I use Apple's products is because they leave most of the decision-making up to me, instead of Bill-Gates-ing every aspect of the user experience.
There's no real harm in allowing users to alter track data as they see fit, and there's no real benefit in disallowing it, unless one considers harmony with a philosophical concept of what a CD is and isn't a benefit, that it.
__________________

1G iPod 5GB : lucy 4G iPod Photo 60GB : SoaringRabbit| iMac G4 800Mhz | 17" Aluminum Powerbook| OS 10.3 | LaCie 160 GB External Firewire HD - 70 GB of Music!
eustacescrubb is offline  
Share on TwitterShare on FacebookDigg this Post!Google Bookmark this Post!
Reply With Quote

Topic: About Copy Track Info to CD Tracks and iTunes 4.1

Reply Thread Tools Topic Search

Become a member of the iLounge Forums. Register Now!
To start viewing messages, select the forum that you want to visit from the selection below.
If this is your first visit, be sure to check out the Forum FAQ and Forum Policy.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

twitter facebook RSS twitter facebook RSS




View iLounge History. Read our old Forums Archive (2001-2003)
All times are GMT -4. The time now is 05:05 PM.


Shop for Accessories: Cases, speakers, chargers, etc.