Itunes copy and paste get info

I have a lot of info written in the Comments field in my itunes songs and was wondering if I can get automator to copy that field to the Lyrics field. Each song has different information written in the comment field and I have thousands of songs so you can see how this would be tedious to do manually.
Anyone please help who knows

Macbook Pro 17, Mac OS X (10.5.5)

Posted on Sep 25, 2008 2:00 AM

Reply
13 replies

Sep 25, 2008 3:41 AM in response to RodneyW

Even easier if you just use AppleScript. You can then place the script in the iTunes script folder and then use it from within iTunes from the menu. If no one posts an AppleScript solution by tomorrow afternoon, then I'll likely submit something around then, if I remember.

I would think it would be desirable to use the selection in iTunes (making sure songs are selected), and be able to handle more than one song. Just some ideas there.

Sep 25, 2008 11:48 AM in response to AndrewmH

I am not familiar with apple script (I know what it is but not how to use it).
As for recording in Automator, when I fooled around with it it would only record the specific info with that song to copy into the lyrics field. Like if a song had "I love you" written in the comment field, automator would record that, and not just the action of copying. So if I used automator I would have "I love you" pasted into every song, not what each individual song holds.
There has to be a way to select all the songs I have with comments written and get automator or apple script to copy each songs Comments Info into the Lyrics field. If anyone can help me it would be much appreciated 🙂

Sep 25, 2008 3:35 PM in response to AndrewmH

Hi,
1. Open "Applescript Utility" (in your Application->AppleScript folder), check "Enable GUI Scripting", you will need your login password. Now quit "Applescript Utility".
2. Open "Script Editor". Copy and Paste the following into the script editor,

tell application "iTunes"
set N_ames to the name of selection
set x to the number of items in N_ames
repeat with i from 1 to x
set C_omment to the comment of track (item i of N_ames) of library playlist 1
set L_yrics to the lyrics of track (item i of N_ames) of library playlist 1
set lyrics of track (item i of N_ames) of library playlist 1 to {C_omment & return & L_yrics}
end repeat
end tell

3. Save the file in your Home/Library/iTunes/Scripts folder and give it any name you like. You may need to create the folder "Scripts" in Home/Library/iTunes folder.
4. Open iTunes, you will see a symbol in iTunes menu item, this is the symbol for script. Under the symbol you will find your script.
5. Select any number of songs anywhere in iTunes, click on the script symbol and choose the script you saved before.

The script will copy the comment of a song and add it on top of the lyrics of that song (if you don't have any lyrics, it will only add the comment).

Message was edited by: Ahsan

Sep 25, 2008 4:48 PM in response to AndrewmH

I think it is the problem with multiple songs with the same title, sorry about that. I didn't specify the songs correctly enough in the script. Give me some time to figure this out. My experience with script is very limited, so it may take a while.
If somebody else like to step in and help us out, that would be great.

Message was edited by: Ahsan

Sep 25, 2008 5:53 PM in response to AndrewmH

Hi,
Here is the corrected script:

tell application "iTunes"
if selection is not {} then
set sel to a reference to selection
repeat with aTrack in sel
set C_omment to the comment of aTrack
set L_yrics to the lyrics of aTrack
set lyrics of aTrack to {C_omment & return & L_yrics}
end repeat
end if
end tell

Hope it will work out.

Thanks to [Doug's Applescript for iTunes|http://dougscripts.com/itunes/scrxcont.php], this is a good source for writing script with iTunes.

Message was edited by: Ahsan

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Itunes copy and paste get info

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.