• 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 using option down button 2 of window 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: click using option down button 2 of window 1


  • Subject: Re: click using option down button 2 of window 1
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 27 Oct 2014 21:37:10 +1100

On 27 Oct 2014, at 8:39 pm, Yvan KOENIG <email@hidden> wrote:

Résultat :
error "unable to set argument 3 - the AppleScript value <NSAppleEventDescriptor: 'obj '{ 'form':'usrp', 'want':'prop', 'seld':'utxt'(\"SMSClickOnce\"), 'from':null() }> could not be coerced to type q." number -10000

Thanks, Yvan. If you use the line:

current application's SMSFord's clickAt:buttonPos clickType:1 keysDown:524288

it should work from Script Editor. What you're seeing is the bug I mentioned: Script Editor is not recognizing the terms defined in the framework. If you save it as an app, the terminology is correctly recognized -- but then the command doesn't work.

You can see it more simply:

use AppleScript version "2.4"
use scripting additions
use framework "Foundation"
use framework "ASObjCExtras"

set x to current application's SMSClickOnce

In fact I tried it like this in Script Editor, for kicks:

do shell script "osascript -e " & quoted form of "use AppleScript version \"2.4\"
use scripting additions
use framework \"Foundation\"
use framework \"ASObjCExtras\"

set x to current application's SMSClickOnce
display dialog (x as text)
"
And it worked.

So it is not just the French who are copping it with Script Editor...

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >Rép: click using option down button 2 of window 1 (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Rép: click using option down button 2 of window 1
  • Next by Date: Re: click using option down button 2 of window 1
  • Previous by thread: Rép: click using option down button 2 of window 1
  • Next by thread: Rép: click using option down button 2 of window 1
  • Index(es):
    • Date
    • Thread