• 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
Messing with data types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Messing with data types


  • Subject: Messing with data types
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Sun, 2 Feb 2003 23:47:39 +1100

I've been using a bit of code that Arthur Knapp wrote that bends the rules. His handler takes a string of hex characters and puts it between chevrons. It works for strings less than 255 characters. This is the handler:

on HexToStyle (hexString)
set s to run script "<<data styl" & hexstring & ">>"
return s
end HexToStyle

I'd like to hand it longer strings because most things that I want to run through it have about eight style runs (8*40 + 4 = 324). The alternative is to break the styled text into individual style runs and concatenate the styled text.
--
--
Malcolm Fitzgerald email@hidden
Database Manager http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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: Messing with data types
      • From: Paul Skinner <email@hidden>
References: 
 >RE: Why are compiled scripts slower than from Script Editor? (From: "Patrick S. Page-McCaw" <email@hidden>)
 >Re: Why are compiled scripts slower than from Script Editor? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Calling applications
  • Next by Date: Re: Simple Safari/IE Script problems
  • Previous by thread: Re: Why are compiled scripts slower than from Script Editor?
  • Next by thread: Re: Messing with data types
  • Index(es):
    • Date
    • Thread