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:	39
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 4S (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 4S (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

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 05:39 AM.

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

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