• 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
Re: click at under Mavericks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: click at under Mavericks


  • Subject: Re: click at under Mavericks
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 02 Jan 2014 18:28:32 -0600

On Jan 02, 2014, at 11:04, koenig.yvan <email@hidden> wrote:
I'm surprised by an odd behavior.
...
I was really puzzled when I discovered that the standard instruction click at {x, y} failed with :
--> error "Erreur dans System Events : Il est impossible de rendre {243, 680} en type list." number -1700 from {243, 680} to list
...
Would be fine to know if you get the same behavior on your machines.
______________________________________________________________________

Hey Yvan,

I tried out your script with each of the click methods and had as far as I can see the exact same results.  I only changed the error message to the English variant.

I ran mine from both Script Debugger and from FastScripts (with a hotkey).

--
Best Regards,
Chris

______________________________________________________________________


tell application "System Events" to tell (first process whose frontmost is true)
  tell first window
    keystroke "p" using {command down}
    repeat
      delay 0.1
      if exists sheet 1 then exit repeat
    end repeat
    tell sheet 1
      set {x, y} to get position of first menu button as list
      # click at {x, y} # (1) fails
      --> 10.9.1 : Error Number -1700; System Events got an error: Can’t make {450, 451} into type list.
      click first menu button # works well
      # tell first menu button to perform action "AXPress" # works well
      # tell me to do shell script "/usr/local/bin/cliclick c:" & x & "," & y # works well
      # tell application "ASObjC Runner" to click button once at {x, y} # works well
    end tell
  end tell
  # click at {x, y} # (2) Fails
  --> 10.9.1 : Error Number -1700; System Events got an error: Can’t make {450, 451} into type list.
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: click at under Mavericks
      • From: Christopher Stone <email@hidden>
References: 
 >click at under Mavericks (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Executing script by ip address
  • Next by Date: Re: click at under Mavericks
  • Previous by thread: Re: click at under Mavericks
  • Next by thread: Re: click at under Mavericks
  • Index(es):
    • Date
    • Thread