Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

FMGrowl(title, description, sticky, message)

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 3.9  (60 votes)
  Discuss this Custom Function

Douglas Alder, HomeBase Software Publishing Ltd.
http://hbase.net

Add Growl notification to your FileMaker solutions.

Sample Input:
FMGrowl(title, description, sticky, message)
Sample Output:
Growl notification


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

This custom function allows you to integrate the Growl notification system for Mac OS X with FileMaker. It is formatted as an AppleScript and activated through the Perform AppleScript script step.

Based on ideas and code from Michael Gaslowitz (http://www.gaslowitz.net/filemaker/blog/2008/07/video-growl-integration/)
Many thanks to Michael and his great blog. He did all the hard work on this, I am just simplifying it for my own use and trying to share it as he has done with his work .

His ideas are great, but did more than what I needed. My goal was a simple function that I could feed messages into. His system has two other custom functions to feed in the version of FileMaker being used (Pro or Advanced) and adds in the ability to do custom icons loaded from FileMaker into a Temp directory. He also has a script parameter feeding system to allow you to enter all the needed parameters when assigning a script to a button. This also used more custom functions. I cut out all that good stuff just to get it working simply. It is definitely worth a look at his sample file to see how this could be expanded, and because he has a script that checks for the presence of Growl.

Parameters: Are all text fields
message - the name of the floating dialog box.
title - the title of the box.
description - the text in the main message of the box.
sticky - text field that takes the values: {yes, no}. This determines if the Growl message hangs around on the screen or not.

Applescript steps involved:

--Register the script with Growl. I am using the default FileMaker Application icon. There is a Case switch in there to deal with FileMaker Pro or Advanced, as Applescript is specific about the program name.
--send a notification to Growl

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

Here's a version that uses the command line instead of AppleScript (same params):

"/usr/local/bin/growlnotify -t " & Quote ( title ) & " -m " & Quote ( description ) & " -a " & Quote ( "FileMaker Pro" & Case ( PatternCount ( Get ( ApplicationVersion ) ; "Advanced" ) ; " Advanced" ) ) & Case ( sticky = "yes" ; " -s" )

Requires installation of:
* growlnotify (in the Extras folder of the Growl install disk image, more info here: http://growl.info/extras.php )
* FM plugin that executes shell scripts ( such as the free BaseElements plugin: http://www.goya.com.au/baseelements/plugin )

Note: Maybe it had a purpose in M. Gaslowitz's original code, but I don't see a need/use for the "message" parameter in this stripped-down version of the function, so I send it as "". What growlnotify calls the message (-m) is actually the "description" parameter.

Marc Wood, Minneapolis
May 20, 2011 1:30pm

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 0 + 5 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. ProperAllWords ( text )
  (Thu, Dec 14, 5:19pm)
2. MatchExist ( SourceTable.Field ; DestTable.Field ; ReturnField )
  (Thu, Dec 14, 1:07pm)
3. BVR_Format ( bvr )
  (Wed, Dec 13, 5:32pm)
4. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
5. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
6. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
7. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
8. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)

RSS Feed of Custom Functions