<?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[How to pass parameters on Mac?]]></title><description><![CDATA[<p dir="auto">Hi Russ, I saw your youtube video how you pass parameters with a batch file on Windows.<br />
You used the following script.</p>
<pre><code>      start https://google.com/search?q=%1
</code></pre>
<p dir="auto">I want to do the same for Mac but I am stuck with the parameter part in Applescript</p>
<pre><code>     on run {location, parameters}
tell application "Google Chrome" to activate
open location "https://www.google.com/search?q={param1}"
     end run
</code></pre>
<p dir="auto">Can you help me out?</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1532/how-to-pass-parameters-on-mac</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 21:12:31 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/1532.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Aug 2021 05:18:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to pass parameters on Mac? on Tue, 10 Aug 2021 12:23:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/10013">@Mike</a>, good, I'm glad you knew to do that.  I forget to tell people to change the permissions on bash scripts to make them executable.</p>
]]></description><link>https://www.triggercmd.com/forum/post/4373</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4373</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 10 Aug 2021 12:23:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass parameters on Mac? on Tue, 10 Aug 2021 05:30:27 GMT]]></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> 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!</p>
]]></description><link>https://www.triggercmd.com/forum/post/4372</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4372</guid><dc:creator><![CDATA[Mike]]></dc:creator><pubDate>Tue, 10 Aug 2021 05:30:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass parameters on Mac? on Tue, 10 Aug 2021 05:11:40 GMT]]></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> Thank you. Just to clarify. cat <a href="http://google.sh" rel="nofollow ugc">google.sh</a> is to call script?<br />
This goes to the .sh file? &gt; open "<a href="https://google.com/search?q=$1" rel="nofollow ugc">https://google.com/search?q=$1</a>"<br />
What do I enter in the TriggerCMD GUI Command Editor?<br />
Sorry, I am a total noob when it comes to bash, I only know applescript. <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":-(" alt="😞" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/4371</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4371</guid><dc:creator><![CDATA[Mike]]></dc:creator><pubDate>Tue, 10 Aug 2021 05:11:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to pass parameters on Mac? on Tue, 10 Aug 2021 02:14:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/10013">@Mike</a>, this is how I did it:</p>
<pre><code>russ@russmac ~ % cat google.sh 
open "https://google.com/search?q=$1"
</code></pre>
<p dir="auto">That's a bash script.   If you want me to figure out how to do it with apple script let me know.</p>
<p dir="auto">In a bash script, $1 is the first parameter.</p>
]]></description><link>https://www.triggercmd.com/forum/post/4369</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/4369</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 10 Aug 2021 02:14:52 GMT</pubDate></item></channel></rss>