• 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: Safari + contextual menu.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari + contextual menu.


  • Subject: Re: Safari + contextual menu.
  • From: Stan Cleveland <email@hidden>
  • Date: Tue, 12 Sep 2006 14:43:55 -0700
  • Thread-topic: Safari + contextual menu.

On 9/12/06 5:05 AM, Yvan KOENIG wrote:

> How must I code the activation of the contextual menu item "New Tab" ?
>
> In 10.2 or 10.3 it was easy because it was not in a contextual menu
> but in the "File" menu.


It's still in the "File" menu, at least OMM (Safari 2.0.4 and OS 10.4.7).
The following works fine here:

    tell application "Safari" to activate
    tell application "System Events"
        tell process "Safari"
            keystroke "t" using {command down}
        end tell
    end tell

Or even better:

    tell application "Safari" to activate
    tell application "System Events"
        tell process "Safari"
            click menu item "New Tab" of menu "File" of menu bar 1
        end tell
    end tell

Stan C.
--
This message made with 100% recycled pixels.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Safari + contextual menu. (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Safari + contextual menu.
  • Next by Date: Re: Safari + contextual menu.
  • Previous by thread: Re: Safari + contextual menu.
  • Next by thread: Re: Safari + contextual menu.
  • Index(es):
    • Date
    • Thread