Is there a way to open a new browser window? #360
Answered
by
kasper
ANewProfile
asked this question in
Q&A
-
|
Like the question says, is there a way for me to open a new browser window? Maybe by simulating a CMD-N press? |
Beta Was this translation helpful? Give feedback.
Answered by
kasper
Apr 10, 2025
Replies: 1 comment
-
|
Hey @ANewProfile! Try something like this? const safari = App.get('Safari');
safari.focus();
Task.run('/usr/bin/osascript', ['-e', 'tell application "System Events" to keystroke "n" using command down']); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ANewProfile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ANewProfile! Try something like this?