Re: click using option down button 2 of window 1
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...
|
_______________________________________________
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