Re: AppleScript-Users Digest, Vol 3, Issue 652
Re: AppleScript-Users Digest, Vol 3, Issue 652
- Subject: Re: AppleScript-Users Digest, Vol 3, Issue 652
- From: Doug McNutt <email@hidden>
- Date: Mon, 1 Jan 2007 08:45:02 -0700
At 01:47 +0200 1/1/07, Nir Soffer wrote:
>On Dec 28, 2006, at 21:43, Craig Hoyt wrote:
>
>>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.
>
>The simplest way to solve this problem is using the open command line tool, which can find applications by name.
>
>This will work:
> do shell script "open -a Finder " & quoted form of "/Users/Shared"
That's correct, but. . .
open -a Firefox http://www.macnauchtan.com
on my G4 running 10.3.9 results in opening of the website using Safari. It seems that open, when the target is a URL rather than a filename, doesn't understand the -a option and uses the default browser. No errors are reported.
.
--
--> The greenhouse effect due to water vapor has never been fully understood. Weather forecasting remains irreducibly complex. It is clear that global warming is the act of an Intelligent Designer. <--
_______________________________________________
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