• 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: unicode escape sequences in AppleScript strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unicode escape sequences in AppleScript strings


  • Subject: Re: unicode escape sequences in AppleScript strings
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Wed, 15 Jan 2003 11:34:19 -0500

> Date: Tue, 14 Jan 2003 19:02:47 -0600
> Subject: Re: unicode escape sequences in AppleScript strings
> From: Matthew Stuckwisch <email@hidden>

> ... Chris also gave me a quick and dirty little workaround:

> set d to 8482
> do shell script "perl -e 'use utf8; print chr(" & d & ")'"
> --> ""

> set s to ""
> do shell script "perl -e 'use utf8; print ord(\"" & s & "\")'"
> --> 8482

Please let me know if this works on OSX, (or if you have problems under
classic):

-- replace << and >> with option-\ and option-shift-\

set myUnicodeChar to IntegerToUnicodeChar(8482) -- trademark
set myUnicodeChar to IntegerToUnicodeChar(8226) -- bullet


property ksUsrfUtxt : ({{p:<<data utxt0000>>}} as string)'s text 1 thru -3

on IntegerToUnicodeChar(i)

set c4 to ({{p:i}} as string)'s text -2 thru -1

return ((my ksUsrfUtxt & c4) as record)'s p

end IntegerToUnicodeChar


{ Arthur Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m

"Safe the Nature" - political graffiti in Prague
}
_______________________________________________
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.

  • Follow-Ups:
    • Re: unicode escape sequences in AppleScript strings
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Microsoft Word - bringing a window to the front....
  • Next by Date: Freehand export to SWF
  • Previous by thread: Re: unicode escape sequences in AppleScript strings
  • Next by thread: Re: unicode escape sequences in AppleScript strings
  • Index(es):
    • Date
    • Thread