Skip to content

Instantly share code, notes, and snippets.

View jorgemartins's full-sized avatar

Jorge Martins jorgemartins

View GitHub Profile
tell application "System Events"
tell process "Framer X"
set frontmost to true
# change to your prototype name.
click menu item "prototype.framerfx" of menu "Window" of menu bar 1
delay 0.1
click menu item "Layers" of menu of menu item "Panel" of menu "View" of menu bar 1
delay 0.2
click at {118, 118}
delay 0.2
-- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor
-- (Or export to .app to run from spotlight.)
-- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility
-- 4. Enable Applescript Editor and System UI Server (or for this .app if so exported)
-- 5. Trigger script from the menu (or run from spotlight)
-- 6. Enjoy being connected
-- 7. Run script again to close connection
@jorgemartins
jorgemartins / snippets.cson
Created August 16, 2016 17:07
Atom kirby snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#