• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Another darn problem that's beyond me.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another darn problem that's beyond me.


  • Subject: Another darn problem that's beyond me.
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 28 Sep 2015 12:29:47 +1000

G’day again scripters

First of all, thanks Shane; all read & writes changed to ‘current application'. I fixed my problem by ensuring I read the file as a list, and then checking for a count of zero.

This next hassle has me beat. A script (which forms part of my Xcode project) was working a week ago, but has now suddenly stopped, with an error of…

System Events got an error: Can’t get UI element 1 of UI element 2 of UI element 1 of scroll area 1 of UI element 2 of UI element 7 of window 1 of process "Interarchy". Invalid index.

I’ve tried several changes, but the script won’t get past the indicated line. I’ve double checked with UI Browser, and the details still are the same.

Is there any other way of getting the darn pop up button to work?

Regards

Santa

tell application "Interarchy"
activate
do shell script ("sleep 0.4")
tell application "System Events" to tell process "Interarchy"
do shell script ("sleep 0.4")
click menu item "Show All Bookmarks" of menu 1 of menu bar item "Bookmarks" of menu bar 1
do shell script ("sleep 0.4")
repeat with eachRow from 1 to (count of rows of outline 1 of scroll area 1 of UI element 1 of UI element 1 of UI element 2 of UI element 7 of window "Bookmarks")
do shell script ("sleep 0.4")
select row eachRow of outline 1 of scroll area 1 of UI element 1 of UI element 1 of UI element 2 of UI element 7 of window "Bookmarks"
do shell script ("sleep 0.2")
set windowName to value of static text 1 of group 1 of row eachRow of outline 1 of scroll area 1 of UI element 1 of UI element 1 of UI element 2 of UI element 7 of window "Bookmarks"
keystroke "j" using command down
set x to 0
do shell script ("sleep 0.6")
# set focused of pop up button 1 of UI element 1 of UI element 2 of UI element 1 of scroll area 1 of UI element 2 of UI element 7 of window windowName to true
# This was working, but suddenly stopped.
click pop up button 1 of UI element 1 of UI element 2 of UI element 1 of scroll area 1 of UI element 2 of UI element 7 of window 1 #windowName
set x to 0
repeat until exists menu 1 of pop up button 1 of UI element 1 of UI element 2 of UI element 1 of scroll area 1 of UI element 2 of UI element 7 of window windowName
do shell script ("sleep 0.1")
set x to x + 1
if x > 20 then exit repeat
end repeat
if my saveLocalftpArchiveOnserver then
click menu item "Both Ways" of menu 1 of pop up button 1 of UI element 1 of UI element 2 of UI element 1 of scroll area 1 of UI element 2 of UI element 7 of window windowName
else
click menu item "Download" of menu 1 of pop up button 1 of UI element 1 of UI element 2 of UI element 1 of scroll area 1 of UI element 2 of UI element 7 of window windowName
end if
try
tell window windowName to activate
end try
keystroke return
set x to 0
repeat until exists window "Bookmarks"
do shell script ("sleep 0.1")
set x to x + 1
if x > 600 then exit repeat
end repeat
end repeat
click button 3 of window "Bookmarks"
delay 0.2
try
click button 3 of window 1
end try
end tell
end tell



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Another darn problem that's beyond me.
      • From: Yvan KOENIG <email@hidden>
    • Re: Another darn problem that's beyond me.
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Where is Trash Folder(?)?
  • Next by Date: Re: Another darn problem that's beyond me.
  • Previous by thread: Rép : Where is Trash Folder(?)?
  • Next by thread: Re: Another darn problem that's beyond me.
  • Index(es):
    • Date
    • Thread