<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mac]]></title><description><![CDATA[A place to share commands you like to trigger remotely.  ]]></description><link>https://www.triggercmd.com/forum/category/7</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 22:07:17 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/category/7.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Dec 2024 15:20:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Alexa report What Artist &amp; What Song in Music]]></title><description><![CDATA[<p dir="auto"><strong>IMPORTANT NOTE on above</strong></p>
<p dir="auto">you must make the <a href="http://sendresult.sh" rel="nofollow ugc">sendresult.sh</a> bash script executable.  go to terminal and:</p>
cd ~/.TRIGGERcmdData/
chmod +x sendresult.sh

]]></description><link>https://www.triggercmd.com/forum/topic/3184/alexa-report-what-artist-what-song-in-music</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/3184/alexa-report-what-artist-what-song-in-music</guid><dc:creator><![CDATA[gajahduduk]]></dc:creator><pubDate>Mon, 16 Dec 2024 15:20:28 GMT</pubDate></item><item><title><![CDATA[Trigger a command from another command?]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/21407">@RayHollister</a>, yes, you can download the <a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now?_=1728420263348"><strong>tcmd</strong> tool</a> and create a script like this:</p>
tcmd --computer "laptop" --trigger "Trigger A"
tcmd --computer "laptop" --trigger "Trigger B"

