open URL in web browser
Mischa
mischa at omnislab.com
Tue Mar 31 18:33:33 EDT 2015
Hi Reg,
I'm not a Mac user, so I just use the Apple script approach because it is
said to work. However, when "Launch program ,[mLink]" works on both
platforms, this is even better, thanks!
I just wonder why TL does not provide a native command for opening a web URL
- this is something nearly every application needs, and can't be that
complicated to implement ...
Best greetings
Mischa
---------------------------------------------------
T H E O M N I S L /\ B www.omnislab.com
---------------------------------------------------
-----Ursprüngliche Nachricht-----
Von: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Im Auftrag
von Reg Paling
Gesendet: Dienstag, 31. März 2015 22:44
An: OmnisDev List - English
Betreff: Re: open URL in web browser
Hi Mischa & all,
I had just changed to using "Launch program ,[mLink]" on both Mac and
Win. (See the recent thread on this list).
Is there any reason why the applescript is better on Mac?
Cheers,
Reg
On 1/04/2015 2:49 am, Mischa wrote:
> Hi Brian,
>
> Got this from Stefan and Kelly:
>
> mLink = "http://www.omnislab.com"
>
> On evClick ;; Event Parameters - pRow( Itemreference )
> If sys(6)='N' ;; windows
> Launch program ,[mLink]
> Else If sys(6)='X' ;; mac
> Calculate mScript as con('Open Location "',mLink,'"',chr(13))
> Calculate #F as $runapplescript(mScript,mResult)
> End If
>
> Works great
> Best greetings
> Mischa
> ---------------------------------------------------
> T H E O M N I S L /\ B www.omnislab.com
> ---------------------------------------------------
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list