• 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: "email@hidden" <email@hidden>
  • Date: Wed, 22 Dec 2010 09:20:27 -0800

Compiling does not resolve or sync posix paths. The compiler sees a posix path as a text string and all it does is make sure there is an opening quote and closing quote.

At what point does the script ask for tvpi2crontab? Is it before the first command in the run handler? Inside the run Handler? or in the Open handler?

No you should not abandon all hope of distributing a standalone.  You should develop a "bulletproof" method of making sure your script can find what it needs at runtime.

I find aliases to be more reliable than posix paths, so I would try something like this:

property tvpi2crontabP : alias "DVR:scripts:tvpi2crontab.app"
property tvpi2crontab : (load script tvpi2crontabP)

ES

On Dec 22, 2010, at 8:59am, tom wible wrote:

> On Dec 22, 2010, at 11:45 AM, email@hidden wrote:
>
>> Because "/DVR/scripts/tvpi2crontab.app" is not a full path. AppleScript does not assume a current directory.
>
> absolute posix path, no curr dir needed...
>
>> 'Compiled,' in appleScript, means the terms of the script have been synced with the underpinning appleEvent code
>
> so why does it need to resync @ runtime? it looks like everything it needs is in the compiled script...or should i abandon all hope of distributing any stand-alone script based on included code w/o also distributing everything?
>

 _______________________________________________
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

  • Follow-Ups:
    • Re: compiled scripts
      • From: tom wible <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>)

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