title: AppleScript choose file or folder
body: <p>can I use AppleScript to choose either file or folder in one time?</p>
  
  <p>Now I could use </p>
  
  <pre><code>tell application "SystemUIServer" to return POSIX path of (choose file)
  </code></pre>
  
  <p>or </p>
  
  <pre><code>tell application "SystemUIServer" to return POSIX path of (choose folder)
  </code></pre>
  
  <p>to get file or folder. However I cannot get file or folder in one time.</p>