Re: Scope/Context issue?
Re: Scope/Context issue?
- Subject: Re: Scope/Context issue?
- From: Kurt Klamp <email@hidden>
- Date: Tue, 5 Feb 2008 09:35:15 +0100
Am 05.02.2008 um 08:21 schrieb Skeeve:
ScriptA in ScriptB is just a script object hold by a variable
(here a local too).
I you want script b to be stored with its current state, use a
store script a in file "PathToScriptA"
when finishing ScriptB
Did you test it?
yes
Did it work?
yes
Which Version of OS X/AppleScript? On 10.4.11 it does not work.
here OS 10.4.11
Neither with an on quit handler nor if I store a directly after
running it.
try this
-- ScriptB.app
property a : 0
property pathtoA : "PathToScriptA"
on run
set a to load script file pathtoA
repeat 3 times
tell a to run
end repeat
store script a in file pathtoA
end run
-- -- -- -- -- -- -- --
HTH,
Kurt
_______________________________________________
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