• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Evaluating Double Byte
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Evaluating Double Byte


  • Subject: Re: Evaluating Double Byte
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 5 Feb 2008 16:47:52 -0500

Why are you generating AppleScript source code?  Just write the script
separately, design it to take the text to insert as a parameter, and
run it from your app.  There's rarely a good reason to spit out new
code dynamically like this...


On 2/5/08, email@hidden <email@hidden> wrote:
>
>
> has <email@hidden> wrote: On 5 Feb 2008, at 20:42,  wrote:
>
> > Does anybody know of a means to evaluate a double byte character
> > without using the chevron notation i.e.:
> >
> > «data utxt1603»
>
> Depends what you mean by "double byte character". Hex string? unichar?
> Sounds like you're trying to do code generation of some sort, which
> for most problems is the wrong solution anyway. More information would
> be helpful.
>
> has
> --
> http://appscript.sourceforge.net
> http://rb-appscript.rubyforge.org
>
> Sure,  I am using my main application to pull data to be inserted in a Word
> Document.
>
> thus pulling dynamic text in insert into preformed applescript code i.e.
>
> insert text "pulled text from db here" at text object of selection
>
> This works fine until I come across any Japanese, Chinese, ect. languages,
> which I can test if they are and then wrap them in code such as:
>
> insert text "pulled text " & «data utxt1575» as Unicode text & "from db
> here" at text object of selection
>
> however, when the NSApplescript event attempts to pass that to applescript,
> it seems to not recognize the chevrons.  It will replace them with what
> looks like a different character.
>
> not sure if this was what you were looking for (nor if I made a lot of sense
> for that matter ;)  ), but it seems I need to find a way to pass the string
> to applescript without using the chevrons.
>
> Thanks for looking at it!
>
> Brian
>
> Works fine and dandy with low ASCII, or pre 2004 word,  but wh
>


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Evaluating Double Byte (From: has <email@hidden>)
 >Re: Evaluating Double Byte (From: <email@hidden>)

  • Prev by Date: Re: strings, again and again
  • Next by Date: Re: Setting the correct linefeed.
  • Previous by thread: Re: Evaluating Double Byte
  • Next by thread: Re: Evaluating Double Byte
  • Index(es):
    • Date
    • Thread