open URL in web browser

Reg Paling reg.paling at lokanet.com
Tue Mar 31 16:44:12 EDT 2015


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



More information about the omnisdev-en mailing list