Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
hi everyone!
I've downloaded the script and Xcode. But when i try to run it in terminal I got the followings errors:

sudo gem install json

Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.7.3 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.3/ext/json/ext/parser/gem_make.out





sudo gem install rb-appscript

Building native extensions. This could take a while...
ERROR: Error installing rb-appscript:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/gem_make.out


I'm not really into terminal, could you please help me?
what is the problem here?
thanks!!

Same here, anyone have an answer? THanks.
 
hi everyone!
I've downloaded the script and Xcode. But when i try to run it in terminal I got the followings errors:

sudo gem install json

Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.7.3 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.3/ext/json/ext/parser/gem_make.out





sudo gem install rb-appscript

Building native extensions. This could take a while...
ERROR: Error installing rb-appscript:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/gem_make.out


I'm not really into terminal, could you please help me?
what is the problem here?
thanks!!

Start Xcode ... Preferences ... Downloads ... Install command line tools

That worked for me
 
Hi folks,

This script was running fine for me the last couple of months. I believe since I ran software updates on my mac, it is not running anymore...

Can someone help me with this error, please?

Code:
xxxxxxx-xxxxxxx-MacBook-Pro:~ Ben$ ruby meta.rb 
/Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/lib/appscript.rb:676:in `method_missing': Unknown property, element or command: 'selection' (RuntimeError)
	from meta.rb:54

The lines of the script where the error occurs are the following:

Code:
52: app = Appscript.app.by_name("iTunes")
53: 
54: iTunes_tracks = app.selection.get

Help is highly appreciated!

Thx & regards,
Ben
 
Last edited:
Hey,

I found a nice little workaround.

1. Download the zip file (attached)
2. Copy the "tunes.rb" into your Ruby Folder, which is (in my case): "/Library/Ruby/Site/1.8/"
3. use my meta2.rb script the same way you used the other one.

Have fun!
 

Attachments

  • Archiv.zip
    5.4 KB · Views: 394
Hey,

I found a nice little workaround.

1. Download the zip file (attached)
2. Copy the "tunes.rb" into your Ruby Folder, which is (in my case): "/Library/Ruby/Site/1.8/"
3. use my meta2.rb script the same way you used the other one.

Have fun!

What does "tunes.rb" do? I can't tell just by looking at the source...
 
I converted his script to Python with no dependencies so you don't need to install anything else. If anyone wants a copy let me know.

It only does English though as I do not have a computer anymore and can't add functionality for other languages. It also updates as much tag information as provided by Apple (not just artist, album, track, etc...).

It also creates playlists of tracks that were matched and were not matched...
 
I converted his script to Python with no dependencies so you don't need to install anything else. If anyone wants a copy let me know.

It only does English though as I do not have a computer anymore and can't add functionality for other languages. It also updates as much tag information as provided by Apple (not just artist, album, track, etc...).

It also creates playlists of tracks that were matched and were not matched...

You can upload it? I will be grateful!
 
I converted his script to Python with no dependencies so you don't need to install anything else. If anyone wants a copy let me know.

It only does English though as I do not have a computer anymore and can't add functionality for other languages. It also updates as much tag information as provided by Apple (not just artist, album, track, etc...).

It also creates playlists of tracks that were matched and were not matched...


Please upload it and thanks for your input :)
 
Last edited:
Attached is the Python version I wrote. Hopefully someone finds it useful. Any issues let me know.
 

Attachments

  • update_tags.py.txt
    21.3 KB · Views: 641
Attached is the Python version I wrote. Hopefully someone finds it useful. Any issues let me know.

Thank you for the script.
Since I use iTunes in French, to make it work I had to change the string used to identify the files to update:
if kind of t is "Fichier Audio AAC mis en correspondance" then ...

Thx
 
Thanks for the script !

However, I have an issue. The script doesn't find any tracks. I changed the string to match french iTunes' songs.

Code:
[ 2012-08-26 @ 13:46:46 CEST ]  getting a list of selected iTunes matched tracks
[ 2012-08-26 @ 13:46:46 CEST ]  no tracks selected : exiting

I'm using Mac OS X 10.8.1 with iTunes 10.6.3, is it a problem ?

Regards,
redvivi
 
Thanks for the script !

However, I have an issue. The script doesn't find any tracks. I changed the string to match french iTunes' songs.

Code:
[ 2012-08-26 @ 13:46:46 CEST ]  getting a list of selected iTunes matched tracks
[ 2012-08-26 @ 13:46:46 CEST ]  no tracks selected : exiting

I'm using Mac OS X 10.8.1 with iTunes 10.6.3, is it a problem ?

Regards,
redvivi

You still have to select what tracks you want to update in iTunes.
 
You still have to select what tracks you want to update in iTunes.

I open iTunes, select all tracks (CMD+A), then I open Terminal and execute
Code:
python update_tags.py

I have the same issue:

Code:
[ 2012-08-28 @ 19:05:58 CEST ]  list of selected iTunes matched tracks
[ 2012-08-28 @ 19:05:58 CEST ]  no tracks selected : exiting

Am i doing something wrong ?
 
Sorry I made a mistake, works like a charm :)

Just a question: What do you mean by "No iTunes Information Found" ?

If we matched a song with iTunes Match, we are able to get the track/artist name and so on, are we ?
 
Sorry I made a mistake, works like a charm :)

Just a question: What do you mean by "No iTunes Information Found" ?

If we matched a song with iTunes Match, we are able to get the track/artist name and so on, are we ?

Ask Apple. For some reason there are iTunes Matched songs that Apple doesn't have information for. I do not know why nor can I find out why. It's been bugging the hell out of me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.