title: PHP Validation in BBEdit 10 with Applescript
body: <p>I am trying to add a script to BBEdit 10 that will validate PHP files. I have enabled PHP &amp; Web Sharing on my Mac and I think the script is accurate but I am having an issue which I think is being caused by a volume name having a space.</p>
  
  <pre><code>property phpref : "/usr/bin/php -l "
  try
      tell application "BBEdit" to get file of first text window
      do shell script phpref &amp; POSIX path of result
      display dialog "Ok: " &amp; result buttons {"Finished Checking"} default button 1
  on error msg
      display dialog "Err: " &amp; msg buttons {"Finished Checking"} default button 1
  end try
  </code></pre>
  
  <p>I am getting an error with <code>get file of</code>. The error is: Could not open input file: /Volumes/ Data</p>
  
  <p>The volume name is "Data HD" which is why I think the space is causing the issue. Can I escape a space when calling <code>get file of</code>?</p>