Or better, use
tell application "Safari" to activate
tell application "System Events" to keystroke "T" using {command
down}
This will make sure that if there is no Safari window open, one will
be made. The first version I posted only worked if a Safari window
already existed.
On Aug 18, 7:15 pm, Sesquipedalian <[EMAIL PROTECTED]> wrote:
> Make a new custom trigger with the text
>
> tell window 1 of application "Safari" to make new tab
>
> in the first pane and "Run as Applescript" in the second pane.
>
> On Aug 18, 4:03 pm, msson <[EMAIL PROTECTED]> wrote:
>
> > Hi.
>
> > I'm trying to make a trigger that opens a new tab in Safari but I
> > can't get it to work. Any suggestions?
>
> > /Magnus