Re: iTunes 4 & Artwork scripting
Re: iTunes 4 & Artwork scripting
- Subject: Re: iTunes 4 & Artwork scripting
- From: Jakob Peterhänsel <email@hidden>
- Date: Thu, 1 May 2003 18:49:35 +0200
Hi Doug
Nice going!
Sort of a work-around in my mind, but it works...
What happens if the track has more than one image?
(Could just try of course..)
BTW: Here's a tip: If you're thinking about re-encoding your CD's, then
'just do it'!
iTunes will ask if you would like to replace the current track. If you
select 'replace', then ONLY the AUDIO data is replaced! Play Count,
Last Played, mp3 tags and artwork is all preserved!!! Very nice!
On torsdag, maj 1, 2003, at 14:29 Europe/Copenhagen, Doug Adams wrote:
>
> A script that copied one track's artwork to all others in the
>
> playlist would be cool. All help appreciated.
>
>
Hate to answer my own query, but did it:
>
--
>
tell application "iTunes"
>
set myP to view of front window
>
if selection exists then
>
set c to (item 1 of index of selection)
>
tell myP
>
if artworks of track c exists then
>
set theArt to front artwork of track c
>
get format of theArt
>
set pic to (data of theArt) as picture
>
set fmat to (format of theArt)
>
repeat with i from 1 to count of tracks
>
tell track i
>
set data of front artwork to pic
>
end tell
>
end repeat
>
end if
>
end tell
>
end if -- selection
>
end tell
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.