<p dir="auto">... and have Trigger C run that script.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/3116/trigger-a-command-from-another-command</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/3116/trigger-a-command-from-another-command</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 08 Oct 2024 19:16:14 GMT</pubDate></item><item><title><![CDATA[How to Play&#x2F;Pause using spacebar key]]></title><description><![CDATA[<p dir="auto">My favorite and most used command while watching videos on my mac.<br />
This code line triggers spacebar key, pausing or playing whatever running.</p>
<pre><code>osascript -e 'tell application "System Events" to key code 49'
</code></pre>
<p dir="auto">49 is the code related to spacebar, if you want to press any other keys look in the following link<br />
<a href="https://eastmanreference.com/complete-list-of-applescript-key-codes" rel="nofollow ugc">https://eastmanreference.com/complete-list-of-applescript-key-codes</a></p>
]]></description><link>https://www.triggercmd.com/forum/topic/2838/how-to-play-pause-using-spacebar-key</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2838/how-to-play-pause-using-spacebar-key</guid><dc:creator><![CDATA[Fausto Hagen]]></dc:creator><pubDate>Wed, 03 Apr 2024 12:49:20 GMT</pubDate></item><item><title><![CDATA[Creating new triggers on Mac]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/21938">@Andrew-Godwin</a> , 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.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2756/creating-new-triggers-on-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2756/creating-new-triggers-on-mac</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Thu, 07 Dec 2023 01:09:23 GMT</pubDate></item><item><title><![CDATA[How can I get feedback that the command was executed remotely?]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/11904">@Murilo-Callegari</a>, if you look at the Runs list for your command, it should say "Command ran" if the command actually ran on your computer.</p>
<p dir="auto">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.</p>
<p dir="auto">Just run ~/.TRIGGERcmdData/result.sh from your "lock screen" script with a status message like "Locked" or "Unlocked" as the parameter when you run <a href="http://result.sh" rel="nofollow ugc">result.sh</a>.</p>
<p dir="auto">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 <a href="https://docs.triggercmd.com/#/./ConversationalAlexa" rel="nofollow ugc">Conversational Alexa skills</a>.</p>
<p dir="auto"><a href="https://www.triggercmd.com/forum/topic/422/have-alexa-or-google-assistant-say-the-result-of-a-command?_=1694809501942">This article</a> has more about that.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2700/how-can-i-get-feedback-that-the-command-was-executed-remotely</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2700/how-can-i-get-feedback-that-the-command-was-executed-remotely</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 15 Sep 2023 12:40:49 GMT</pubDate></item><item><title><![CDATA[Shutdown não funciona no mac]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/4618">@Waldex-Santos</a> Todos os comandos eu uso pela Alexa, e no Mac Ventura eu uso o comando:</p>
<p dir="auto">Desligar o MacOS: <strong>osascript -e 'tell app "System Events" to shut down</strong></p>
<p dir="auto">Trancar a tela com senha: <strong>osascript -e 'tell application "System Events" to keystroke "q" using {control down, command down}'</strong></p>
<p dir="auto">Encerrar todos os aplicativos no modo "quit force": <strong>osascript -e 'tell app "System Events" to shut down'</strong> (Muito útil para quando o sistema congela!)</p>
<p dir="auto">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!</p>
<p dir="auto">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.</p>
<p dir="auto">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...</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2586/shutdown-não-funciona-no-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2586/shutdown-não-funciona-no-mac</guid><dc:creator><![CDATA[Murilo Callegari]]></dc:creator><pubDate>Tue, 11 Apr 2023 12:25:40 GMT</pubDate></item><item><title><![CDATA[Trying to trigger a Shortcut on Mac]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/19936">@Frank-Grubb</a>, nice.  I'm glad you figured it out.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2584/trying-to-trigger-a-shortcut-on-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2584/trying-to-trigger-a-shortcut-on-mac</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Wed, 05 Apr 2023 22:11:08 GMT</pubDate></item><item><title><![CDATA[Start Roon Display on Apple TV]]></title><description><![CDATA[<p dir="auto">Using automator, this script works on Ventura. First enable screen mirroring in the menu bar.</p>
<p dir="auto">Create an automator (osascript had issues sending key commands from terminal) to run an applescript and save it (Here on my Desktop)</p>
<pre><code># open chrome
tell application "Google Chrome"
	open location "http://192.168.68.xxx:9330/display/"
	activate
end tell

delay 1

# set full screen
tell application "System Events"
	keystroke "f" using {command down, control down}
end tell


-- Click the “Screen Mirroring” menu bar item.
set timeoutSeconds to 2.0
set uiScript to "click menu bar item 6 of menu bar 1 of application process \"Control Center\""
my doWithTimeout(uiScript, timeoutSeconds)

-- Click the “Roku TV” checkbox.
delay 1
set timeoutSeconds to 2.0
set uiScript to "click checkbox 2 of scroll area 1 of group 1 of window \"Control Center\" of application process \"Control Center\""
my doWithTimeout(uiScript, timeoutSeconds)

on doWithTimeout(uiScript, timeoutSeconds)
	set endDate to (current date) + timeoutSeconds
	repeat
		try
			run script "tell application \"System Events\"
" &amp; uiScript &amp; "
end tell"
			exit repeat
		on error errorMessage
			if ((current date) &gt; endDate) then
				error "Can not " &amp; uiScript
			end if
		end try
	end repeat
end doWithTimeout
</code></pre>
<p dir="auto">Next the TriggerCMD is just</p>
<pre><code>automator /Path/To/File
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/topic/2483/start-roon-display-on-apple-tv</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2483/start-roon-display-on-apple-tv</guid><dc:creator><![CDATA[Thomas Watson]]></dc:creator><pubDate>Fri, 30 Dec 2022 15:20:13 GMT</pubDate></item><item><title><![CDATA[Very App for IOS]]></title><description><![CDATA[<p dir="auto">I am talking like a client, and client always have the reason in the USA</p>
<p dir="auto">I dont know why your developers make a good app for IOS, I am using Catalina and I dont know what to do to the agent open in MacBook Pro,  and  I disabled all the security controls and nothing, maybe you are only developers for android and your customer support must be more efficient, I have wasted 3 hours of my time with your app and nothing</p>
<p dir="auto">And with your 1 minute to run your app for a non subscriber is too bad, I wanted to purchase your app but I had too many problems  to run  in IOS</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2456/very-app-for-ios</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2456/very-app-for-ios</guid><dc:creator><![CDATA[Alexsis W. Regis]]></dc:creator><pubDate>Sat, 10 Dec 2022 04:32:17 GMT</pubDate></item><item><title><![CDATA[CATALINA DOESN&#x27;T LET ME OPEN THE AGENT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> 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</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2430/catalina-doesn-t-let-me-open-the-agent</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2430/catalina-doesn-t-let-me-open-the-agent</guid><dc:creator><![CDATA[Alexsis W. Regis]]></dc:creator><pubDate>Wed, 23 Nov 2022 04:41:26 GMT</pubDate></item><item><title><![CDATA[turn bluetooh on&#x2F;off]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/16696">@Temo-Mori</a>, I found <a href="https://superuser.com/questions/92804/how-to-enable-bluetooth-in-mac-with-shortcut-or-command-line" rel="nofollow ugc">this article</a> that gives a couple different methods.</p>
<p dir="auto">You could install blueutil and use that:</p>
brew install blueutil

<p dir="auto">Then toggle it on or off like this:</p>
blueutil on
blueutil off

<p dir="auto">Or you could try this Apple Script method:</p>
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)}'

]]></description><link>https://www.triggercmd.com/forum/topic/2280/turn-bluetooh-on-off</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2280/turn-bluetooh-on-off</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Thu, 04 Aug 2022 12:57:00 GMT</pubDate></item><item><title><![CDATA[Não consigo executar um sh no mac]]></title><description><![CDATA[<p dir="auto">Re: <a href="/forum/topic/1620/how-to-execute-bash-script-on-a-mac">How to execute bash script on a mac</a></p>
<p dir="auto">Coloquei o caminho absoluto e com ~ e também executei o chmod +x</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2190/não-consigo-executar-um-sh-no-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2190/não-consigo-executar-um-sh-no-mac</guid><dc:creator><![CDATA[Andressa Menezes]]></dc:creator><pubDate>Sat, 04 Jun 2022 23:18:54 GMT</pubDate></item><item><title><![CDATA[Wake up PC from Mac]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I want to use my macbook as a source to turn my pc on using Wake On Lan.  Im using <code>wakeonlan</code> library i installed using homebrew.</p>
<p dir="auto">I set up a new trigger on my mac client that runs <code>wakeonlan 19:C0:4A:2F:7F:35</code> but it doesnt turn my pc on. When I run the same command on the terminal, it does.</p>
<p dir="auto">What might I be missing here?</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2119/wake-up-pc-from-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2119/wake-up-pc-from-mac</guid><dc:creator><![CDATA[dinco]]></dc:creator><pubDate>Thu, 21 Apr 2022 12:47:41 GMT</pubDate></item><item><title><![CDATA[Adjust display brightness on Mac]]></title><description><![CDATA[<p dir="auto">Is there a way to control screen brightness on Mac? For instance, set it to different increments, like 100%, 75%, etc.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2040/adjust-display-brightness-on-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/2040/adjust-display-brightness-on-mac</guid><dc:creator><![CDATA[julianesbri]]></dc:creator><pubDate>Fri, 11 Feb 2022 04:58:03 GMT</pubDate></item><item><title><![CDATA[ps4-waker command not working]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13734">@daniprivate</a>, please try this:</p>
/usr/local/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js

<p dir="auto">If that doesn't work, can you show me what this command shows?</p>
ls -al /usr/local/bin/ps4-waker

]]></description><link>https://www.triggercmd.com/forum/topic/1988/ps4-waker-command-not-working</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1988/ps4-waker-command-not-working</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Thu, 20 Jan 2022 14:05:56 GMT</pubDate></item><item><title><![CDATA[Running shortcuts on Mac OS]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@russ</a> many thanks, I’ll take a look.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1952/running-shortcuts-on-mac-os</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1952/running-shortcuts-on-mac-os</guid><dc:creator><![CDATA[admreece]]></dc:creator><pubDate>Sat, 08 Jan 2022 21:13:02 GMT</pubDate></item><item><title><![CDATA[how can I open a Webex meeting]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/12981">@vieira-lobo-advogados</a>, if you have the webex meeting URL, you could create a command like this:</p>
<p dir="auto"><strong>start https://(full webex url)</strong></p>
]]></description><link>https://www.triggercmd.com/forum/topic/1894/how-can-i-open-a-webex-meeting</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1894/how-can-i-open-a-webex-meeting</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 17 Dec 2021 15:55:38 GMT</pubDate></item><item><title><![CDATA[How to execute bash script on a mac]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/2375">@Johnny-Bx</a> , nice. Glad that worked.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1620/how-to-execute-bash-script-on-a-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1620/how-to-execute-bash-script-on-a-mac</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 18 Sep 2021 20:59:07 GMT</pubDate></item><item><title><![CDATA[How to unlock your screen (not from sleep mode)]]></title><description><![CDATA[<p dir="auto">Hi, I wrote an applescript that allows you to unlock your screen.<br />
Use on your own risk. <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<pre><code> tell application "System Events"
 keystroke return
 delay 2
 keystroke "YOUR_PASSWORD"
 keystroke return
 end tell
</code></pre>
<p dir="auto">You call the command on TriggerCMD via osascript.<br />
This only works when you wake up your Mac from Screensaver, not from Sleep Mode.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1541/how-to-unlock-your-screen-not-from-sleep-mode</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1541/how-to-unlock-your-screen-not-from-sleep-mode</guid><dc:creator><![CDATA[Mike]]></dc:creator><pubDate>Fri, 13 Aug 2021 16:55:15 GMT</pubDate></item><item><title><![CDATA[Lock screen on Mac]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/10081">@Felipe-Seabra</a> very nice, just tried it. 🙂</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1538/lock-screen-on-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1538/lock-screen-on-mac</guid><dc:creator><![CDATA[Mike]]></dc:creator><pubDate>Wed, 11 Aug 2021 18:09:51 GMT</pubDate></item><item><title><![CDATA[Facetime Audio with predefined contact person]]></title><description><![CDATA[<p dir="auto">Hi, just created a Facetime audio applescript that is triggered by TriggerCMD via osascript.<br />
This only works with Big Sur as the script is using the GUI.</p>
<pre><code> 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
</code></pre>
<p dir="auto">Just replace the MOBILENUMBER with a number you want to call. Have fun!</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1535/facetime-audio-with-predefined-contact-person</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1535/facetime-audio-with-predefined-contact-person</guid><dc:creator><![CDATA[Mike]]></dc:creator><pubDate>Mon, 09 Aug 2021 15:46:18 GMT</pubDate></item><item><title><![CDATA[keyboard shortcuts]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/8377">@Italo-Rodrigues</a> No, because the file is executed in batch, that is, sequentially. I recommend doing it at AutoHotKey</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1384/keyboard-shortcuts</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1384/keyboard-shortcuts</guid><dc:creator><![CDATA[Chabetico]]></dc:creator><pubDate>Sat, 15 May 2021 13:02:34 GMT</pubDate></item><item><title><![CDATA[Problems runing with mac]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/8248">@DAVID-ALONZO</a>, did you activate the TRIGGERcmd Smart Home skill?  I recommend using it instead of the older TRIGGERcmd skill.</p>
<p dir="auto"><a href="https://www.triggercmd.com/forum/topic/538/using-the-alexa-smart-home-skill-the-first-time">https://www.triggercmd.com/forum/topic/538/using-the-alexa-smart-home-skill-the-first-time</a></p>
<p dir="auto">Also, what are you saying to Alexa?</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1362/problems-runing-with-mac</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1362/problems-runing-with-mac</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 07 May 2021 18:02:54 GMT</pubDate></item><item><title><![CDATA[PS4-Waker troubleshooting]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> said in <a href="/forum/post/4312">PS4-Waker troubleshooting</a>:</p>
<blockquote>
<p dir="auto">/usr/local/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js standby</p>
</blockquote>
<p dir="auto">Thank you very much. worked correctly.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1217/ps4-waker-troubleshooting</link><guid isPermaLink="true">https://www.triggercmd.com/forum/topic/1217/ps4-waker-troubleshooting</guid><dc:creator><![CDATA[Bráulio Betônico]]></dc:creator><pubDate>Mon, 08 Mar 2021 01:57:07 GMT</pubDate></item></channel></rss>