• 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
try error oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

try error oddity


  • Subject: try error oddity
  • From: John Delacour <email@hidden>
  • Date: Sat, 26 Jul 2003 22:36:06 +0100
  • Mac-eudora-version: 6.0a28

Can someone explain why I get these results? I would not expect a and b to be undefined if there is no error but on;y redefined if there is. Is that an illogical expectation?


set {a, b} to words of "OK OK"
try
1 + 1
on error a
end try
try
1 + 1
on error b
end try
{a, b}
--> The variable a is not defined.



set {a, b} to words of "OK OK"
try
try
1 + 1
on error a
end try
try
1 + 1
on error b
end try
end try
--> 2
_______________________________________________
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: try error oddity
      • From: Rick Bargerhuff alias cougar <email@hidden>
  • Prev by Date: Re: Sorting A List - Need Help
  • Next by Date: (no subject)
  • Previous by thread: Re: Sorting A List - Need Help
  • Next by thread: Re: try error oddity
  • Index(es):
    • Date
    • Thread