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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Automator
New Service
Send receives
tono input
Run AppleScript
boxSave
to save workflow file to~/Library/Services/
System Preferences > Keyboard > Shortcuts > Services
then scroll to bottom of list to assign keyboard shortcut to service just created