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


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

Re: Script shell ?

From Brice <truc@bidule.fr.invalid>
Newsgroups fr.comp.sys.mac.programmation
Subject Re: Script shell ?
Date 2023-02-20 08:28 +0000
Organization A noiseless patient Spider
Message-ID <tsvavr$n240$1@dont-email.me> (permalink)
References <tstfem$e6eb$1@dont-email.me> <tstjpa$bns$1@shakotay.alphanet.ch>

Show all headers | View raw


le 19 février 2023 à 17:46, Benoît L. nous fait part :


> Avec enthousiasme, le 19 février 2023 à 16:32, Brice écrivit :
>
>
>> Salutatous,
>>
>> je voudrais utiliser un script en fin d'exécution d'une tâche de Carbon
>> Copy Cloner.
>> Sur les conseils de Michel, j'ai fait un Applescript :
>> ______
>> set volume_list to {disk_01, disk_03, disk_04, disk_05, disk_02,
>> disk_02a}
>> repeat with volume_name in volume_list
>>   try
>>     do shell script "diskutil umount " & quoted form of volume_name
>>   on error
>>     try
>>       do shell script "diskutil umount force " & quoted form of
>> volume_name
>>     end try
>>   end try
>> end repeat
>> _________
>> Aucun problème pour l'utiliser en applications, ça marche Ni-Cr.
>> CCC m'indique qu'il ne peut l'utiliser, pourtant n'y a t'il pas des
>> commandes shell ?
>
> — Extrait du site CCC
> AppleScripts are not supported
> You cannot specify an AppleScript as a pre or post clone script, CCC
> currently only supports running shell scripts.
>
> — Sinon, pourquoi ne pas demander à CCC de le faire :
> Destination volume options
> If you would like CCC to unmount your destination volume at the end of
> the backup task, choose Unmount the destination volume from the
> Destination volume management menu. If your destination is a folder, the
> text will be Unmount the underlying volume. If the destination is a disk
> image, CCC always unmounts the disk image volume, so this setting refers
> to the underlying physical volume upon which the disk image resides.

parce que la série des tâches mélange disque externe toujours connectés
et disque externe allumés quand les tâches se lancent l'une après l'autre.
Et puis je trouvais cela plus joli.

Cordialement,

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

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


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