Open Url in Asoc

Hi,

What’s the equivalent of AS

open location “http://www.google.com

using Asoc?

Stefano - Ame

current application's NSWorkspace's sharedWorkspace()'s openURL:"http://www.google.com"

Hi Stefan, Thanks for the input.

I get error like:

2014-06-27 12:21:55.364 Verifica Documenti[1572:303] -[__NSCFString scheme]: unrecognized selector sent to instance 0x6180000852d0
2014-06-27 12:21:55.368 Verifica Documenti[1572:303] *** -[AppDelegate visualizzaTabellaProfili:]: -[__NSCFString scheme]: unrecognized selector sent to instance 0x6180000852d0 (error -10000)

Stefano

scusami (excuse me), the URL must be an instance of NSURL


set googleURL to current application's |NSURL|'s URLWithString:"http://www.google.com"
current application's NSWorkspace's sharedWorkspace()'s openURL:googleURL

Thanks Stefan :wink:

Stefano