title: Can't get relative location of local files - "path to me as text " not working in Xcode
body: <p>I have having real trouble getting the path of objects within my Xcode project - previously in another thread adayzdone suggested to use:</p>
  
  <pre><code>set parentDirectory to POSIX path of ((path to me as text) &amp; "::")
  </code></pre>
  
  <p>Which works brilliantly... in Applescript Script Editor, but causes this error when included in my Applescriptobjc project in Xcode :</p>
  
  <p>Can’t make «class ocid» id «data optr00000000609B220080600000» into type constant. (error -1700)</p>
  
  <p>Still has me stumped!</p>