Script Error - System Events got an error
Script was running fine with iTunes 12.3 running Mac OS 10.10 but after upgrading to 10.11 get this error during dry run when the "Create New Apple ID" button is about to be selected:
Script Error: System Events got an error: Can’t get scroll area 1 of window 1 of application process "iTunes". Invalid index.
I tried clearing the iTunes cache and that didn't help.

The script halts with the words "Apple logo" highlighted when the error occurs. This is the part of the script:
on verifyPage(expectedElementString, expectedElementLocation, expectedElementCount, verificationTimeout, requiresGroup) tell application "System Events" -- repeat until description of scroll area 1 of window 1 of application process "iTunes" is "Apple logo" delay (masterDelay * processDelay) end repeat
Thanks for the report @RichB2u With the release of El Capitan I am confident Apple decided to break everything within iTunes and even the webpages it loads. I've unfortunately had to put off updating this script thanks to work issues
Thanks for the feedback! I would be happy to contribute to your efforts but the donation process is not obvious. What is that BTC number?
Sorry, that is for Bitcoins. I will edit my readme to include a regular money donation too
Brandon Usher [email protected] Database Systems Technician VCPUSD Learning and Information Services (760) 751-2902 ext. 292
On Tue, Oct 13, 2015 at 3:36 PM, RichB2u [email protected] wrote:
Thanks for the feedback! I would be happy to contribute to your efforts but the donation process is not obvious. What is that BTC number?
— Reply to this email directly or view it on GitHub https://github.com/brandonusher/Apple-ID-AppleScript/issues/30#issuecomment-147844771 .
I have updated the script with #29 and it seems it has fixed it. Commit c28b68b
Thank you @RichB2u, I appreciate the donation very much
Hi Sir sorry i updated my macbook pro to 10.11.1 and i get this error again any fixes? Script Error: System Events got an error: Can’t get scroll area 1 of window 1 of application process "iTunes". Invalid index.
Thanks a lot for sharing this script! I have the same error message: Script Error: System Events got an error: Can't get scroll area 1 of window 1 of application process "iTunes". Invalid index. on both my macbook pro running OS 10.10.5 iTunes 12.3.1.23 and iMac running OS 10.11.1 iTunes 12.3.1.23 I tried iTunes>Preferences>Advanced>Reset cache, but didn't work. Greatly appreciated if you can help!!
Well crap. I'll search into this if I get some time. I'm going to be at a conference the rest of this week so we shall see how much time I get
Hi. im download update for el capitan but this script have problem yet.
Thanks a lot for sharing this script! I have the same error message: