Rép: click using option down button 2 of window 1
Rép: click using option down button 2 of window 1
- Subject: Rép: click using option down button 2 of window 1
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 27 Oct 2014 14:22:05 +0100
> Le 27/10/2014 à 14:08, Robert Poland <email@hidden> a écrit :
>
> AMMENDED:
>> On Oct 27, 2014, at 12:59:AM, Shane Stanley <email@hidden> wrote:
>>
>> On 27 Oct 2014, at 12:06 pm, Shane Stanley <email@hidden> wrote:
>>>
>>> You can download v1.0.2 of ASObjCExtras.framework here: <http://www.macosxautomation.com/applescript/apps/ASObjCExtras.html>.
>>
>> Blink and you missed it.
>>
>> I've decided to pull the clicking command. I suspect Robert's problem is a Script Editor bug, although it's impossible to be sure unless he posts the log. <snip>
>
> Apparently you didn’t read my followup email.
>
> Followup email>>
> Not sure if this is part of the script; current application's SMSFord's clickAt:buttonPos clickType:(current application's SMSClickOnce) keysDown:(current application's SMSPressOptionKey)
>
> Normally I use Smile. With Applescript editor I tried without it (line above) and display dialog y as string. Works, except it addresses the top left of the green button rather than the center.
>>>
>
> Events log>>
> tell application "Finder"
> activate
> end tell
> tell application "System Events"
> get position of button 2 of window 1 of process "Finder"
> --> {1618, 201}
> end tell
> tell application "Script Editor"
> display dialog "201"
> --> {button returned:"OK"}
> end tell
> Result:
> {button returned:"OK”}
>>>
>
>> Shane Stanley <email@hidden>
>> <www.macosxautomation.com/applescript/apps/>
>
> Robert Poland
> Fort Collins CO
>
Hello Robert
May you try to insert a delay between the activation of Finder and the tell application "System Events" instruction ?
tell application "Finder"
activate
end tell
delay .2
tell application "System Events" …
With Yosemite, I was forced to insert such a delay in all my scripts triggering GUIScripting.
Yvan KOENIG (VALLAURIS, France) lundi 27 octobre 2014 14:21:06
_______________________________________________
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