[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Scripts > 32 KB and Droplets



Hi,

I've got an old question to revisit regarding Droplets.  I've looked back over
the last couple of years of messages on this list, but didn't see a definitive
solution (perhaps I simply missed it, but...)

I am doing all the development using MacPerl on a rather large script which will
ultimately be used in a cross-platform environment.  The script itself has
exceeded the magic 32 KB in size.  Not a problem as I use BBEdit 5.11 with the
MacPerl integration, and have an AppleScript to build the Droplet when I am
feeling too lazy to "export to droplet" from BBEdit.

Unfortunately, I am now unable to create a Droplet using either my helper
AppleScript, or using BBEdit's "Export to...Droplet".

After some experimentation, I have found if I strip out comment lines, I can
get the script down below the magic 32KB and BBEdit will now save the Droplet.
This works, but makes debug more complicated and there is something about
deleting comments from code that really gets under my skin.

Using ResEdit, I can manipulate the contents of the "!" (ID=128) entry in the
TEXT resource of a Droplet where the script itself has been copied.  But I can
see that the 32KB limit exists for this resource (not a big surprise).

So my question is whether there is mechanism that allows MacPerl (5.2.0r4) to
use more than this single entry ("!") in the TEXT resource to save a script,
which effectively allows scripts > 32KB to be saved as Droplets.

I know there are several workarounds (ie: split into smaller scripts; use an
AppleScript front-end; standalone script parse a list of file, etc.), but none
of them are particularly desireable at this point.

Any suggestions?  

Anybody care to take this as a challenge to build big Droplets?


Thanks!

Regards,

Taylor

-- 
    +------------------------------------------------------------------+
    |   Taylor Leaming                 <mailto:macbert@prismnet.com>   |
    |   Austin, Texas                                                  |
    +------------------------------------------------------------------+

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org