Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script to Create Folder in OSX Yosemite Finder and Mail

Featured Replies

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

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

  • 4 weeks later...

I think this is more of a Yosemite issue than an FM issue, since the errors are triggered on non-FM-related AS commands.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.