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
    • MikeM

      How to unlock your screen (not from sleep mode)

      • • Mike
      1
      0
      Votes
      1
      Posts
      334
      Views

      No one has replied

    • Felipe SeabraF

      Lock screen on Mac

      • • Felipe Seabra
      2
      0
      Votes
      2
      Posts
      273
      Views

      MikeM

      @Felipe-Seabra very nice, just tried it. 🙂

    • MikeM

      Facetime Audio with predefined contact person

      • • Mike
      1
      1
      Votes
      1
      Posts
      222
      Views

      No one has replied

    • B

      PS4-Waker troubleshooting

      • • BetoFuenzalida
      11
      0
      Votes
      11
      Posts
      884
      Views

      Bráulio BetônicoB

      @Russ said in PS4-Waker troubleshooting:

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

      Thank you very much. worked correctly.

    • Daniel GarciaD

      This topic is deleted!

      • • Daniel Garcia
      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • Ricardo MachadoR

      Lock your screen Mac

      • • Ricardo Machado
      8
      0
      Votes
      8
      Posts
      2.2k
      Views

      Daniel GarciaD

      @Russ said in Lock your screen Mac:

      osascript -e 'tell app "System Events" to key code 12 using {control down, command down}'

      Gracias,ya me funciono

    • Italo RodriguesI

      keyboard shortcuts

      • • Italo Rodrigues
      2
      0
      Votes
      2
      Posts
      487
      Views

      ChabeticoC

      @Italo-Rodrigues No, because the file is executed in batch, that is, sequentially. I recommend doing it at AutoHotKey

    • DAVID ALONZOD

      Problems runing with mac

      • • DAVID ALONZO
      2
      0
      Votes
      2
      Posts
      403
      Views

      RussR

      @DAVID-ALONZO, did you activate the TRIGGERcmd Smart Home skill? I recommend using it instead of the older TRIGGERcmd skill.

      https://www.triggercmd.com/forum/topic/538/using-the-alexa-smart-home-skill-the-first-time

      Also, what are you saying to Alexa?

    • J

      onde consigo meu token de verificação??

      • • joaoo
      2
      0
      Votes
      2
      Posts
      974
      Views

      Caue SantosC

      @joaoo o token é todo o conteúdo em vermelho abaixo da linha escrito "Use this token when you install.....", pode verificar melhor na seguinte URL:
      https://www.triggercmd.com/user/computer/create

    • Carlos CGC

      Screenshot to clipboard

      • • Carlos CG
      1
      1
      Votes
      1
      Posts
      298
      Views

      No one has replied

    • Luiz NegriniL

      Open Slack

      • • Luiz Negrini
      1
      1
      Votes
      1
      Posts
      276
      Views

      No one has replied

    • George ContentoG

      how to make a batch file for X10 control on mac

      • • George Contento
      2
      0
      Votes
      2
      Posts
      315
      Views

      RussR

      @George-Contento, I found that this seems to be the only remaining Mac software that's still supported:
      http://www.indigodomo.com/downloads.html

      I also found you can still download the Thinking Home software here, but it's not supported anymore.

      I haven't tried either one myself yet.

      Terminology-wise, a "batch file" is a .bat file and only works on Windows. For Mac and Linux you'd want to make a bash script (usually with a .sh extension) like this:

      #!/bin/bash if [ "$1" == "off" ] then echo turn light $1 >> /tmp/on_off.log # Put your command to turn the light **off** here. else echo turn light $1 >> /tmp/on_off.log # Put your command to turn the light **on** here. fi

      You'd create that file (/Users/(your user)/on_off.sh for example) then make it executable with a command like this:

      chmod +x /Users/russ/on_off.sh

      Enable parameters on your command so TRIGGERcmd will add a on or off parameter to the command that runs the script via the TRIGGERcmd Smart Home Alexa Skill or Google Assistant Action.

      Your command would be the full path to the script, like this: /Users/russ/on_off.sh

    • RobertofilhoR

      How to connect the PC after sleep mode

      • • Robertofilho
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      RussR

      @Rafael-Sathler, I just realized these are Mac commands and the topic was in the Windows section, so I moved this over to the Mac section.

      I wonder if that's where the confusion came from.

    • RussR

      Mute/Unmute/Volume

      • • Russ
      2
      0
      Votes
      2
      Posts
      2.8k
      Views

      Waldex SantosW

      How to do next track and previous track?

    • RussR

      Play/Pause etc with osascript

      • • Russ
      6
      0
      Votes
      6
      Posts
      2.7k
      Views

      RussR

      I found a simple one-line command for pressing space, which is useful for play/pause.

      echo "tell application "System Events" to keystroke " "" | osascript

    • RussR

      Say Alexa/Hey Google, turn off/on display

      • • Russ
      1
      0
      Votes
      1
      Posts
      566
      Views

      No one has replied

    • Ivan FreitasI

      Shutting down the macbook command

      • • Ivan Freitas
      7
      0
      Votes
      7
      Posts
      6.5k
      Views

      D

      Hi guys, here's a script I set up to simulate the standard Mac shutdown. I hope you like it!

      osascript -e 'tell application "System Events" to click menu item "Shutdown…" of menu 1 of menu bar item "Apple" of menu bar 1 of process "Finder"'

    • Vanessa SoaresV

      How to turn on Macbook?

      • • Vanessa Soares
      2
      0
      Votes
      2
      Posts
      860
      Views

      RussR

      @Vanessa-Soares, this shows how you can enable wake-on-lan, but do you have another computer that could send the "magic packet" to the macbook?

      https://www.microcenter.com/tech_center/article/7596/how-to-enable-or-disable-wake-on-lan-in-mac-os-x

    • Vanessa SoaresV

      Sleep on Mac

      • • Vanessa Soares
      1
      1
      Votes
      1
      Posts
      2.0k
      Views

      No one has replied

    • M

      How to Unlock your screen Mac

      • • marciomayer
      6
      0
      Votes
      6
      Posts
      892
      Views

      RussR

      @marciomayer, for security, Mac OS won't allow programs to interact with the password prompt.