TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Example Commands
    3. Mac
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • G

      Alexa report What Artist & What Song in Music

      • • gajahduduk
      2
      0
      Votes
      2
      Posts
      82
      Views

      G

      IMPORTANT NOTE on above

      you must make the sendresult.sh bash script executable. go to terminal and:

      cd ~/.TRIGGERcmdData/ chmod +x sendresult.sh
    • R

      Trigger a command from another command?

      • • RayHollister
      2
      0
      Votes
      2
      Posts
      118
      Views

      RussR

      @RayHollister, yes, you can download the tcmd tool and create a script like this:

      tcmd --computer "laptop" --trigger "Trigger A" tcmd --computer "laptop" --trigger "Trigger B"

      ... and have Trigger C run that script.

    • Fausto HagenF

      How to Play/Pause using spacebar key

      • • Fausto Hagen
      1
      1
      Votes
      1
      Posts
      147
      Views

      No one has replied

    • Andrew GodwinA

      Creating new triggers on Mac

      • • Andrew Godwin
      2
      0
      Votes
      2
      Posts
      154
      Views

      RussR

      @Andrew-Godwin , are you able to send a screenshot? It should be along the top of the screen near the right after you enter the token the first time you run it.

    • M

      How can I get feedback that the command was executed remotely?

      • • Murilo Callegari
      2
      0
      Votes
      2
      Posts
      249
      Views

      RussR

      @Murilo-Callegari, if you look at the Runs list for your command, it should say "Command ran" if the command actually ran on your computer.

      If you're worried the screen still didn't lock even though your "lock screen" command ran, you could have your "lock screen" script also check whether the screen is locked, and send that information to the Runs list using the ~/.TRIGGERcmdData/result.sh script.

      Just run ~/.TRIGGERcmdData/result.sh from your "lock screen" script with a status message like "Locked" or "Unlocked" as the parameter when you run result.sh.

      You can also have Alexa speak the "Locked" or "Unlocked" result if you add {{result}} to your command's Voice Reply field and use one the Conversational Alexa skills.

      This article has more about that.

    • Waldex SantosW

      Shutdown não funciona no mac

      • • Waldex Santos
      4
      0
      Votes
      4
      Posts
      516
      Views

      M

      @Waldex-Santos Todos os comandos eu uso pela Alexa, e no Mac Ventura eu uso o comando:

      Desligar o MacOS: osascript -e 'tell app "System Events" to shut down

      Trancar a tela com senha: osascript -e 'tell application "System Events" to keystroke "q" using {control down, command down}'

      Encerrar todos os aplicativos no modo "quit force": osascript -e 'tell app "System Events" to shut down' (Muito útil para quando o sistema congela!)

      Eu fiz automação com o sensor Tuya ou Zigbee da porta, toda vez que eu abro a porta do quarto o computador tranca, e quando eu saio de casa ele desliga sozinho!

      Assim fico seguro contra os enxeridos, porque utilizo muito o Amphetamine e na pressa saio as vezes sem lembrar de bloquear a tela ou antes do protetor de tela ter tempo hábil para isso.

      Essas automações de camadas de segurança todas são geridas pela Alexa e sensores de presença da Phillips Hue e também pelo sensor de contato da portas/janelas que é baratinho no Aliexpress que é Tuya...

    • Frank GrubbF

      Trying to trigger a Shortcut on Mac

      • • Frank Grubb
      3
      0
      Votes
      3
      Posts
      185
      Views

      RussR

      @Frank-Grubb, nice. I'm glad you figured it out.

    • Waldex SantosW

      next track and previous track

      • • Waldex Santos
      9
      0
      Votes
      9
      Posts
      3.1k
      Views

      RussR

      @Hector-M, this command works for me:

      afa0d876-61ba-49e5-a1df-86ba8bb4a86f-image.png

      nircmd sendkeypress ctrl+right

      I just tested it from my phone. You have to have the Spotify window in the foreground.

      https://nircmd.nirsoft.net/sendkeypress.html

    • Thomas WatsonT

      Start Roon Display on Apple TV

      • • Thomas Watson
      1
      0
      Votes
      1
      Posts
      169
      Views

      No one has replied

    • RussR

      Open a website

      • • Russ
      5
      0
      Votes
      5
      Posts
      2.8k
      Views

      RussR

      @Arthur-Schabbach, nice job! You did it without even using a script.

    • Alexsis W. RegisA

      Very App for IOS

      • • Alexsis W. Regis
      1
      0
      Votes
      1
      Posts
      162
      Views

      No one has replied

    • Alexsis W. RegisA

      CATALINA DOESN'T LET ME OPEN THE AGENT

      not signed • • Alexsis W. Regis
      4
      0
      Votes
      4
      Posts
      320
      Views

      Alexsis W. RegisA

      @Russ I trye but I dont know how to use it from github, you should more easy to install the agent, I wanted to purchased the suscrption but with the problems I have I dont belive it

    • Temo MoriT

      turn bluetooh on/off

      • • Temo Mori
      2
      0
      Votes
      2
      Posts
      223
      Views

      RussR

      @Temo-Mori, I found this article that gives a couple different methods.

      You could install blueutil and use that:

      brew install blueutil

      Then toggle it on or off like this:

      blueutil on blueutil off

      Or you could try this Apple Script method:

      osascript -e 'tell application "System Events" to tell process "SystemUIServer" to tell (menu bar item 1 of menu bar 1 whose description is "bluetooth") to {click, click (menu item 2 of menu 1)}'
    • Andressa MenezesA

      Não consigo executar um sh no mac

      • • Andressa Menezes
      1
      0
      Votes
      1
      Posts
      173
      Views

      No one has replied

    • D

      Wake up PC from Mac

      • • dinco
      1
      0
      Votes
      1
      Posts
      239
      Views

      No one has replied

    • J

      Adjust display brightness on Mac

      • • julianesbri
      1
      0
      Votes
      1
      Posts
      144
      Views

      No one has replied

    • D

      ps4-waker command not working

      • • Daniprivate
      4
      0
      Votes
      4
      Posts
      233
      Views

      RussR

      @daniprivate, please try this:

      /usr/local/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js

      If that doesn't work, can you show me what this command shows?

      ls -al /usr/local/bin/ps4-waker
    • A

      Running shortcuts on Mac OS

      • • admreece
      8
      0
      Votes
      8
      Posts
      994
      Views

      A

      @russ many thanks, I’ll take a look.

    • Vieira Lobo AdvogadosV

      how can I open a Webex meeting

      • • Vieira Lobo Advogados
      2
      0
      Votes
      2
      Posts
      138
      Views

      RussR

      @vieira-lobo-advogados, if you have the webex meeting URL, you could create a command like this:

      start https://(full webex url)

    • Johnny BxJ

      How to execute bash script on a mac

      • • Johnny Bx
      8
      0
      Votes
      8
      Posts
      7.2k
      Views

      RussR

      @Johnny-Bx , nice. Glad that worked.