• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Save changes to script" when it terminates?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: "Save changes to script" when it terminates?
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: "Save changes to script" when it terminates? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Adding a category to an item in Entourage
  • Next by Date: Re: i's becoming a's
  • Previous by thread: Re: "Save changes to script" when it terminates?
  • Next by thread: Re: "Save changes to script" when it terminates?
  • Index(es):
    • Date
    • Thread