• 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: Sun, 26 Oct 2014 21:28:38 -0600

Shane,

Apparently all the new terminology has lost me.

This script does nothing. Just beeps, no errors.

I noticed that Applescript (editor) is at 2.7.

Yes, I put ASObjCExtras in the Frameworks folder.

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)

> On Oct 26, 2014, at 7:06:PM, Shane Stanley <email@hidden> wrote:
>
> 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

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


  • Follow-Ups:
    • Re: click using option down button 2 of window 1
      • From: Shane Stanley <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>)
 >Re: click using option down button 2 of window 1 (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: dock position
  • Next by Date: Re: click using option down button 2 of window 1
  • 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