load script question
load script question
- Subject: load script question
- From: Michelle Steiner <email@hidden>
- Date: Thu, 28 Jun 2001 11:02:52 -0700
so, what am I doing wrong here?
I saved a compiled script in the directory "dora"loaded_script" The
script was just
set x to 10
Here's what I tried, and the results (copied from the event log window,
from another script:
property loaded_script : alias "Dora:set x"
set foo to load script loaded_script
x
>
tell current application
>
load script alias "Dora:set x"
>
--> set x to 10
>
--> The variable x is not defined.
property loaded_script : alias "Dora:set x"
set foo to load script loaded_script
x of foo
>
ell current application
>
load script alias "Dora:set x"
>
--> set x to 10
>
get x
>
--> Can't make some data into the expected type.
property loaded_script : alias "Dora:set x"
set foo to load script loaded_script
tell foo
x
end tell
>
tell current application
>
load script alias "Dora:set x"
>
--> set x to 10
>
--> The variable x is not defined.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------