Created
May 6, 2016 09:59
-
-
Save yuya/324fc71ac45c88f6bd7a43e387daeb7d to your computer and use it in GitHub Desktop.
Safari をシークレットウィンドウで開くワンライナー (JXA)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript -l JavaScript -e 'var s = Application("Safari"); var e = Application("System Events"); s.activate(); delay(0.1); e.keystroke("w", {"using": ["command down", "shift down"]}); delay(0.1); e.keystroke("n", {"using": ["command down", "shift down"]});' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment