Re: FADE DEAD
Re: FADE DEAD
- Subject: Re: FADE DEAD
- From: has <email@hidden>
- Date: Fri, 15 Mar 2002 00:04:10 +0000
Jon Pugh wrote:
>
prop p : fromHex( "FADEDEAD")
>
>
-- it won't compile, but it does run, that's why it won't compile
>
>
on fromHex(hStr)
[...]
>
end fromHex
Ahh, sorry to correct you here Jon:). Your script compiles fine... as long
as you put the handler *before* the property, not after it.
Useful technique too, if you want to initialise a property's contents at
compile-time. For example, if you need a property containing a list of all
ASCII characters you can't type control codes in the ASCII 0-31 range, so
you can't enter the string directly. Instead you have to write a handler
that builds the list for you, then call it from the property. But you must
remember to put the handler before the property, or it won't work.
has
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.