2016-03-28 1 views

Répondre

2

Dans OSX (comme vous semble être, puisque vous cherché AppleScript), avec OSProcess, faire quelque chose comme:

OSProcess command: 'open http://stackoverflow.com/questions/36268801/from-within-pharo-how-do-i-open-a-chrome-web-browser-on-a-url'. 

Il ouvrira le navigateur par défaut.

Maintenant, si vous voulez ouvrir Chrome en particulier (et pas seulement « le navigateur »), vous devez faire quelque chose comme ceci:

OSProcess command: '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome http://stackoverflow.com/questions/36268801/from-within-pharo-how-do-i-open-a-chrome-web-browser-on-a-url'. 
+0

fonctionne comme un charme !! J'ai d'abord dû charger OSProcess dans mon image, comme décrit ici: http://pharo.gemtalksystems.com/book/PharoTools/OSProcess/. – Stan