• 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: check alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check alias


  • Subject: Re: check alias
  • From: Rounak Jain <email@hidden>
  • Date: Tue, 29 Sep 2009 20:44:36 +0530

Wait!!! I just tested:
set ifolder to "path:to:"
try
ifolder as alias
try
ifolder as alias
on error e
beep 2
end try


on error e
beep 3
end try

and I found that what you said is correct. But my problem is that i want one of the "on error"  before the last on error to do something. For example, in the above script, I want to hear two beeps, not three. How to do it?
On Sep 29, 2009, at 5:57 PM, Brian Christmas wrote:

G'day Rounak

When a try/end try statement generates an error, the script goes to the outer or last 'on error' line

If you want to suppress errors in a try statement, try the following


try ---1
ifile as alias

try --2
------.
on error e
--do nothing
end try

try --3
----
on error e
--do nothing
end try
--------
on error e
--do this

end try

Regards

Santa



 _______________________________________________
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

  • Follow-Ups:
    • Re: check alias
      • From: Doug Tallman <email@hidden>
    • Re: check alias
      • From: Michelle Steiner <email@hidden>
References: 
 >check alias (From: Rounak Jain <email@hidden>)
 >Re: check alias (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: check alias
  • Next by Date: Re: Detecting when URL has been loaded in Safari???
  • Previous by thread: Re: check alias
  • Next by thread: Re: check alias
  • Index(es):
    • Date
    • Thread