non, j'ai sauvegardé ton message das un fichier, n'ai gardé que la commande javascript:...
ai éliminé les retours chariots
et juste ajouté devant open -a...
remarques, un simple :
open -a Firefox.app about:plugins
donne bien le focus à Firefox mais n'affiche rien...
mais avec :
open -a WebKit.app 'javascript:alert("toto")'
j'ai un msg d'erreur :
No such file : /Users/yvon/javascript:alert("toto")
il manque donc au moins une option à ma commande en écrivant :
echo 'javascript:alert("toto")' | open -a WebKit.app -f
ça n'exécute pas le script mais l'affiche comme txt.
idem avec Firefox. -- Père Noël
ASM
remarques, un simple :
open -a Firefox.app about:plugins
Chez moi : nada
donne bien le focus à Firefox mais n'affiche rien...
ce qui me semble normal puisque : (cite) Open opens files from a shell. By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL. (/cite)
et donc ceci fonctionne : open -a Firefox.app 'http://stephane.moriaux.perso.orange.fr/contact'
-- Stephane Moriaux et son (moins) vieux Mac déjà dépassé
remarques, un simple :
open -a Firefox.app about:plugins
Chez moi : nada
donne bien le focus à Firefox mais n'affiche rien...
ce qui me semble normal puisque :
(cite)
Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.
(/cite)
et donc ceci fonctionne :
open -a Firefox.app 'http://stephane.moriaux.perso.orange.fr/contact'
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
donne bien le focus à Firefox mais n'affiche rien...
ce qui me semble normal puisque : (cite) Open opens files from a shell. By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL. (/cite)
et donc ceci fonctionne : open -a Firefox.app 'http://stephane.moriaux.perso.orange.fr/contact'
-- Stephane Moriaux et son (moins) vieux Mac déjà dépassé
pere.noel
ASM wrote:
(cite) Open opens files from a shell. By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL. (/cite)
oui, mais j'espérais contourner le pb avec l'option -f...
(cite)
Open opens files from a shell.
By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL.
(/cite)
oui, mais j'espérais contourner le pb avec l'option -f...
(cite) Open opens files from a shell. By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL. (/cite)
oui, mais j'espérais contourner le pb avec l'option -f...
-- Père Noël
Pierre Goiffon
Père Noël wrote:
astuce bébête pour visualiser la source d'un script js: