Re: Safari + contextual menu.
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