Re: "Save changes to script" when it terminates?
Re: "Save changes to script" when it terminates?
- Subject: Re: "Save changes to script" when it terminates?
- From: Chap Harrison <email@hidden>
- Date: Fri, 12 Mar 2004 16:53:52 -0600
On Mar 11, 2004, at 6:30 PM, Paul Berkowitz wrote:
Your top-level variables, which are global by default and saved. If you
explicitly declare them all as local at the top of the script, you
should
not have this problem.
Is there a way to declare variables so that they can be seen from a
handler, yet are not going to cause the script to try and save itself
after each run?
In my case I'm setting a variable to the pathname to the script (which
shouldn't be bound until runtime). It's referenced by many handlers
within the script.
Here's an outline ... 'woof' should be set at runtime and be available
to handlers.
-- top of file --
run myScript
script myScript
foo()
on foo()
display dialog woof
end foo
end myScript
-- end of file --
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.