Re: Filemaker text formatting
Re: Filemaker text formatting
- Subject: Re: Filemaker text formatting
- From: Rob Jorgensen <email@hidden>
- Date: Mon, 5 Aug 2002 23:41:55 -0400
On 8/5/02, Patrick S. Page-McCaw commented:
ok, I'm new to Filemaker and this is probably OT, but what I want to
do is force my Text fields in a simple FM database to be Helvetica
Plain 10 pt. I've set the fields to that as default but, then if I
cut and paste (from a web page) formatted text into a text field, it
remains formatted. Presumably, there is a way to do this without
scripting, but I can't find it in the manual and this is a
scripting list after all.
To paste without styles, press: option + command + v
FM and its dictionary do not seem to recognize font or style
attributes of data so...
What I tried is to get the data from the field (works), convert to
plain text (works?), then paste it back in (works). But the text
styling seems to remain with the field or my coercion is not working.
Consistent with the former, internal text styling is lost (eg
'bolded' words come back in plain text), but the whole of the text is
still in the original font, not the default font.
Most drastically what i tried is:
tell application "FileMaker Pro"
set theText to get data of cell "Description" of database 1
set theText to every character of theText
set theText to theText as string
set cell "Description" of current record of database 1 to
"modified? " & theText
end tell
So, a nudge to a script or a primer on FM text formatting would be
greatly appreciated, thanks
Calculation fields don't pay any attention to styles so you might be
able to use one to remove styles and then replace the styled text
with the result. I don't have FMP handy to work out the details.
--
Rob Jorgensen
Ohio, USA
_______________________________________________
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.