FileMaker and Now Contact-- solved!
FileMaker and Now Contact-- solved!
- Subject: FileMaker and Now Contact-- solved!
- From: Christian Boyce <email@hidden>
- Date: Thu, 8 Apr 2004 15:08:45 -0700
My previous post concerned passing data from FileMaker Pro to Now
Contact. The problem: data passed to Now Contact was unusable, even
though it appeared to be the right stuff (via the Event Log in Script
Editor). This really had me baffled.
By sheer luck I happened to notice that the Event Log showed text
returned from FileMaker in a font slightly smaller than I expected.
That is, this:
set x to cellvalue of cell "firstname"
returned a value in a font smaller than this did:
set x to "Steve"
Turning to the documentation for FileMaker (version 7) I found that
FileMaker returns Unicode text. That's nice, but apparently Now Contact
isn't ready for it. So I used this little handler to change the Unicode
text to plain text:
on getplaintext(fromUnicodeString)
set styledText to fromUnicodeString as string
set styledRecord to styledText as record
return +class ktxt; of styledRecord
end getplaintext
(
http://developer.apple.com/documentation/AppleScript/Reference/
StudioReference/sr3_app_suite/chapter_3_section_7.html#//apple_ref/doc/
uid/20011217/ASKApplicationSuite.Classes.ASKDefaultEntry)
... and my script worked perfectly.
I hope that helps someone.
If anyone has any comments about Unicode text as it pertains to moving
data between applications via AppleScript I'd like to hear them.
cb
--
Christian Boyce
Macintosh Consultant to the Stars
310-452-3720
http://www.christianboyce.com
_______________________________________________
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.