<p>I have a compiled AppleScript application which I have moved to my windows server. I'd like to then insert a text file into the application (which looks like a zip file on windows):</p>

<pre><code>myapplescript.app/Contents/Resources/MyNewDir/MyTxtFile.txt
</code></pre>

<p>So, I've precompiled the AppleScript to try to read from this text file and get the contents as a string. This is what I do:</p>

<pre><code>set theFolder to POSIX path of (the path to me)
set theFile to theFolder &amp; "Contents/Resources/MyNewDir/MyTxtFile.txt"
open for access theFile
set fileContents to (read theFile)
close access theFile
</code></pre>

<p>but this is the error I get:</p>

<blockquote>
  <p>Can't make
  "/Users/mike/Desktop/myapplescript.app/Contents/Resources/MyNewDir/MyTxtFile.txt"
  into type file</p>
</blockquote>

Ok, I figured it out, I changed the second line to this:
```
```
set theFile to (POSIX file (theFolder & "Contents/Resources/MyNewDir/MyTxtFile.txt"))
```
```