• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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

    • Dec 16, 2024, 3:20 PM • gajahduduk Dec 16, 2024, 5:57 PM
    2
    0
    Votes
    2
    Posts
    146
    Views

    G Dec 16, 2024, 5:57 PM

    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?

    • Oct 8, 2024, 7:16 PM • RayHollister Oct 8, 2024, 8:48 PM
    2
    0
    Votes
    2
    Posts
    156
    Views

    R Oct 8, 2024, 8:48 PM

    @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.

  • F

    How to Play/Pause using spacebar key

    • Apr 3, 2024, 12:49 PM • Fausto Hagen Apr 3, 2024, 12:49 PM
    1
    1
    Votes
    1
    Posts
    177
    Views

    No one has replied

  • A

    Creating new triggers on Mac

    • Dec 7, 2023, 1:09 AM • Andrew Godwin Dec 7, 2023, 1:04 PM
    2
    0
    Votes
    2
    Posts
    181
    Views

    R Dec 7, 2023, 1:04 PM

    @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?

    • Sep 15, 2023, 12:40 PM • Murilo Callegari Sep 15, 2023, 8:22 PM
    2
    0
    Votes
    2
    Posts
    298
    Views

    R Sep 15, 2023, 8:22 PM

    @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.

  • W

    Shutdown não funciona no mac

    • Apr 11, 2023, 12:25 PM • Waldex Santos Sep 15, 2023, 12:50 PM
    4
    0
    Votes
    4
    Posts
    557
    Views

    M Sep 15, 2023, 12:50 PM

    @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...

  • F

    Trying to trigger a Shortcut on Mac

    • Apr 5, 2023, 10:11 PM • Frank Grubb Apr 6, 2023, 12:36 PM
    3
    0
    Votes
    3
    Posts
    219
    Views

    R Apr 6, 2023, 12:36 PM

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

  • W

    next track and previous track

    • Sep 12, 2020, 11:35 PM • Waldex Santos Feb 13, 2023, 11:01 PM
    9
    0
    Votes
    9
    Posts
    3.2k
    Views

    R Feb 13, 2023, 11:01 PM

    @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

    • Dec 30, 2022, 3:20 PM • Thomas Watson Dec 30, 2022, 3:20 PM
    1
    0
    Votes
    1
    Posts
    193
    Views

    No one has replied

  • R

    Open a website

    • Jun 30, 2020, 10:47 PM • Russ Dec 23, 2022, 5:32 PM
    5
    0
    Votes
    5
    Posts
    2.9k
    Views

    R Dec 23, 2022, 5:32 PM

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

  • Alexsis W. RegisA

    Very App for IOS

    • Dec 10, 2022, 4:32 AM • Alexsis W. Regis Dec 10, 2022, 4:32 AM
    1
    0
    Votes
    1
    Posts
    183
    Views

    No one has replied

  • Alexsis W. RegisA

    CATALINA DOESN'T LET ME OPEN THE AGENT

    not signed • Nov 23, 2022, 4:41 AM • Alexsis W. Regis Dec 10, 2022, 4:15 AM
    4
    0
    Votes
    4
    Posts
    391
    Views

    Alexsis W. RegisA Dec 10, 2022, 4:15 AM

    @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

    • Aug 4, 2022, 12:57 PM • Temo Mori Aug 5, 2022, 12:52 AM
    2
    0
    Votes
    2
    Posts
    261
    Views

    R Aug 5, 2022, 12:52 AM

    @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

    • Jun 4, 2022, 11:18 PM • Andressa Menezes Jun 4, 2022, 11:18 PM
    1
    0
    Votes
    1
    Posts
    195
    Views

    No one has replied

  • D

    Wake up PC from Mac

    • Apr 21, 2022, 12:47 PM • dinco Apr 21, 2022, 12:47 PM
    1
    0
    Votes
    1
    Posts
    284
    Views

    No one has replied

  • J

    Adjust display brightness on Mac

    • Feb 11, 2022, 4:58 AM • julianesbri Feb 11, 2022, 4:58 AM
    1
    0
    Votes
    1
    Posts
    166
    Views

    No one has replied

  • D

    ps4-waker command not working

    • Jan 20, 2022, 2:05 PM • Daniprivate Jan 21, 2022, 10:37 PM
    4
    0
    Votes
    4
    Posts
    267
    Views

    R Jan 21, 2022, 10:37 PM

    @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

    • Jan 8, 2022, 9:13 PM • admreece Jan 12, 2022, 10:49 PM
    8
    0
    Votes
    8
    Posts
    1.1k
    Views

    A Jan 12, 2022, 10:49 PM

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

  • Vieira Lobo AdvogadosV

    how can I open a Webex meeting

    • Dec 17, 2021, 3:55 PM • Vieira Lobo Advogados Dec 17, 2021, 5:37 PM
    2
    0
    Votes
    2
    Posts
    166
    Views

    R Dec 17, 2021, 5:37 PM

    @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

    • Sep 18, 2021, 8:59 PM • Johnny Bx Sep 22, 2021, 12:02 AM
    8
    0
    Votes
    8
    Posts
    7.8k
    Views

    R Sep 22, 2021, 12:02 AM

    @Johnny-Bx , nice. Glad that worked.