Voilà j'ai un contenu dans le presse papier et je voudrais insérer ce contenu dans une commande terminal.
J'utilise Automator, voici ce que j'ai pour le moment :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
on run {input, parameters}
	set leContenuDuPressePapier to the clipboard as string
	tell application "Terminal"
		activate
		do script with command "wc -w {name:leContenuDuPressePapier}"
 
		return input
	end tell
end run
Evidemment ca ne marche pas, la variable n'est pas reconnue...