• 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: More fun with Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More fun with Unicode


  • Subject: Re: More fun with Unicode
  • From: John Delacour <email@hidden>
  • Date: Mon, 5 May 2003 19:08:25 +0100
  • Mac-eudora-version: 6.0a16

At 10:42 am -0700 5/5/03, Andrew Oliver wrote:

Amazing!

run script "Gdata ****" & words of s & "H"
--> Script Error

Although I can think of a myriad of easier ways to generate a Script
Error... :)

Andrew
:)

Readers of this rotten Apple mailing list, as opposed to its administrators, are presumed to have the intelligence to regard all us-ascii characters with extreme suspicion.

run script "<<data ****" & words of s & ">>"

which you need to convert to the proper guillemets


Or, if you're lucky enough to be using a mailer that understands UTF-7, as I notice you are, then

run script "+AKs-data ****" & words of s & "+ALs"


JD


set somecocoaapp to "TextEdit"
set _hex to "FEFF
2029 2029
975C 591C 601D
2029 2029
674E 767D
2029 2029
5E8A 524D 660E 6708 5149 FF0C F87D 2029
7591 662F 5730 4E0A 971C 3002 2029
8209 982D 671B 660E 6708 FF0C F87D 2029
4F4E 982D 601D 6545 9109 3002 2029"
set f to "/tmp/temp" as POSIX file as file specification
set _data to convertToData(_hex)
open for access f with write permission
write _data to f
close access f
tell app somecocoaapp to open {f}
on convertToData(s)
set my text item delimiters to ""
run script "+AKs-data ****" & words of s & "+ALs"
end
_______________________________________________
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: More fun with Unicode
      • From: Michelle Steiner <email@hidden>
    • Re: More fun with Unicode
      • From: Mr Tea <email@hidden>
References: 
 >Re: More fun with Unicode (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: More fun with Unicode
  • Next by Date: Re: More fun with Unicode
  • Previous by thread: Re: More fun with Unicode
  • Next by thread: Re: More fun with Unicode
  • Index(es):
    • Date
    • Thread