Guest User

Untitled

a guest
Jul 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. app("System Events").processes[its.frontmost.eq(true)].windows[1].pop_up_buttons["Default setting:"]
  2.  
  3. app("System Events").processes["Safari"].windows[1].groups[1].groups[1].pop_up_buttons["Default setting:"]
  4.  
  5. app("System Events").processes["Safari"].windows[1].entire_contents.get.select { |ref| ref.role.get == "AXPopUpButton" && ref.title.get == "Default web browser:" }
  6.  
  7. app("System Events").processes["Safari"].windows[1].entire_contents[its.role.eq("AXPopUpButton")]
  8. NoMethodError: undefined method `by_filter' for #<AEMReference::Property:0x00000100b09978>
  9. from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rb-appscript-0.6.0/lib/appscript.rb:709:in `[]'
Add Comment
Please, Sign In to add comment