• 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: Hex URL to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hex URL to string


  • Subject: Re: Hex URL to string
  • From: "Arthur J Knapp" <email@hidden>
  • Date: Tue, 08 May 2001 17:02:07 -0400

> Subject: Re: Hex URL to string
> Date: Tue, 8 May 2001 00:46:04 -0600
> From: Ehsan Saffari <email@hidden>

> I read a URL clipping with Akua resource sweets,
> I extract it's url as data. The data comes in the form of <<data url
> hexstuff>>.
>
> How would you chop off the leading "<<data url " and trailing ">>"? so
> Smile's Hexa to String can be applied?
>
> According to ASLG, data can only be coerced into a single item list, if
> you know how to make it into a string, I'm all ears and SMILEs ;>

set d to +data url 010101;

Data2String(d)

-- > {datatype:"url ", datahexa:"010101"}


on Data2String(d)
try
err of d
on error err
-- "Can't get err of +data url ... 010101;."

set datatype to {datatype:text 24 thru 27 of err}
set datahexa to {datahexa:text 28 thru -3 of err}

return datatype & datahexa
end try
end Data2String


Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden

Hey, check out:
http://home.earthlink.net/~eagrant/


  • Prev by Date: Script Editor 1.6 freezes with latest CarbonLibs
  • Next by Date: Quark & Grouping Boxes
  • Previous by thread: Re: Hex URL to string
  • Next by thread: Re: Scripting Personal Web Sharing
  • Index(es):
    • Date
    • Thread