Re: osacompile
Re: osacompile
- Subject: Re: osacompile
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 16 Jun 2008 17:08:23 -0400
Generating code is almost never the right approach even if the
generated script isn't ginormous. What's the point of generating a
script with hard-coded literal data vs just having an unchanging
script that reads the data in from a file or standard input or
something?
On 6/16/08, Christopher Nebel <email@hidden> wrote:
> On Jun 13, 2008, at 11:49 AM, Joshua Whalen wrote:
>
>> I have been have some problems with osacompile failing to compile a
>> script. The length of the script is variable (it's generated on the
>> fly from another program), and the problem seems to occur when the
>> list is larger than usual (in the neighborhood of 650mb in size),
>> which is certainly a bigger script than most.
>>
>> Now, the obvious is "break it into smaller scripts!" but for various
>> reasons, that's undesirable. I'm wondering if anyone knows what the
>> capacity of osacompile is? Would tweaking niceness settings have an
>> impact?
>
> Do I understand correctly that you generated a script whose source
> text is 650 megabytes in size? I suspect you'll run out of address
> space in 32-bit trying to compile that, and depending on the content
> of the script, you might hit some implementation limits of AppleScript.
>
> 650 MB seems, shall we say, excessive for source text. What's forming
> all that text? If it's just data, might it be possible to store it
> outside the script itself? Is AppleScript actually an appropriate
> choice for what you're trying to do?
>
>
> --Chris Nebel
> AppleScript Engineering
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden