CD-ing a file to itself
If I understand the question correctly all you need is to get the current directory of the application.
Quick looking through SE answers pulls out this:


  set YourPathVariable to POSIX path of ((path to me as text) &amp; "::")