• 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 12:06:00 +1100

On 26 Oct 2014, at 9:34 pm, Shane Stanley <email@hidden> wrote:

I suppose I should add a similar command to ASObjCExtras.framework.

OK, done. You can download v1.0.2 of ASObjCExtras.framework here: <http://www.macosxautomation.com/applescript/apps/ASObjCExtras.html>.

And you use it like this:

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

activate application "Finder"
tell application "System Events" to tell process "Finder"
tell window 1
set buttonPos to position of button 2
end tell
end tell

current application's SMSFord's clickAt:buttonPos clickType:(current application's SMSClickOnce) keysDown:(current application's SMSPressOptionKey)

Yosemite users should move from the deprecated ASObjC Runner to this.

-- 
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

  • Follow-Ups:
    • Re: click using option down button 2 of window 1
      • From: Shane Stanley <email@hidden>
    • Re: click using option down button 2 of window 1
      • From: Robert Poland <email@hidden>
References: 
 >click using option down button 2 of window 1 (From: Robert Poland <email@hidden>)
 >Re: click using option down button 2 of window 1 (From: Yvan KOENIG <email@hidden>)
 >Re: click using option down button 2 of window 1 (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: With Yosemite, can no longer get selected text of Google Chrome page
  • Next by Date: Re: dock position
  • Previous by thread: Re: click using option down button 2 of window 1
  • Next by thread: Re: click using option down button 2 of window 1
  • Index(es):
    • Date
    • Thread