Skip to content

Instantly share code, notes, and snippets.

@brianpartridge
Created August 31, 2015 15:48
Show Gist options
  • Save brianpartridge/fa174fb85eb7a50c8959 to your computer and use it in GitHub Desktop.
Save brianpartridge/fa174fb85eb7a50c8959 to your computer and use it in GitHub Desktop.
Load the current iOS Simulator screen into Kaleidoscope
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
@brianpartridge
Copy link
Author

For ease of use, use Automator to create an Service with this script, and add a shortcut from System Preferences.

@brianpartridge
Copy link
Author

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