@Russ all good, I had to do a chmod 700 of the .sh file to convert it to an Unix executable. and added #!/bin/bash to the script. Now it works beautifully!
Best posts made by Mike
-
RE: How to pass parameters on Mac?
-
RE: Command RUN / Turn on and Smart Home
Hi Igo, you can create a routine in the Alexa app.
The wake word for Trigger CMD is "Alexa, ask Trigger CMD to run DOTA", with routines you can shorten it.Go to the Alexa App.
Go to Routines.
Add new Routine.
Enter routine name: Call it DOTA (or whatever you like)
When this happens: Select Voice > enter "Run DOTA"
Add Action: Custom > enter "ask Trigger CMD to run DOTA"So when you say "Alexa, Run DOTA", it will run DOTA.
-
Facetime Audio with predefined contact person
Hi, just created a Facetime audio applescript that is triggered by TriggerCMD via osascript.
This only works with Big Sur as the script is using the GUI.open location "facetime-audio://MOBILENUMBER" delay 5 tell application "System Events" to tell process "Notification Center" click UI element "Call" of group 1 of UI element 1 of scroll area 1 of windows end tell
Just replace the MOBILENUMBER with a number you want to call. Have fun!
-
RE: Share your best command
@Russ This is amazing and so useful. I will be getting the new Mac in a couple of weeks and I was wondering already how I get my commands backed up! Perfect timing.