Last active
June 24, 2016 05:48
-
-
Save mhulse/cdd0db5882400c4bce2c91ccd2150dc7 to your computer and use it in GitHub Desktop.
Opening JSX file using PHP’s exec() and Adobe Illustrator’s bundle identifier …
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target illustrator | |
alert('OMG'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
# http://brettterpstra.com/2014/08/06/shell-tricks-the-os-x-open-command/ | |
echo exec('open -b com.adobe.illustrator test.jsx'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# bash <(curl -sL https://gist.github.com/mhulse/cdd0db5882400c4bce2c91ccd2150dc7/raw/test.sh) | |
open -b com.adobe.illustrator https://gist.github.com/mhulse/cdd0db5882400c4bce2c91ccd2150dc7/raw/test.jsx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get an app’s bundle identifier using: