• 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: Test for existence of a variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test for existence of a variable?


  • Subject: Re: Test for existence of a variable?
  • From: Adam Wuellner <email@hidden>
  • Date: Thu, 11 Aug 2005 09:36:09 -0500

On 8/11/05, Mark J. Reed <email@hidden> wrote:
> any sort of exception-catching mechanism to intercept the
> blowup before it happens?

>  global _
>  set saved_ to _
>  (* do stuff with _ *)
>  set _ to saved_


global _

set gotItSaved to false
try
	set saved_ to _
	set gotItSaved to true
end try
(* do something with _ *)
if gotItSaved then set _ to saved_
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Test for existence of a variable? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Test for existence of a variable?
  • Next by Date: Re: Test for existence of a variable?
  • Previous by thread: Re: Test for existence of a variable?
  • Next by thread: Re: Test for existence of a variable?
  • Index(es):
    • Date
    • Thread