• 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: compiled scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiled scripts


  • Subject: Re: compiled scripts
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 23 Dec 2010 10:43:22 +0100

Le 23 déc. 2010 à 03:09, tom wible a écrit :

>> your script can find what it needs at runtime
>
> sorry 4 the misunderstanding:  a/s is asking for the include because i didn't distribute it...
>
> what i'm objecting to is the apparent duplication: the included code seems to be compiled into the including script (judging from the file size) but the included file also has 2 b found @ runtime?
>
> then what's the bloat doing?

Hello Tom,

Unfortunately, as usual, you tend to ask us to guess; therefore, after having created writeable folder /DVR/scripts, I saved this very bare script:

	on Prompt(D)
		display dialog "Hey!" giving up after D
	end Prompt

as /DVR/scripts/Hey.app, then saved this one:

	property P : "/DVR/scripts/Hey.app"
	property S : load script POSIX file P

	on DoIt(a)
		S's Prompt(a)
	end DoIt

	set D to current date
	DoIt(1)

as /DVR/scripts/main.app.

Superficially, this looks very similar to what you shared with us.

Here, after having ensured that main.app has correctly run once, I may move it all around (even across filesystems or on another box), copy it, delete the original, delete Hey.app, delete folder /DVR and its contents... and still have a fully working main.app.

No need to ever locate Hey.app.

The real question thus seems to be: what makes yours tvpi2email.app/tvpi2crontab.app pair differ from the above main.app/Hey.app pair?

HTH,
Axel


 _______________________________________________
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: 
 >(no subject) (From: tom wible <email@hidden>)
 >Re: (no subject) (From: "email@hidden" <email@hidden>)
 >Re: compiled scripts (From: tom wible <email@hidden>)
 >Re: compiled scripts (From: "email@hidden" <email@hidden>)
 >Re: compiled scripts (From: tom wible <email@hidden>)

  • Prev by Date: Re: compiled scripts
  • Next by Date: Re: compiled scripts
  • Previous by thread: Re: compiled scripts
  • Next by thread: Re: compiled scripts
  • Index(es):
    • Date
    • Thread