• 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: AppleScript-Users Digest, Vol 3, Issue 652
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 3, Issue 652


  • Subject: Re: AppleScript-Users Digest, Vol 3, Issue 652
  • From: "J. Stewart" <email@hidden>
  • Date: Fri, 29 Dec 2006 06:39:38 -0500

On 12/28/06 at -0800 Craig Hoyt said this

>This is a followup to Malcoms reply to my questions...
>
>I just tested and your solution and it is working perfectly. I
>modified it slightly as I wanted the new page to open in the existing
>window. I just removed the line < make new document at beginning of
>documents >. This worked great! I have it working where the user can
>specify the browser and the URL.
>
>As for the other problem (ignoring errors), I still have problems
>here...
>
>In the above question (opening a URL in a browser) - if the user
>chooses FireFox and FireFox does not exist on that computer a dialog
>is presented requesting the user 'Find' the application. I want to
>suppress this dialog. Is this possible? Try-End Try doesn't seem to
>work. Is there a more direct way to suppress ANY and ALL errors.


There are 2 scripts below each reacts differently to the error. Run them both and note the changes to the second script. This should give you what you want.


--> Cut <--
try -- this will display an alert
	error number 1
	on error errMsg number errNum
	display alert ("Error # " & errNum) message errMsg buttons {"Cancel"} giving up after 5
end try
--> Cut <--

--> Cut <--
try -- this will NOT display an alert
	error number 1
	--  on error errMsg number errNum -- on error line commented out
	display alert ("Error # " & errNum) message errMsg buttons {"Cancel"} giving up after 5
end try
--> Cut <--

JBS
--
Hard work pays off in the future. Laziness pays off now.
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: AppleScript-Users Digest, Vol 3, Issue 652 (From: Craig Hoyt <email@hidden>)

  • Prev by Date: Re: Quirks of Annotate script
  • Next by Date: Re: file systems burned by drutil
  • Previous by thread: Re: AppleScript-Users Digest, Vol 3, Issue 652
  • Next by thread: Quirks of Annotate script
  • Index(es):
    • Date
    • Thread