Skip to content

Instantly share code, notes, and snippets.

@mhulse
Created June 24, 2016 06:15
Show Gist options
  • Save mhulse/1f3e7e7ed60ab9e6599a79b06e27725a to your computer and use it in GitHub Desktop.
Save mhulse/1f3e7e7ed60ab9e6599a79b06e27725a to your computer and use it in GitHub Desktop.
Testing some shit.
#!/usr/bin/env bash
open -b com.adobe.illustrator /Users/mhulse/github/mhulse/test/test.jsx
echo 'Done!'
exit 0
#target illustrator
alert('OMG');
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
//echo exec('bash ' + dirname(__FILE__) . '/test.sh');
//$contents = file_get_contents(dirname(__FILE__) . '/test.sh');
//echo shell_exec($contents);
echo shell_exec(dirname(__FILE__) . '/test.sh');
echo 'wtf';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment