Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SharingService.ShareValues
Shares text or containers with other services.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SharingService | 15.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "SharingService.ShareValues"; ServiceName; Item... ) More
Parameters
Parameter | Description | Example |
---|---|---|
ServiceName | The service name to use. Pass empty text to show menu at mouse cursor and let the user choose. |
"" |
Item... | Pass one parameter for each item. An item may be a container with an image or styled text. |
"Hello World" |
Result
Returns OK or error.
Description
Shares text or containers with other services.You can let the user pick the service or pass it as service name.
Pass as many parameters as needed to include all URLs, native file paths, styled text or container values with images to the function as needed.
Below a few sample service names, but there may be more installed on your computer.
Name | Title |
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 | |
com.apple.share.System.add-to-iphoto | Add to Photos |
Same as SharingService.ShareItems, but doesn't accept file paths or URLs.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Item parameter as often as you need.
Examples
Send text to Apple Mail:
Set Variable [ $r; Value: MBS( "SharingService.SetEmailSubject"; "Hello World" )
Set Variable [ $r; Value: MBS( "SharingService.SetEmailSubject"; "test@tester.test¶other@other.test")
Set Variable [ $r; Value: MBS( "SharingService.ShareValues"; "com.apple.share.Mail.compose"; "Hello World" ) ]
See also
Release notes
- Version 15.3
- Added SharingService.ShareValues function to pass text, that looks like an URL.
Blog Entries
This function checks for a license.
Created 21st May 2025, last changed 31st May 2025
