Created
June 20, 2014 16:21
-
-
Save mniebling/5c309ebc796106e51db7 to your computer and use it in GitHub Desktop.
Open Safari's Dev Tools and attach to running iOS Simulator
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
tell application "Safari" to activate | |
tell application "System Events" | |
tell process "Safari" | |
click menu item "index.html" in menu "iPhone Simulator" of menu item "iPhone Simulator" in menu "Develop" of menu bar item "Develop" in menu bar 1 | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I could not make that one work, but here is what did it for me besides using "iPad Simulator" instead of iPhone:
tell application "Safari" to activate
tell application "System Events" to tell process "Safari"
tell menu bar 1
tell menu bar item "Develop"
tell menu "Develop"
tell menu item "iPad Simulator"
tell menu "iPad Simulator"
click menu item "index.html"
end tell
end tell
end tell
end tell
end tell
end tell