Re: Reco Label Stringer
Re: Reco Label Stringer
- Subject: Re: Reco Label Stringer
- From: Andy Wylie <email@hidden>
- Date: Sat, 27 Apr 2002 04:52:20 +1200
on 26/4/02 8:35 AM +1200: has wrote:
>
If you look back to last Nov/Dec in the list archives, there was a couple
>
of threads back then that went into this stuff:
>
>
Dynamic Records?? (or other alternatives)
>
interesting discovery (trying to get record labels as strings)
>
among the 'orrid 'acks I found...
on 3/12/01 has wrote:
>
>> try this:
>
>>
>
>> {{a:1}} as string
>
>>
>
>> and the results are _much_ more interesting. Try it and see.
on 3/12/01 Chris Nebel replied:
>
>
>
> This is a known bug in AppleScript -- what you're seeing is the raw contents
>
> of an Apple Event Manager record. I think this "works" on pretty much all
>
> versions of AppleScript, but I'm sure we'll break it eventually, so don't get
>
> too attached to it.
on 4/12/01 Christopher Nebel wrote:
>
>
>
> If it's any consolation, I'll try to not fix the bug before introducing
>
> a sane way to do the same thing. I understand the desire, but the
>
> current method gives me the willies.
on 6/12/01 Emmanuel wrote:
>
>> Personally, I still avoid having a string displayed when it's likely to
>
>> contain ASCII 0's.
on 7/12/01 Christopher Nebel replied:
>
>
This should have been fixed in AppleScript 1.6, if I'm reading the bug
>
report right. The problem was that it would expand the '\0' to a string
>
from a random address. Sometimes you'd get lucky, and it would start
>
with a zero byte so everything worked, but more often you'd get garbage
>
or a crash.
Smile 1.8.4 won't display ascii 0, just the backslash confusing as that may
be it beats a crash. OMM (OS 8.6 AS 1.3.7) several of the snippets in the
thread crashed Smile and anything using <<class usrf>> = error -1728
No wonder the collective yawn, I hadn't read those as my computer was broken
back then. I found those in the unread AS users backlog from that period
which now has only 971 interesting looking messages for a rainy day.
I discovered '{{a:1}} as string' for myself playing around after reading
Tim's wish list.
on 26/4/02 8:35 AM +1200: has wrote:
>
I confess I've kinda gone off this messing-with-records stuff after being
>
one of the original perpetrators preferring to use a script object-based
>
solution (associativeArrayLib [1]) instead - decent performance, easily
>
extendable and Certified 100% Non-Hacky (TM).
>
Is that your 'hashLib ' updated? I looked at that earlier and it made more
sense this time. Back at the start of the 'interesting discovery' you
said...
>
> the getRecordLabels() handler, used by convertRecordToList(),
>
> fairly stinks for speed.
has that changed? Some of your comments in 'that thread' contrast sharply
with "Certified 100% Non-Hacky". It exploits a bug doesn't it?
>
[1] Itself an extension of Arthur's original TID-based pseudo-hash script.
>
He da man.
>
I couldn't find anything I recognised as Arthur's 'TID-based pseudo-hash
script' though you mentioned posting it once. His string > ASCII numberfier
I don't understand (but want one} or your original (crashed Smile} which
inspired it.
_____________________________ Andy
_______________________________________________
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.