Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 16, 2012, 10:33 AM   #1
NightStorm
macrumors 68000
 
Join Date: Jan 2006
Location: Whitehouse, OH
iTunes Applescript Help

Trying to create a script that will login an iTunes account and automatically register it with iTunes Match. The reason behind the script is that my wife and I share a single iTunes library while maintaining separate iTunes accounts. I have iTunes Match, but have to re-enable it every time she logs me out.

I'm assuming the easiest way to accomplish this is through GUI scripting, but I haven't been able to figure out how to call the "Add This Computer" button (see attachment). Any help would be greatly appreciated!
Attached Thumbnails
Click image for larger version

Name:	itunes.png
Views:	44
Size:	271.5 KB
ID:	383913  
__________________
Mac Mini (2.0GHz i7) | 27" Apple TB Display
15" Macbook Pro Retina (2.3GHz i7) | 11" Macbook Air 1.4GHz
AppleTV (x2)| 32GB iPad Mini (Wi-Fi) | 32GB iPhone 5S (x2)
Netgear ReadyNAS Ultra 4+ (4x2TB)

Last edited by NightStorm; Dec 16, 2012 at 10:38 AM.
NightStorm is offline   0 Reply With Quote
Old Dec 16, 2012, 12:23 PM   #2
tkermit
macrumors 68020
 
Join Date: Feb 2004
Not pretty, but this should work:

tell application "System Events"
tell process "iTunes"
click button "Add This Computer" of group 3 of UI element 1 of scroll area of splitter group of window 1
end tell
end tell
__________________
___🏃_
tkermit is offline   0 Reply With Quote
Old Dec 16, 2012, 02:52 PM   #3
NightStorm
Thread Starter
macrumors 68000
 
Join Date: Jan 2006
Location: Whitehouse, OH
Quote:
Originally Posted by tkermit View Post
Not pretty, but this should work:

tell application "System Events"
tell process "iTunes"
click button "Add This Computer" of group 3 of UI element 1 of scroll area of splitter group of window 1
end tell
end tell
Thank you!

Really wish iTunes would allow you to always keep iTunes Match enabled for an account, regardless of what account is logged into the store (kinda like they do with home sharing). Until that happens, this will help!
__________________
Mac Mini (2.0GHz i7) | 27" Apple TB Display
15" Macbook Pro Retina (2.3GHz i7) | 11" Macbook Air 1.4GHz
AppleTV (x2)| 32GB iPad Mini (Wi-Fi) | 32GB iPhone 5S (x2)
Netgear ReadyNAS Ultra 4+ (4x2TB)
NightStorm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Tags
applescript, itunes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Applescript to open itunes at 7am and set radio to send to airplay speaker gordo5150 Mac Programming 1 Apr 23, 2014 12:48 PM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Programming 0 Oct 28, 2013 11:38 PM
AppleScript: How do I save multiple Excel sheets to one pdf using Applescript sbtaylor1 Mac Applications and Mac App Store 0 Oct 28, 2013 11:32 PM
AppleScript - iTunes playlist? iRooney Mac Programming 0 Apr 26, 2013 05:48 PM
Itunes applescript. evanhughes Mac Programming 2 Feb 28, 2013 05:58 PM

Forum Jump

All times are GMT -5. The time now is 06:50 PM.

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

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