Liste des Groupes | Revenir à fcsm programmation |
Dans le message <ttarjo$291aj$1@dont-email.me>, Brice a écrit le 24
février 2023 à 18 h 19 :
>
>iMac5K:~ brice$ chmod +x /Library/Application\>
Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh
chmod: Unable to change file mode on /Library/Application
Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh: Operation not
permitted
Le fichier sh doit peut-être être sur le Bureau ou dans un dossier non
spécial.
>iMac5K:~ brice$ do shell script /Library/Application\>
Support/com.bombich.ccc/Scripts/Ejection_Shell-01.shiMac5K:~ brice$ do shell script>
/Users/brice/Desktop/Ejection_Shell-01.sh
Tu as tapé ça dans le Terminal ????
C'est n'importe quoi !!!! ;-)
>
Je t'ai dit, éventuellement, de taper
mais là tu vas rire : tu ouvres un nouveau script>
AppleScript et la commande est :
do shell script "path_to_file"
>
dans un script AppleScript, pas dans le Termainal !!!
>
Pour utiliser le Terminal et voir si ton script est correct, tu ouvres
une fenêtre du Terminal et tu fais glisser le fichier sh dessus puis
Entrée. Si ça ne fonctionne pas, faut aviser suivant l'erreur renvoyée.
>-bash: syntax error near unexpected token `do'>
Rien d'étonnant : le Terminal ne comprend rien à ce que tu lui
demandes !
Les messages affichés proviennent d'usenet.