"The script named doesn't exist" log messages???

Scot XTension at gunsmoke.com
Sat Aug 6 16:47:02 PDT 2005


It seems that at 12:05 PM -0700 on 8/6/05, James Sentman 
<james at sentman.com> wrote:
>  >
>>  on TestSJM(unitName, levelValue)
>>      write log "here"
>>  end TestSJM
>>
>>  execute script TestSJM("abc", 10)
>>
>  > I still get the log message about the script named  doesn't exist.
>
>It's just an applescript problem :) You're calling the "TestSJM" 
>handler, and getting a return from it which is placed in the execute 
>script command, since your TestSJM handler doesn't return anything, 
>it's exactly the same as writing execute script ""
>
>meaning that the last portion of your execute script command:
>    TestSJM( ...) is run when the execute script command is evaluated 
>to get the NAME of a script to run.
>
>What exactly are you trying to do? Do you want that handler called?
>You're going to have to call it from a real global script then.

TestSJM is a stand in for a handler in my Attachment Scripts. What 
I'm really trying to do is call that attachment script, from a global 
script, with a line of code like:

execute script TestSJM("abc", 10) in 20

Perhaps I'm making a syntax error?

TIA,

Scot

-- 
--
<><><><><><><><><> Scot Marburger <><><><> Dublin, California <><><><><><><><>


More information about the XTensionlist mailing list