Last active
May 7, 2020 02:58
-
-
Save montehurd/c61a368a9c2a3ce693a3 to your computer and use it in GitHub Desktop.
iOS Simulator Automator AppleScript
This file contains hidden or 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
| on run {input, parameters} | |
| tell application "Safari" | |
| activate | |
| end tell | |
| delay 0.25 | |
| tell application "System Events" | |
| key down control | |
| key code 120 | |
| key up control | |
| delay 0.1 | |
| keystroke "Develop" | |
| keystroke return | |
| keystroke "iOS Simulator" | |
| keystroke return | |
| keystroke "index.html" | |
| keystroke return | |
| delay 0.5 | |
| keystroke "c" using {command down, shift down} | |
| end tell | |
| return input | |
| end run |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AutomatorNew ServiceSend receivestono inputRun AppleScriptboxSaveto save workflow file to~/Library/Services/System Preferences > Keyboard > Shortcuts > Servicesthen scroll to bottom of list to assign keyboard shortcut to service just created