title: building a MacOs app for stressing CPU and may be GPU too
body: <p>I am trying to build an app for MacOs. I am using appleScript in Xcode 11. I have made a 2 .command files for starting stress and killing stress. Both  the files are in Resources Folder of Xcode Project.  Here's the file code</p>
  
  <p>[Stress.command file]</p>
  
  <pre><code>dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null &amp; 
  </code></pre>
  
  <p>[KillStress.command file]</p>
  
  <pre><code>Killall dd
  </code></pre>
  
  <p>My AppDelegate.applescript file </p>
  
  <pre><code>on stress_(sender)
          display dialog "Started Stressing the CPU"
          do shell script "open https://www.youtube.com/watch?v=L_LUpnjgPso"
          do shell script "open ~/Resources/Stress.command"
  
          end stress_
  
      on endstress_(sender)
  
          do shell script "open ~/Resources/killstress.command"
  
          end endstress_
  </code></pre>
  
  <p>Now the problem I am facing is I have no clue how to access files from Resources folder.
  Please help me</p>
  
  <p>Thanks in adavance</p>