My RB app hands off the data off to an AppleScript which then keystrokes the data into TextEdit.

If I take the data and let the RB app copy it to the clipboard, it pastes correctly into TextEdit. The idea is to skip making the user activate TextEdit and paste it manually, instead letting the AppleScript keystroke it. This lets the user stay in the RB app and click on more items to insert if desired. So the data never gets passed back to an RB control, but to an external application.

It seems that both RB and TextEdit don't choke on the Chinese characters generated in the RB app, but when AppleScript gets involved, the problems start.

On Mar 15, 2007, at 11:37 AM, realbasic-nug- [EMAIL PROTECTED] wrote:

Thanks, it worked perfectly. Now the only problem is the AppleScript
mangles the text encoding that RB preserved perfectly (The Chinese
traditional characters are turned into two latin characters). It's
kind of off-topic, but if anybody knows how to get AppleScript to
respect the text encoding, please email me off list.

Have you tried converting the text you get from AppleScript from UTF16
to whatever encoding you're using in your project? I'm pretty sure
that AppleScript encodes text in UTF16.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to