« MBS FileMaker Plugin,… | Home | MBS FileMaker Advent … »

MBS FileMaker Advent calendar - Door 13 - Share Files With Apple Dialog

candy cane Monkeybread Monkey as an elf candy cane
Day 13 - Share Files With Apple Dialog

As today is Friday the 13th and we don't want to push our luck too far, we're only adding one little thing today, but it's very effective. Because under Mac we can also use the typical sharing dialog in FileMaker.

Today we want to add this option for the files in the portal. To do this, we create an additional button in the portal. Then we call the following script step with it:

Set Variable [ $r ; Value: MBS( "SharingService.ShareItems"; ""; Files::File ) ]

This function shows us the dialog. In the first parameter, we can specify which service is to be used for sharing.

com.apple.messages.ShareExtension Messages
com.apple.Notes.SharingExtension Notes
com.apple.reminders.sharingextension Reminders
com.apple.share.AirDrop.send AirDrop
com.apple.share.Mail.compose Mail
com.apple.share.System.add-to-iphoto Add to Photos

If you specify one of these service identifiers in the parameter, the file is shared via this single option. If you want to give the user the choice of which of the options they want to use, simply leave this parameter empty. We have also chosen this option.

In the additional parameter, we then specify the file that is to be shared. Please note that not all splitting methods can be used for all file types.

The mail action allows you to pass formatted text to Mail and include attachements. Great to send emails with christmas greetings.

I hope you enjoyed today's little door and we will see each other again tomorrow.


Monkeybread Software Logo with Monkey with Santa hat
12 👈 13 of 24 👉 14
Claris FileMaker Plugin
13 12 24 - 14:26