Re: Filemaker text formatting [slightly off topic]
Re: Filemaker text formatting [slightly off topic]
- Subject: Re: Filemaker text formatting [slightly off topic]
- From: Malcolm Fitzgerald <email@hidden>
- Date: Thu, 8 Aug 2002 12:01:31 +1000
I agree that you don't need AppleScript to get rid of formatting in FileMaker.
I've discovered that Set field["this field"] = this field doesn't always work.
The reason it doesn't "work" is that FMP will preserve the text style
settings until the fie
ld loses focus. When you place the new data into the field it picks
up the style settings.
Don Goyette's solution to this was to leave the field (so it loses
focus) and return to it immediately
Cut[Select]
Go to Next Field
Go to Previous Field
Paste[No style]
(I'm thinking that it may fail if there is only one field but it
probably just goes to itself and back).
I've had a script like this running for quite a while now. This
morning I had the database open and had a look at it to see what I'd
done back then to get it to work properly. This is what I discovered
Exit Record/Request
Set[html_text, html_text]
This method achieves the same result but three things bear mentioning:
(1) it doesn't touch the clipboard
(2) it doesn't depend on the existence of any objects (next field) or
(prev field) except the field we want to act on
(3) it doesn't look like the ham-fisted stuff I usually find in my old scripts
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors
phone: 02 9318 0877 fax: 02 9318 0530
http://www.asauthors.org mailto:email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.