MacOS – How to add application built-in services (menu bar commands) in Automator

automatormacos

I am wondering whether it is possible to use built-in services (menu bar options) of specific applications in Automator.

For instance, I want to create a service to launch Google Chrome and open a new window (the effect of Command+N when Chrome is active).

Is it possible?

Best Answer

You can always use AppleScript for that. In Automator, drag Run AppleScript to the right pane, and for the script, enter the following:

tell application "Google Chrome"
    make new window
    activate
end tell

The activate is optional, but it'll bring Chrome to the front.