Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8196 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I need to use a script to highlight changes. Can text within a field be formatted using a script (such as changing the text color or style)?

Posted

I know of no easy way to do this. You could display the text in a field in a monospaced font, overlay a second field (with a transparent background fill and a different text color) containing a word you wish to highlight with the correct number of spaces to overlay it exactly with the word in the original field. Pretty ugly and complex.

-bd

Posted

Another way that, while also somewhat ugly, is at least a bit more flexible, might be to apply formatting using an applescript with the 'do menu' command? I've experimented with this, I have a classified pagination system for a newspaper, and I have been trying to set up a 'bold' button so that they can click it to boldface highlighted words. However, I've had some trouble making the linked applescript run by pressing the button, even though when I run it from script editor, it works flawlessly. But at any rate, it does work externally, I just have it select the bold command from the menu, using a 'do menu' command, so that might be something to pursue? And if anyone has any ideas why it would not work in a button, let me know smile.gif

Posted

In earlier versions of FM you could not AppleScript from/to the file you are in. I thought this restriction was eliminated in recent versions.

-bd

This topic is 8196 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.