title: zsh: permission denied: webstorm - On Attempting to Create Shell Script That Launches WebStorm
body: <p>I am following the documentation on creating a Shell script that launches the WebStorm application for a given file folder as described on <a href="https://www.jetbrains.com/help/webstorm/working-with-the-ide-features-from-command-line.html#toolbox" rel="nofollow noreferrer">WebStorm Help page</a>. I am currently using an M1 Pro Macbook (2022) that I just got today and has little else installed beyond Homebrew, VSCode, WebStorm, and PyCharm.</p>
  <p>Following the example in the docs, I created a file called <code>webstorm</code> (without any extension) in <code>usr/local/bin</code> and added the following code to it:</p>
  <pre class="lang-bash prettyprint-override"><code>#!/bin/sh
  
  open -na &quot;WebStorm.app&quot; --args &quot;$@&quot;
  </code></pre>
  <p>After starting up a new terminal, and running <code>webstorm .</code>, I get the following error in my terminal:</p>
  <pre class="lang-bash prettyprint-override"><code>zsh: permission denied: webstorm
  </code></pre>
  <p>I have:</p>
  <ol>
  <li>Changed <code>sh</code> to <code>zsh</code> as my default shell is <code>zsh</code>, and that made no difference.</li>
  <li>Checked my permissions for both <code>usr/local/bin</code> and <code>usr/local/bin/webstorm</code> to ensure that I have the correct permissions to execute files from here. When right clicking on the <code>webstorm</code> file and clicking &quot;Get Info&quot;, I can see that I currently have read and write permissions.</li>
  <li>Restarted my computer</li>
  </ol>
  <p>To add to my confusion, I have used the same script in the same location on my work Macbook, and it has worked without issues.</p>
  <p>Any help on this would be hugely appreciated.</p>