• 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: Saving handler-defined scripts without source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving handler-defined scripts without source code


  • Subject: Re: Saving handler-defined scripts without source code
  • From: Andy Wylie <email@hidden>
  • Date: Tue, 14 Jan 2003 00:07:37 +1300

on Sat, 11 Jan 2003 17:05:28 +1100 Steven Angier wrote:

>> In my example the file bloat is not due to the handler-contained
>>script's parent scope being stored, but to the actual source code of the
>>handler-contained script being stored. I guess that the compiler doesn't dig
>>more than one level down when generating run-only code.
>>

Perhaps this what you're looking for Steve, load from a blank script file
and set something to an undefined variable...

set pStr to (choose file) as string
set scpt to load script alias pStr
set scpt's foo to "anything"
store script scpt in alias pStr replacing yes
(load script alias pStr)'s foo

_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Saving handler-defined scripts without source code
      • From: Steven Angier <email@hidden>
  • Prev by Date: RE: excel: how to get rid of startup message?
  • Next by Date: Re: OSX script to change/copy file icon ?
  • Previous by thread: Re: Saving handler-defined scripts without source code
  • Next by thread: Re: Saving handler-defined scripts without source code
  • Index(es):
    • Date
    • Thread