Skip to content

Instantly share code, notes, and snippets.

@marco79cgn
Created December 13, 2017 09:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marco79cgn/ab445f6bad2b9e73104522e9a8efcd5a to your computer and use it in GitHub Desktop.
Save marco79cgn/ab445f6bad2b9e73104522e9a8efcd5a to your computer and use it in GitHub Desktop.
to run
set p to "/Applications/AirConnect/airupnp-osx-multi"
try
POSIX file p as alias
true
on error
do shell script "mkdir -p /Applications/AirConnect"
do shell script "curl https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/airupnp-osx-multi -o /Applications/AirConnect/airupnp-osx-multi"
do shell script "chmod +x /Applications/AirConnect/airupnp-osx-multi"
end try
try
do shell script "kill `ps ax | grep airupnp-osx-multi | grep -v grep | cut -d\" \" -f1`"
end try
tell application "Terminal"
do script "/Applications/AirConnect/airupnp-osx-multi -l 500:500 -z"
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment