If I try to place an error message captured in a try statement into a FileMaker field, the formatting from the message (black 12 point Chicago, I think) overrides the formatting specified within my FileMaker Layout.
Any ideas how to avoid this.
On the AppleScript Users list in March, Jeff Baumann came up with this method for stripping AppleScript formatting from captured error messages
try
-- Do something daft
on error errmsg
set errmsg to (errmsg as Unicode text) as text
end try
NG
If I understand correctly, you’re asking how to strip the formatting from a formatted text string? I think there is an OSAX that will does this, but I haven’t been able to find it.
However,
try
set char_list to every item of formatted_text
set unformatted_text to (char_list as string)
might work.