Skip to content

Instantly share code, notes, and snippets.

@tegacodes
tegacodes / gist:fae4cf840c94728e8776
Created April 30, 2014 19:22
Calling a bash script from a Processing sketch
import java.io.*;
void setup() {
// nope, doesn't work...
open("full file path here "); // locally stored in the sketch folder
// not this either!
String fullPath = "full file path here";
# grab some random artwork metadata from scrapi
artwork=`curl scrapi.org/random?images=true`
#get image
image=(echo $artwork | jq '.image')
wget image -O /Users/tegabrain/Documents/METMUSEUM/tempImages/