Jump to content

Script to Create Folder in OSX Yosemite Finder and Mail


This topic is 3389 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

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!!

Link to comment
Share on other sites

Hi Radius360 welcome to the FM Forum,

 

I moved your topic from "FileMaker 13 General Discussion" to "AppleScript & Automator” because your are showing you’re using FileMaker 11 and Snow Leopard.

 

This could have also been posted in Managing Scripts, but since your question had to do with AS.

 

Lee

Edited by Lee Smith
Personalized
Link to comment
Share on other sites

  • 4 weeks later...

This topic is 3389 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.