Jump to content

Creating Workflow to Open a New Window in Safari


Recommended Posts

It is quite basic to open an app with the preset workflow setting. However, is it possible to create a hotkey workflow so that a new window of Safari can be popped up, instead of just opening Safari app (which leads to opening previously opened Safari window)? 

If anyone knows how to solve this issue, I would appreciate your help very much. 

Edited by jshin593
Link to comment

It is quite basic to open an app with the preset workflow setting. However, is it possible to create a hotkey workflow so that a new window of Safari can be popped up, instead of just opening Safari app (which leads to opening previously opened Safari window)? 

If anyone knows how to solve this issue, I would appreciate your help very much. 

 

To make a new window in Safari, you could do the following...

 

Make a new workflow, add a hotkey, add a run script, set the language to osascript and enter the following code.

tell application "Safari"
    activate
    make new document
end tell
Link to comment

 

To make a new window in Safari, you could do the following...

 

Make a new workflow, add a hotkey, add a run script, set the language to osascript and enter the following code.

tell application "Safari"
    activate
    make new document
end tell

 

 

Whoa, this works great!  Thanks a lot!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...