Deutsch   English   Français   Italiano  
<ttb11g$29jmo$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Brice <truc@bidule.fr.invalid>
Newsgroups: fr.comp.sys.mac.programmation
Subject: Re: [Resolu]Re: Script shell ?
Date: Fri, 24 Feb 2023 18:52:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 54
Archive: no
Message-ID: <ttb11g$29jmo$2@dont-email.me>
References: <tstfem$e6eb$1@dont-email.me> <tsvavr$n240$1@dont-email.me>
 <tsvbe1$n3p2$1@dont-email.me> <tsvdkq$nb6v$1@dont-email.me>
 <tsvk36$jrc$1@shakotay.alphanet.ch> <tt0fl5$rbe5$1@dont-email.me>
 <tt1ute$13374$1@dont-email.me> <tt1vuc$13718$1@dont-email.me>
 <tt27op$14327$2@dont-email.me> <tt2b1d$14cra$1@dont-email.me>
 <tt2guk$158ad$1@dont-email.me> <tt2j9f$15fm8$1@dont-email.me>
 <tt2mro$15ro0$1@dont-email.me> <tt35fs$17c67$1@dont-email.me>
 <tt3agg$17r7i$1@dont-email.me> <tt4pdt$1g0k6$1@dont-email.me>
 <tt4slo$1gc19$1@dont-email.me> <tt4t11$1gd2e$1@dont-email.me>
 <tt4tk8$1gf93$1@dont-email.me> <tt51vi$1gvim$1@dont-email.me>
 <tt538g$1h3nc$1@dont-email.me> <tt5934$1hnfn$1@dont-email.me>
 <tt9ut0$261tr$1@dont-email.me> <ttagbp$27rsa$1@dont-email.me>
 <ttak4j$288p0$1@dont-email.me> <ttammc$28h97$1@dont-email.me>
 <ttaor7$28ob7$1@dont-email.me> <ttarjo$291aj$1@dont-email.me>
 <ttavdn$29e89$1@dont-email.me>
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 18:52:32 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c5582866dcefc9493ab4611543646439";
	logging-data="2412248"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+6dLgiOvB6Hb/Wi8XN27vx"
User-Agent: MacCafe/2.10 (4D18)/peaberry (Mac OS X 10.15.7 (19H2026) - iMac17,1)
Cancel-Lock: sha1:TNeCCFsoOuR+bgU4XJWY0S+VBgE= sha256:B+uRihCEqqKyLvZpv0rgG6p5t+VQTWiAcI14pCNu5KQ=
	sha1:ljhyWym5EiXYLrDJXOIoZK1EWpI=
X-No-Archive: yes
In-Reply-To: <ttavdn$29e89$1@dont-email.me>
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: 3900

le 24 février 2023 à 19:24, M.V. nous fait part :


> 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.sh 
>
>> iMac5K:~ 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 

pas taper, pas taper ! :-))
Désolé de ne pas avoir compris, surtout d'avoir lu trop vite et pourtant
c'étai explicite :
> > 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 !

:-(

Cordialement,

-- 
B. Graignic
enlever-bgraig@wanadoo.fr