Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.sys.mac.programmation > #2485

Re: [Resolu]Re: Script shell ?

From Brice <truc@bidule.fr.invalid>
Newsgroups fr.comp.sys.mac.programmation
Subject Re: [Resolu]Re: Script shell ?
Date 2023-02-24 17:19 +0000
Organization A noiseless patient Spider
Message-ID <ttarjo$291aj$1@dont-email.me> (permalink)
References (23 earlier) <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>

Show all headers | View raw


le 24 février 2023 à 17:32, M.V. a raconté :


> Dans le message <ttammc$28h97$1@dont-email.me>, 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

Back to fr.comp.sys.mac.programmation | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-19 15:32 +0000
  Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-19 16:46 +0000
    Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-20 08:28 +0000
      Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-20 08:36 +0000
        Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-20 09:14 +0000
          Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-20 09:59 +0000
          Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-20 10:21 +0000
          Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-20 11:04 +0000
            Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-20 18:54 +0000
              Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-20 21:17 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 10:52 +0000
                Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-21 21:20 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 10:05 +0000
                Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-22 20:18 +0000
              Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 08:21 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 08:32 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 08:38 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 10:52 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 11:47 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 13:28 +0000
                Re: Script shell ? "M.V." <mv@gmail.invalid> - 2023-02-21 14:08 +0000
                Re: Script shell ? "M.V." <mv@gmail.invalid> - 2023-02-21 15:09 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 19:19 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 20:45 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 10:05 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 11:01 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 11:07 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 11:17 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 12:31 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 12:53 +0000
                [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 14:33 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 09:09 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 14:07 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.invalid> - 2023-02-24 15:12 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 15:55 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 16:32 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 17:19 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 17:52 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 18:24 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 18:52 +0000
                Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 18:24 +0000
                Re: [Resolu]Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-24 18:52 +0000
                [HS] Re: [Resolu]Re: Script shell ? "Benoît L." <benoit@leraillez.com.invalid> - 2023-02-24 16:54 +0000
                Re: [HS] Re: [Resolu]Re: Script shell ? Richard Hachel <r.hachel@frite.fr> - 2023-02-24 17:03 +0000
                Re: [HS] Re: [Resolu]Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-24 18:27 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-22 11:03 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 11:22 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-22 08:43 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 09:07 +0000
                Re: Script shell ? "M.V." <mv@gmail.com.invalid> - 2023-02-21 09:09 +0000
                Re: Script shell ? Brice <truc@bidule.fr.invalid> - 2023-02-21 10:52 +0000

csiph-web