There’s been plenty of discussion on FileMaker’s developer forums about the implications of using CSS to style layouts in FileMaker 12. In case you weren’t aware, FileMaker 12 introduced a new layout design surface whose styling is based on CSS. It’s a powerful new feature that hints at an exciting roadmap for the FileMaker product line. I’m not going to indulge in any details on this topic, however, because FileMaker has yet to officially expose the CSS styling to developers.
But say you were curious, for educational purposes, about what that styling looks like...
Here’s an AppleScript for all of you on Mac OS X that will extract FileMaker’s clipboard contents as text. It works with any FileMaker object – scripts, custom functions, fields, layout objects, etc. Just copy the object, then run this script. It will get the FileMaker object as XML, save it to a temp file, then open the file using your default text editor. I personally like to store the script in my scripts folder (~/Library/Scripts) and call it using Quicksilver.
The following screenshots show what it looks like to use this script on a button.
Copying the button…
Text output from the AppleScript…
Output text pretty printed using TextMate command…
Here's the AppleScript:
This functionality is already built in to the TextMate Bundle for FileMaker, but I haven't released the update to that yet. Stay tuned for an update on the bundle.
Update 2012-05-18 – New download: No longer sends clipboard event to FileMaker ; enhanced error handling when writing initial temp file.
Donovan joined the Beezwax team to enjoy its lively collaboration and challenging projects. In addition to leading development on client projects, Donovan is a primary contributor to Beezwax’s FOCUS database framework, blogger on the Beezwax Buzz, and chief developer of the TextMate Bundle for FileMaker.
With a Masters of Arts in Organizational Leadership, Donovan brings a strong understanding of organizational dynamics and the ability to solve complex problems. Development, for Donovan, is an endless pursuit of elegance. He thrives when making tasks simultaneously more effective and more simple. This is as true for organizations as it is for code.
To find many more in depth articles from Donavan and some must have tools and services from Beezwax visit their site at the link below:Website: www.beezwax.net