Apple-ID-AppleScript icon indicating copy to clipboard operation
Apple-ID-AppleScript copied to clipboard

Script Error - System Events got an error

Open RichB2u opened this issue 10 years ago • 11 comments

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.

script error system events

RichB2u avatar Oct 13 '15 20:10 RichB2u

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

RichB2u avatar Oct 13 '15 20:10 RichB2u

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

ghost avatar Oct 13 '15 20:10 ghost

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?

RichB2u avatar Oct 13 '15 20:10 RichB2u

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 .

ghost avatar Oct 13 '15 20:10 ghost

I have updated the script with #29 and it seems it has fixed it. Commit c28b68b

ghost avatar Oct 19 '15 17:10 ghost

Thank you @RichB2u, I appreciate the donation very much

ghost avatar Oct 19 '15 17:10 ghost

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.

iM4hdi avatar Nov 11 '15 12:11 iM4hdi

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!!

joef33 avatar Nov 28 '15 08:11 joef33

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

ghost avatar Nov 30 '15 20:11 ghost

Hi. im download update for el capitan but this script have problem yet.

khazaee avatar Dec 08 '15 10:12 khazaee

Thanks a lot for sharing this script! I have the same error message:

khazaee avatar Dec 08 '15 14:12 khazaee