Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-08-2013, 09:22 PM   #1
jackblasto
Prospect
 
Join Date: Feb 2013
Posts: 1
I need help writing a script to tell itunes to get info on movies in library

I'm trying to write a script that goes to itunes and clicks "get info" for every movie I have in the itunes library.

I saw this example somewhere but really don't know how to tweak it or where to run it to make this do what I need:

tell application "iTunes"
set theSelection to selection
repeat with i from 1 to count of theSelection
tell (item i of theSelection)
set artworkCount to count of artwork
repeat artworkCount times
set theArtwork to data of artwork 1
delete artwork 1
set data of artwork artworkCount to theArtwork
end repeat
end tell
end repeat
end tell

I need to make it repeatedly click "get info" on every movie I have because itunes 11 for some reason continues to lose my artwork for the movies but when I click "get info" and "ok" it then brings it back. This happens ALL the time and I need some kind of easy way to go through a hundred some movies every two days to restore the art.

Can anyone PLEASE help me by showing me what type of script I need to run and what application to put it in? Should I just run it from terminal? Thanks!
jackblasto is offline   Reply With Quote
Old 02-10-2013, 09:22 AM   #2
cpragman
All Star
 
Join Date: Jan 2004
Location: Limerick, PA
Posts: 687
That is not normal behavior for iTunes. Your library file may be corrupted. Have you tried repairing your library database file?
cpragman is offline   Reply With Quote
Old 02-10-2013, 11:28 AM   #3
NaOH
Hall of Famer
 
Join Date: Dec 2007
Posts: 3,641
The first place to check when needing a script for iTunes is Doug's AppleScripts site. For this situation, try using the Embed Artwork script or the Re-Embed Artwork script.
NaOH is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:41 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.