Re: iTunes 4 & Artwork scripting... Ahhh?
Re: iTunes 4 & Artwork scripting... Ahhh?
- Subject: Re: iTunes 4 & Artwork scripting... Ahhh?
- From: Chuck Toporek <email@hidden>
- Date: Wed, 30 Apr 2003 08:18:17 -0400
It's actually the MP3::Info module, which can be downloaded from:
http://search.cpan.org/author/CNANDOR/MP3-Info-1.02/Info.pm
The way that first line is set up:
perl -MMP3::Info -e '
The "perl -M" command is used to load the module, "MP3::Info"; there is
no space between the -M option and the name of the module you're
loading.
The -e option processes the rest of the script (the info between the
apostrophe at the end of that line and the one at the beginning of the
last line) at the command line, running that against "song.mp3", which
is the name of the MP3 file you're wanting to process. For example, if
the MP3 file I want the coverart for is named "Hurt.mp3", use that
instead of "song.mp3".
Chuck
On Tuesday, April 29, 2003, at 07:30 PM, David A. Cox wrote:
That perl script does not seem to work for me. I don't have the MMP3
mod
installed (if that is what it is). Fink also does not seem to know abou
it.
Am I totally missing something basic here, or do you have something
extra
installed.
Along this same subject, does anyone know what use the "data of the
artwork" is in the dictionary? I can set a variable to this value, but
it
seems to be a useless huge pile of text trying to pretend to be a pict
file.
DAC
On Tue, 29 Apr 2003, Chuck Toporek wrote:
But you can get at it with Perl...
iTunes 4 stores album cover art in the MP3 tag:
perl -MMP3::Info -e '
$file = shift;
$x = get_mp3tag($file, 2, 2);
($i = $x->{PIC}) =~ s/^(....).//;
($e = $1) =~ s/\W//g;
$file =~ s/\.mp3/.$e/;
open $f, ">", $file;
print $f $i;
' song.mp3
This can extract it!
Chuck
On Monday, April 28, 2003, at 07:57 PM, Graham Carter wrote:
Nope... I can't get anything either. Artwork isn't listed as a
property of track either. Is it not implemented or is the dictionary
incomplete?
-Graham
On Monday, April 28, 2003, at 04:27 PM, Jakob Peterhdnsel wrote:
Hi All.
Just been playing with iTunes 4 and artwork on tracks.
Just can't seem to get some feedback from iTunes when asking about
size
and format of artwork for current track.
Can you?
Jakob Peterhdnsel
Tiger, Jaguar, Panter... no, just 'The Danish Cat...' he...
Email: email@hidden
AIM: Marook
Phone: +45 40163806
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
____________________________
Graham Carter
Systems Analyst I
Long Beach Memorial Heart Institute
Phone: (562) 933-3335
Pager: 3-17773
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.