Re: FileMaker styled text
Re: FileMaker styled text
- Subject: Re: FileMaker styled text
- From: Kai <email@hidden>
- Date: Sat, 14 Jun 2003 22:56:22 +0100
on Sat, 14 Jun 2003 14:40:09 +0200, EBI Aktivitet <email@hidden> wrote:
>
Den 03-06-13 11.57, skrev "Kai" <email@hidden>:
>
> BTW, if that doesn't fix the problem, you may have an issue with Unicode or
>
> styled text from the source of your new value. In that case (and if you
>
> haven't already done so), then follow up on Gary's advice.
>
>
>
> And if _that_ doesn't work (or perhaps even if it does), let us know. (Since
>
> a symptom may sometimes be attributed to a variety of causes, it's generally
>
> easier to diagnose when the offending code, or a snippet that replicates the
>
> problem, is included.)
>
>
Feel ridiculous, but I couldn't follow Gary's advice, since the list
>
archives wouldn't let me in... Tried the same user/password as for my list
>
administration, but no luck!
Don't feel ridiculous, Adim. Besides Paul B's advice about username and
password, there may also be an issue with the site's server currently being
moved over to OS X.
>
OK, here is the code that is giving me trouble. The first sample works fine,
>
and text style is preserved, the second sample reads from a Unicode text
>
file, and now the text style in FM is changed.
[snip]
>
--Sample 2, text style changed--
[snip]
>
try
>
>
--open file to read
>
set theFile to open for access alias theFileToRead
>
set theUpdateRecords to (read theFile as Unicode text)
>
close access theFile
>
>
--Convert from Unicode to text
>
set theUpdateRecords to theUpdateRecords as text
Try replacing that last line above with:
-------------------------------------------------------
set {text:theUpdateRecords} to theUpdateRecords as text
-------------------------------------------------------
--
Kai
_______________________________________________
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.