Path: ...!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Brice Newsgroups: fr.comp.sys.mac.programmation Subject: Re: [Resolu]Re: Script shell ? Date: Fri, 24 Feb 2023 17:19:53 -0000 (UTC) Organization: A noiseless patient Spider Lines: 48 Archive: no Message-ID: References: Reply-To: bgraig@wanadoo.fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 24 Feb 2023 17:19:53 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="c5582866dcefc9493ab4611543646439"; logging-data="2393427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NGNCNMRB8sodL8U0TVG4u" User-Agent: MacCafe/2.10 (4D18)/peaberry (Mac OS X 10.15.7 (19H2026) - iMac17,1) Cancel-Lock: sha1:2TaexcMs6h2ZnKjJeuH3hUOdRUw= sha256:ZBJo50Lv1hIImojykCjDah+W3pGTo1S1yCk2/+pixds= sha1:eeIow/VygR43mxefeWmPhezYXQs= X-No-Archive: yes In-Reply-To: X-Face: :}ywyZ-%b)Cc*k}3bKB?p$gUzV}e5#AO\tRN\v,6_;8/K3TFt_yh"\4oc8bQk'dG'WnBdOL fNzD_5*MM_gX^VL}3~HaA>"~aEIVcJoVA;mz<4u066`=v3%7Q^.JNz.Rb#S!:m+@G|!*u Q{v485Tnag<~;'j$ Bytes: 3627 le 24 février 2023 à 17:32, M.V. a raconté : > Dans le message , Brice a écrit le 24 > février 2023 à 16 h 55 : > >> Pour ma gouverne, comment le lances-tu ? > > J'avais cru comprendre que tu l'avais testé ? directement dans CCC > > Tu fais glisser le fichier sh sur une fenêtre du Terminal et tu appuies > sur Entrée… ou bien… mais là tu vas rire : tu ouvres un nouveau script > AppleScript et la commande est : > > do shell script "path_to_file" > Bon j'ai repris et voici ce qu'il y a sur le Terminal : 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 iMac5K:~ brice$ do shell script /Library/Application\ Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh -bash: syntax error near unexpected token `do' J'ai transféré le fichier sur le Bureau et repris les exemples : iMac5K:~ brice$ chmod +x /Users/brice/Desktop/Ejection_Shell-01.sh iMac5K:~ brice$ do shell script /Users/brice/Desktop/Ejection_Shell-01.sh -bash: syntax error near unexpected token `do' Si j'écris : open open /Library/Application\ Support/com.bombich.ccc/Scripts/Ejection_Shell-01.sh il ouvre Xcode et affiche le fichier Cordialement, -- B. Graignic enlever-bgraig@wanadoo.fr