• 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: Robert Poland <email@hidden>
  • Date: Mon, 27 Oct 2014 08:02:47 -0600

> On Oct 27, 2014, at 7:22:AM, Yvan KOENIG <email@hidden> wrote:
>
>
>
>> 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

Didn’t make any difference, May be machine related.

Since Shane has pulled this routine, guess I’ll go back to previous scripts.

Robert Poland
Fort Collins CO


 _______________________________________________
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: With Yosemite, can no longer get selected text of Google Chrome page
  • Previous by thread: Rép: click using option down button 2 of window 1
  • Next by thread: Yosemite appears to have broken shell script
  • Index(es):
    • Date
    • Thread