title: Creating a Finder alias using AppleScript
body: <p></p>
  
  <pre><code>set folder_1 to text returned of (display dialog "Create Folders:" default answer "Type Here")
  set folder_2 to "new_" &amp; folder_1
  
  set loc1 to ":path1"
  set loc2 to ":path2"
  
  
  tell application "Finder"
      set newfo1 to make new folder at loc1 with properties {name:folder_1}
      make new folder at newfo1 with properties {name:"new folder"}
      make new folder at newfo1 with properties {name:"new folder"}
      make new folder at newfo1 with properties {name:"new folder"}
      make new folder at newfo1 with properties {name:"new folder"}
  
      set newfo2 to make new folder at loc2 with properties {name:folder_2}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
      make new folder at newfo2 with properties {name:"new folder"}
  
  make alias at folder_1 to folder_2  
  
  end tell
  </code></pre>
  
  <p>Can anybody shed light on creating an alias in the above code. I'm trying to create an alias of <code>{name:folder_2}</code> inside <code>{name:folder_1}</code> but using that variable I get a <code>Finder got an error: AppleEvent handler failed</code>. Could anyone help out?</p>
  
  <p>Very many thanks </p>