Created
August 31, 2015 15:48
-
-
Save brianpartridge/fa174fb85eb7a50c8959 to your computer and use it in GitHub Desktop.
Load the current iOS Simulator screen into Kaleidoscope
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 "System Events" to tell process "iOS Simulator" | |
set frontmost to true | |
tell menu bar item "Edit" of menu bar 1 | |
# Grab Screenshot | |
click menu item "Copy Screen" of menu 1 | |
end tell | |
end tell | |
tell application "System Events" to tell process "Kaleidoscope" | |
set frontmost to true | |
tell menu bar item "Edit" of menu bar 1 | |
# Paste in the screenshot | |
click menu item "Paste to Comparison" of menu 1 | |
# Set the screenshot as the new B | |
click menu item "Select Next B" of menu 1 | |
end tell | |
end tell |
My workflow:
- Add mockup to Kaleidoscope as side A
- Run app
- Run script
- Fix discrepancies in Reveal
- Repeat script and fixing until perfect
- Update code
- 💰
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For ease of use, use Automator to create an Service with this script, and add a shortcut from System Preferences.