title: OSX: Execute same command on all files within a folder
body: <p>i am using a command-line tool called TMX (<a href="https://github.com/tonybeltramelli/TMXResolutionTool" rel="noreferrer">https://github.com/tonybeltramelli/TMXResolutionTool</a>)
  I want to execute this command on <strong>every .png file</strong> in a certain folder. How can i do that?</p>
  
  <p>This is how it is used:</p>
  
  <pre><code>TMXResolutionTool &lt;tmx path&gt; &lt;resize ratio&gt;
  TMXResolutionTool &lt;image path&gt; &lt;resize ratio&gt;
  TMXResolutionTool &lt;image path&gt; &lt;new width&gt; &lt;new height&gt;
  </code></pre>
  
  <p>Cheers.</p>