• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: osacompile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >osacompile (From: Joshua Whalen <email@hidden>)
 >Re: osacompile (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Get name of desktop image. Is this a bug?
  • Next by Date: Re: Get name of desktop image. Is this a bug?
  • Previous by thread: Re: osacompile
  • Next by thread: more osacompile
  • Index(es):
    • Date
    • Thread