« Early bird offer ends… | Home | Add Hover effect to y… »

Data Detectors as context menu

Does your FileMaker made solution run on macOS (or iOS) and shows some text? Whether you show some emails, text messages or content from the web, we may have something for you: How about adding an action button with a contextual menu to offer various actions for the text?

Using the RegEx.DataDetector function from our MBS FileMaker Plugin, you can analyze text using Apple's frameworks. You get a JSON array of results for the found details, which can include:

  • URLs
  • Email addresses
  • Phone numbers
  • Addresses
  • Transit Information
  • Dates

We can process the found information and offer action commands. This may include copying the found text. When we have an URL or can build one, we can offer to open this URL. Normally this opens a website in the default browsers. Email addresses can open a new email in the mail application. With all this actions, we can show a menu like this:

In our example we use a timer to check the text a few milliseconds of the text changing. Once checked, we could decide whether to enable the button for the actions. You may provide it as a gear button like other applications to offer these additional actions.

The example database will be included with future plugin versions or you can email us for a copy as usual. If you'd like to do something similar for Windows or Linux, please check our RegEx functions and use a few regular expressions to find phone numbers, emails or URLs yourself.

The new example will be included in 14.1 pre-release next week.

26 01 24 - 08:36