AppleScript choose file dialog box with default location not working <p>So there goes four hours of my life that I will never get back. </p> <p>I'm trying to do something seemingly simple...</p> <p>I want to open a file select dialog box and specify the default location. </p> <p>I actually got this to work using the following...</p> <pre><code>choose file with prompt "Please choose a file:" of type {"XLSX", "APPL"} default location "/Users/lowken/Dropbox/" </code></pre> <p>This works and does exactly what I want (the file dialog opens up in the Dropbox folder). </p> <p>However when I try to use a string variable it doesn't work...</p> <pre><code>set strPath to "/Users/lowken/Dropbox/" choose file with prompt "Please choose a file:" of type {"XLSX", "APPL"} default location strPath </code></pre> <p>Now the dialog box opens in the root directory of the hard drive :-(</p> <p>It seems that the default location is being ignored however if the path is not correct Applescript does raise a error. </p> <p>I've tried casting the value as a string. I even tried to use the POSIX format...</p> <pre><code>"Macintosh HD:Users:lowken:Dropbox" </code></pre> <p>This didn't format didn't work at all. </p> <p>I'm running OS X Yosemite 10.10.4 on a mid 2012 MacBook Pro. </p> <p>Can anyone help me?</p>