Requirements:
If you're on OSX you're probably best off using Homebrew to install this stuff:
$ brew install node mongodb
Usage:
| (* To the extent possible under law, Rob Mayoff has waived all copyright and related or neighboring rights to “AppleScript to make Google Chrome open/reload a URL”. This work is published from: United States. https://creativecommons.org/publicdomain/zero/1.0/ *) | |
| tell application "Google Chrome" | |
| activate | |
| set theUrl to "http://tycho.usno.navy.mil/cgi-bin/timer.pl" | |
| if (count every window) = 0 then | |
| make new window | |
| end if | |
| set found to false |
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |
| #!/usr/bin/env ruby | |
| require 'tempfile' | |
| require 'fileutils' | |
| # Signals | |
| trap("SIGINT") { exit } | |
| # Setup | |
| TARGET_FOLDER = ARGV[0] | |
| TARGET_URL = ARGV[1] |
| tell application "Google Chrome" | |
| reload of active tab of window 1 | |
| end tell |
| # Trick to execute AppleScript directly on a shell script. | |
| # The code below will look for the given url to refresh the tab | |
| /usr/bin/osascript << EOF | |
| tell application "Google Chrome" | |
| activate | |
| set theUrl to "http://your-site-url.com" | |
| if (count every window) = 0 then | |
| make new window | |
| end if |
YourTrelloKey with this hash.YourTrelloToken with this looong hash.| /* | |
| |----------------------------------------------------------------------- | |
| | With HTML | |
| |----------------------------------------------------------------------- | |
| */ | |
| <input | |
| type="number" | |
| id="userProvidedHeight" | |
| min="211" |
You will need the user_id from the user. This is difficult to discover at Instagram but easy from this site http://jelled.com/instagram/lookup-user-id
I used http://jelled.com/instagram/access-token for the next few steps
You will also need an access token which ends up being difficult to obtain. Log into the account and go to their Developer Page.
| #!/bin/sh | |
| exec <"$0" || exit; read v; read v; exec /usr/bin/osascript - "$@"; exit | |
| -- the above is some shell trickery that lets us write the rest of | |
| -- the file in plain applescript | |
| -- Usage: | |
| -- For a simple reload and nothing else: | |
| -- # sh reload_chrome.sh | |
| -- For a reload with activating a different app after (iTerm in this case): | |
| -- # sh reload_chrome.sh iTerm |