• 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: Script Editor freaks out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Editor freaks out


  • Subject: Re: Script Editor freaks out
  • From: has <email@hidden>
  • Date: Fri, 18 Jan 2008 01:53:35 +0000

On 17 Jan 2008, at 23:58, Amandeep Singh wrote:

Ok, so we have a SDK in multiple languages. That SDK is actually
described in XML, and we generate code for multiple languages at compile
time. We use "Velocity" templates to generate that code.


And now we need to add support for AS, which is almost done except for
this issue.

Does that explanation help?

A little; it might help more to see some example output, but I can understand if there's a reason you want to keep that private. Whatever it is, at 400KB of source code it's either hugely complex (at least by AppleScript standards) or there's lots of repetition. If it's the former then you may have to consider more radical measures such as cutting functionality to reduce size. If it's the latter then you'll need to see if you can factor out at least some repetition.


Given that AS isn't exactly the most industrial strength or scalable of languages (being originally written for the kinds of boxen whose entire OS probably ran in less space), even if you do manage to get it compiled and running you may find yourself running into other problems downstream. e.g. I've had AS 1.8 throw up various overflow errors when serialising compiled scripts for saving to disk; I dunno if this has been improved in more recent versions or not. If you really have to push AS to the edge, I'd suggest asking Mr Nebel which areas are liable to fail first so you know what warning signs to look for. Although personally I'd just say "don't do that".

One other option might be to produce your AS SDK in the form of a scriptable FBA or osax, thereby avoiding having to deal directly with AS at all.

HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
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: 
 >scrpting Script Editor (save as script) (From: "Yvon Thoraval" <email@hidden>)
 >Re: scrpting Script Editor (save as script) (From: Luther Fuller <email@hidden>)
 >Re: scrpting Script Editor (save as script) (From: "Mark J. Reed" <email@hidden>)
 >Re: scrpting Script Editor (save as script) (From: Luther Fuller <email@hidden>)
 >Using script bundles (From: "Amandeep Singh" <email@hidden>)
 >Re: Using script bundles (From: Jon Pugh <email@hidden>)
 >Script Editor freaks out (From: "Amandeep Singh" <email@hidden>)
 >Re: Script Editor freaks out (From: has <email@hidden>)
 >RE: Script Editor freaks out (From: "Amandeep Singh" <email@hidden>)

  • Prev by Date: RE: Script Editor freaks out
  • Next by Date: Re: Change Computer name via Applescript
  • Previous by thread: Re: Script Editor freaks out
  • Next by thread: Re: scrpting Script Editor (save as script)
  • Index(es):
    • Date
    • Thread