-
-
Save marco79cgn/ab445f6bad2b9e73104522e9a8efcd5a to your computer and use it in GitHub Desktop.
This file contains 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
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