title: Applescript create folder with properties
body: <p>This is my code:</p>
  <pre><code>on startButton_(sender)
      set folderDestination to choose folder
      log folderDestination
      log nameOfFolder
      tell application &quot;Finder&quot;
      make new folder at folderDestination with properties {name:nameOfFolder}
      end tell
  end startButton_
  </code></pre>
  <p>The idea ist to make a folder at the folder Destination (folderDestination) with the name of the folder (nameOfFolder).
  This is the error from the console</p>
  <pre><code>2021-03-13 09:28:02.844240+0100 Folder Creator[1571:39314] *** -[AppDelegate startButton:]: Finder got an error: Can’t make «class ocid» id «data optr0000000059FEE7F626C77C59» into type Unicode text. (error -1700)
  </code></pre>
  <p>But the log from the folder Destination and name did work:</p>
  <pre><code>2021-03-13 09:28:02.750713+0100 Media Folder Creator[1571:39314] file:///Users/name/Desktop/
  </code></pre>
  <p>and:</p>
  <pre><code>2021-03-13 09:28:02.753207+0100 Media Folder Creator[1571:39314] folderName123
  </code></pre>
  <p>The textfield in Xcode is connected to nameOfFolder.
  Model Key Path: nameOfFolder</p>
  <p>I do not know where the error is.
  Thanks for your help.</p>