Re: Hex URL to string
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/