Lancer un script bash avec apple Script

thomas77400

Membre enregistré
8 Janvier 2017
7
0
44
Bonjour,
je débute avec automator
je souhaite lancer un script install.sh via le terminal grace une application automator

Voici mon code qui ne fonctionne pas, ca ouvre le terminal c'est tout ....

on run {input, parameters}
tell application "Terminal"
activate
do shell script
"bash Users/Thomas/hubiC/*******/install.sh"
end tell
return
input
end run
 
Dernière édition:
j'ai essaye ca mon termianl s'ouvre bien dans mon dossier ou il y a mon fichier install.sh mais j'ai cette erreur
Erreur dans Terminal : bash: install.sh: No such file or directory

on run {input, parameters}

tell application "Terminal"

activate

do script with command "cd /Users/Thomas/hubiC/"

do shell script "bash install.sh"

end tell

end run
 
Merci de ton aide
j'ai trouvé


on run {input, parameters}

tell application "Terminal"

activate

do script with command "cd /Users/Thomas/hubiC/"

do script "bash install.sh" in window 1

end tell

end run
 
Tu aurais pu le faire avec des
do shell script "cd/Users/Thomas/hubiC/"
do shell script "bash install.sh"

sans avoir à ouvrir Terminal