Newbies gesualdo Posted June 20, 2002 Newbies Posted June 20, 2002 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)?
LiveOak Posted June 20, 2002 Posted June 20, 2002 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
keshalyi Posted June 20, 2002 Posted June 20, 2002 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
LiveOak Posted June 21, 2002 Posted June 21, 2002 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now