Any choice besides music brainz?

Discuss Max, an open source CD audio extractor and audio converter.
Post Reply
rydenfan
Posts: 44
Joined: Thu Feb 14, 2008 12:42 am

Any choice besides music brainz?

Post by rydenfan » Sun Feb 24, 2008 8:40 pm

Is there any other way to aquire a disc's info besides music brainz? I do not understand why it is not bring up some album's info and track listing. iTunes will and MAX will not. Does anybody else experience this? Is there a solution I do not know about? Thanks for the help.

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: Any choice besides music brainz?

Post by sbooth » Sun Feb 24, 2008 9:48 pm


rydenfan
Posts: 44
Joined: Thu Feb 14, 2008 12:42 am

Re: Any choice besides music brainz?

Post by rydenfan » Sun Feb 24, 2008 10:37 pm

Great! Thanks so much, that works perfect. That will save me a lot of time. I should have asked sooner...

olizilla
Posts: 1
Joined: Fri Feb 29, 2008 11:54 am

Re: Any choice besides music brainz?

Post by olizilla » Fri Feb 29, 2008 12:19 pm

That is a handy script, but I thought I should let folks know that it didn't work out of the box for me, using:
OS X 10.4.11
MAX 0.7.1
ITunes 7.6.1

I found that I had to replace both references to a "date" field in MAX with the "year" field that I see on my version of the UI. Perhaps the name changed since 0.7.1, but I downloaded that version as it is billed as the current stable version. Do folks generally run off the bleeding edge round here?
I am new to max, after getting tired of iTunes ripping shortcomings (randomly not adding ID3 tags anyone??), so thanks very much for the great software, and the script too.

here is my minor edited version that worked for me:

Code: Select all

tell application "iTunes"
	set foundCD to true
	try
		set myCD to some source whose kind is audio CD
	on error errorMessage number errorNumber
		-- error 1728 means the AudioCD was not found, so wait a little
		if errorNumber is -1728 then
			set foundCD to false
		else
			display dialog errorMessage
		end if
	end try
	if foundCD then
		set CDname to myCD's name
		set myPlaylist to playlist 1 of myCD
		set theTracks to tracks of myPlaylist
		tell application "Max"
			set mc to (count every track of document 1)
			set maxdisk to document 1
		end tell
		set ic to (count theTracks)
		if mc = ic then
			repeat with i from 1 to (count theTracks)
				set atrack to item i of theTracks
				set ar to artist of atrack
				set al to album of atrack
				set tn to track number of atrack
				set tc to track count of atrack
				set ge to genre of atrack
				set co to composer of atrack
				set ye to year of atrack
				set na to name of atrack
				set comp to compilation of atrack
				set com to comment of atrack
				set dn to disc number of atrack
				set dc to disc count of atrack
				tell application "Max"
					set maxtrack to track i of document 1
					if not (rip in progress of maxtrack) and not (encode in progress of maxtrack) then
						set title of maxtrack to na
						set artist of maxtrack to ar
						--set date of maxtrack to ye as string
						set year of maxtrack to ye as string
						set genre of maxtrack to ge
						set double integer of maxtrack to co
						--set number of maxtrack to tn
					end if
				end tell
				if i = 1 then
					tell application "Max"
						set title of maxdisk to al
						set artist of maxdisk to ar
						set compilation of maxdisk to comp
						set genre of maxdisk to ge
						--set date of maxdisk to ye as string
						set year of maxdisk to ye as string
						set double integer of maxdisk to com
						-- set track count of maxdisk to tc
						-- max doesn't allow setting total tracks
						set double integer of maxdisk to co
						if dn > 1 then
							set disc number of maxdisk to dn
							sset total discs of maxdisk to dc
						end if
					end tell
				end if
			end repeat
		else
			display dialog "The iTunes CD track count and the Max CD track count do not match."
		end if
	else
		display dialog "Couldn't get a CD from iTunes. Please retry."
		
	end if
end tell
UPDATE: I just discovered that I had to change the line:
set total discs to dc
to:
set total discs of maxdisk to dc
to get it to work on cd sets with more than one disc.
I have updated the script above accordingly

speters
Posts: 5
Joined: Fri Mar 21, 2008 11:42 pm

Re: Any choice besides music brainz?

Post by speters » Fri Mar 21, 2008 11:56 pm

I am using Max 07.1 and OSX 10.5.2. I am having an issue with some cd's that I have burned, I am not getting the cd or track names even thought they show in itunes. I tried the scipts that are in the this thread and neither works. When I run the first script, form this thread, I get the AppleScript Error: "Max got an error: Can’t set date of track 1 of document "6tbATdy_7QmRpCopU0j0c.I4TNM-.cdinfo" to "1997"." So I then tried the second script, but when I go to save that script I get this message: Syntax Error "Expected end of line, etc. but found property." I also tried these scipts on another computer that has 10.4.11, and I still got the same errors. This is my first time using Script Editor so I can't really figure this out on my own. Any ideas?

Thanks,
Steve

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: Any choice besides music brainz?

Post by sbooth » Sat Mar 22, 2008 5:09 am

Grab the latest unstable version of Max and use the script from http://sbooth.org/forums/viewtopic.php?f=4&t=1930 and everything should work.

axe84
Posts: 3
Joined: Wed Apr 09, 2008 12:02 am

Re: Any choice besides music brainz?

Post by axe84 » Wed Apr 09, 2008 12:10 am

I'm running into a problem with the script. It fails on the following line: set mc to (count every <<class trck>> of document1)

I'm using:
Max 0.80
OSX 10.5.2
iTunes 7.6.2

Thanks.

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: Any choice besides music brainz?

Post by sbooth » Wed Apr 09, 2008 12:56 am

Which version of the script are you using?

axe84
Posts: 3
Joined: Wed Apr 09, 2008 12:02 am

Re: Any choice besides music brainz?

Post by axe84 » Wed Apr 09, 2008 1:28 am

v.2

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: Any choice besides music brainz?

Post by sbooth » Wed Apr 09, 2008 4:43 am

Have you recently upgraded to 0.8?

axe84
Posts: 3
Joined: Wed Apr 09, 2008 12:02 am

Re: Any choice besides music brainz?

Post by axe84 » Sat Apr 12, 2008 5:00 pm

I realized what the problem is. I have a mac pro with two superdrives. When there are discs in both drives, the script gets confused. When there is only one disc, every works well.

Thanks.

User avatar
Fuga
Posts: 391
Joined: Mon Jun 05, 2006 8:30 pm
Location: Texas

Re: Any choice besides music brainz?

Post by Fuga » Sat Apr 12, 2008 5:22 pm

axe84 wrote:I realized what the problem is. I have a mac pro with two superdrives.
We all should have such problems!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests