Search the web
Sign In
New User? Sign Up
jsosa · JavaScript OSA-Talk
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
AEDesc to AEPrint string   Message List  
Reply | Forward Message #496 of 529 |
Re: [jsosa] AEDesc to AEPrint string

>> So I was thinking that .toString() should be kept as is for
>> simple debugging purposes, but that calling .toSource()
>> on an AEDesc should return a complete hex dump.

>The problem here is that I'm using the system's AEPrint calls,
>and somewhere along the way Apple decided to truncate long
>hex strings (happens with aliases as well). I've filed a bug with
>Apple on this, but its pretty low on their priority list.

Thanks, Mark.

I've been reading into this. It looks like when Apple "took over"
the "AEGizmo" code stuff that they never intended for their
version to produce "reversable" AEPrint strings that could
subsequently be used for building.

It is interesting that I found this in the OSX 10.1 tech note
(tn2029):

Hex data output by AEPrintDescToHandle was being
truncated at 32 bytes. This limit has been removed - hex
data is no longer truncated (r. 2672759).

It kind of sounds like they "fixed" it once, then "broke" it
again later. ;-)


>I think its a combination of things:

>1) chicken-and-eng: no easy way to distribute scripts that use JSOSA
>requires the user to install JSOSA

Yeah. Probably a silly and overly-ambitious question, but could there
ever be a way for a script application-bundle to carry and use the
JSOSA component in the same way that they can contain their own
scripting additions?

Of course, this brings up the issue of whether or not you would
allow third-party distribution. I've been working on a "first run"
applet system that would test for and install JSOSA before running
a JSOSA script, but it's buggy and no doubt ill-concieved.

>2) JSOSA isn't enough better than AS to justify the effort - AS works for
>most people

It really really really really really really is better. :)

Again, thank you for creating it. :)

I'm working on some projects, such as Clippings files listing common
JavaScript snippits, etc. As soon as I can get organized, I'll starting
posting some of my stuff to my new website, and I'll drop a note
here.

-- Arthur




Thu Feb 23, 2006 8:15 pm

admiralnovia
Offline Offline
Send Email Send Email

Forward
Message #496 of 529 |
Expand Messages Author Sort by Date

Hi, Mark. When the .toString() or .toSource() method is used on an AEDesc value, the string data returned is truncated with an ellipsis, as in: ...
Arthur Knapp
admiralnovia
Offline Send Email
Feb 16, 2006
5:16 pm

Hi, ... The problem here is that I'm using the system's AEPrint calls, and somewhere along the way Apple decided to truncate long hex strings (happens with ...
Mark Alldritt
malldritt2000
Offline Send Email
Feb 23, 2006
5:50 pm

... Thanks, Mark. I've been reading into this. It looks like when Apple "took over" the "AEGizmo" code stuff that they never intended for their version to...
Arthur Knapp
admiralnovia
Offline Send Email
Feb 23, 2006
8:15 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help