Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Feb 28, 2013, 12:02 PM   #1
macrumors newbie
Join Date: Feb 2013
Itunes applescript.

Dear all

Newbie to this forum.
What I need is an apple script to open get info for al my movies in my iTunes and then close.

My library is on an external drive and my wife tried to access itunes without the drive being on. Ultimately once I had rectified this problem I noticed that the artwork for the majority of my movies was not visible. When I get info the artwork is there and if I close the artwork appears and stays.

I tried selecting all and then selecting get info but that did not work.

The only way it seems to work is if I individually get info on each movie and then close.

Thank you in advance for any help you may offer.

evanhughes is offline   0 Reply With Quote
Old Feb 28, 2013, 04:51 PM   #2
macrumors 6502a
Join Date: Apr 2011
Open iTunes, and navigate to your movies.
Select List view, not 'Unwatched' or 'Genres'.
That'll give you a complete list of your movies.
Select the movie at the top of the list and Get Info.
The info dialog that shows up when invoked from list view has 'Next' and 'Previous' buttons on the bottom left that'll let you navigate between movies.
Partron22 is offline   0 Reply With Quote
Old Feb 28, 2013, 05:58 PM   #3
macrumors 6502a
Join Date: Mar 2012
Location: Belgium
Try this :

tell application "iTunes"
	reveal (some playlist whose special kind is Movies)
	set theMoviesPlayList to (get some playlist whose special kind is Movies)
	set theMovies to (tracks of theMoviesPlayList)
end tell
repeat with aMovie in theMovies
	tell application "iTunes" to reveal aMovie
	tell application "System Events"
		tell process "iTunes"
			key code 34 using command down
			click button 1 of window 1
		end tell
	end tell
end repeat
You need to enable Enable access for assistive devices in Universal Access of System Preferences for this script to work.
To avoid doing this in the future you can create an Applescript app to start iTunes and put it into the Dock. Give it the iTunes icon and remove the current one from the Dock.

tell application "System Events"
	if exists (disk "NameOfYourExternalDiskHere") then
		launch application "iTunes"
		display dialog "Disk \"NameOfYourExternalDiskHere\" is not connected. Itunes failed to launch" buttons {"OK"} default button 1
	end if
end tell
Space Corps Directive 34124

Last edited by kryten2; Feb 28, 2013 at 06:17 PM.
kryten2 is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:30 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC