Re: compiled scripts
Re: compiled scripts
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