How do I set script property in another script?
How do I set script property in another script?
- Subject: How do I set script property in another script?
- From: "John Jones" <email@hidden>
- Date: Thu, 02 Aug 2001 18:12:14 -0400
Hello all,
This has me stumped and none of the references I can find
has cleared it up. I've got "Script A" that is saved as an
application with a property:
property myNumber : "5"
"Script B" loads "Script A" into a variable and can get the
propety just fine:
load script "Floyd:Desktop Folder:test app"
set MyObject to result
get myNumber of MyObject
But when I try to set the property to a new value either
by...
set myNumber of MyObject to 20
or by
tell MyObject
set myNumber to 20
end tell
It sets the property in the MyObject script object, and not
in the original. (I at least understand that this is a copy
of the original!) So how can I actually set the value in the
original?
Thanks,
John J.