0 Replies Latest reply on Nov 28, 2014 9:18 AM by PeteSchlosser

    Script to Create Folder in OSX Yosemite Finder and Mail

    PeteSchlosser

      Title

      Script to Create Folder in OSX Yosemite Finder and Mail

      Post

      Hi, hoping someone can help.

       

       

       

      I had a couple of AppleScripts, set up to run on a button, that would create a folder in the Finder and a Mailbox in Mac Mail using data from fields in a given record. Since updating to Yosemite these scripts no longer work. I get error messages as per below;

      For the Finder folder:

      "Finder got an error: You don't have permission to create a folder here." "Unknown Error: -10000."

      For the Mailbox:

      "Mail got an error: AppleEvent handler failed." "Unknown Error: -10000."

      Here is the AppleScript that would create the Finder folder.

      set FolderName to cell "Docket Folder Name" of current record
      set FolderPath to cell "Docket Folder Path" of current record

      tell application "Finder"
      make new folder at FolderPath with properties {Name:FolderName}
      end tell

      Here is the AppleScript that would create the Mailbox.

      set MailboxName to cell "Docket Folder Name" of current record

      tell application "Mail"
      make new mailbox with properties {Name:MailboxName}
      end tell

      I hope i've explained this properly. Any help would be greatly appreciated!!