title: Applescript - creating a folder if it doesn't exist
body: <p>Can someone please point out why this bit of Applescript isn't working?  Thanks!</p>
  
  <pre><code>on open droppedItems
      tell application "Finder"
          set inputFolder to (container of first item of droppedItems) as Unicode text
          if (exists folder ("converted") of inputFolder) then
              set outputFolder to (inputFolder &amp; "/converted/") as text
          else
              make new folder at inputFolder with properties {name:"converted"}
              set outputFolder to the result as text
          end if
      end tell
  end
  </code></pre>