Re: Script shell ?

Liste des GroupesRevenir à fcsm programmation 
Sujet : Re: Script shell ?
De : benoit (at) *nospam* leraillez.com.invalid ("Benoît L.")
Groupes : fr.comp.sys.mac.programmation
Date : 19. Feb 2023, 18:46:35
Autres entêtes
Organisation : C'est celui qui dit qui est
Message-ID : <tstjpa$bns$1@shakotay.alphanet.ch>
References : 1
User-Agent : MacCafe/2.10 (4D18)/peaberry (macOS 13.2.1 (22D68) - MacBookPro14,2)
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.


--
L'écologie est à l'économie ce que l'astrologie est à l'astronomie.


Date Sujet#  Auteur
19 Feb 23 * Script shell ?48Brice
19 Feb 23 `* Re: Script shell ?47"Benoît L."
20 Feb 23  `* Re: Script shell ?46Brice
20 Feb 23   `* Re: Script shell ?45M.V.
20 Feb 23    `* Re: Script shell ?44Brice
20 Feb 23     +- Re: Script shell ?1M.V.
20 Feb 23     +- Re: Script shell ?1M.V.
20 Feb 23     `* Re: Script shell ?41"Benoît L."
20 Feb 23      `* Re: Script shell ?40Brice
20 Feb 23       +* Re: Script shell ?5"Benoît L."
21 Feb 23       i`* Re: Script shell ?4Brice
21 Feb 23       i `* Re: Script shell ?3"Benoît L."
22 Feb 23       i  `* Re: Script shell ?2Brice
22 Feb 23       i   `- Re: Script shell ?1"Benoît L."
21 Feb 23       `* Re: Script shell ?34M.V.
21 Feb 23        +* Re: Script shell ?31M.V.
21 Feb 23        i`* Re: Script shell ?30Brice
21 Feb 23        i `* Re: Script shell ?29M.V.
21 Feb 23        i  `* Re: Script shell ?28Brice
21 Feb 23        i   `* Re: Script shell ?27M.V.
21 Feb 23        i    `* Re: Script shell ?26M.V.
21 Feb 23        i     `* Re: Script shell ?25Brice
21 Feb 23        i      +* Re: Script shell ?23M.V.
22 Feb 23        i      i`* Re: Script shell ?22Brice
22 Feb 23        i      i +* Re: Script shell ?19M.V.
22 Feb 23        i      i i`* Re: Script shell ?18Brice
22 Feb 23        i      i i `* Re: Script shell ?17M.V.
22 Feb 23        i      i i  `* Re: Script shell ?16Brice
22 Feb 23        i      i i   `* Re: Script shell ?15M.V.
22 Feb 23        i      i i    `* [Resolu]Re: Script shell ?14Brice
24 Feb 23        i      i i     `* Re: [Resolu]Re: Script shell ?13M.V.
24 Feb 23        i      i i      `* Re: [Resolu]Re: Script shell ?12Brice
24 Feb 23        i      i i       `* Re: [Resolu]Re: Script shell ?11M.V.
24 Feb 23        i      i i        `* Re: [Resolu]Re: Script shell ?10Brice
24 Feb 23        i      i i         +* Re: [Resolu]Re: Script shell ?7M.V.
24 Feb 23        i      i i         i`* Re: [Resolu]Re: Script shell ?6Brice
24 Feb 23        i      i i         i +* Re: [Resolu]Re: Script shell ?3Brice
24 Feb 23        i      i i         i i`* Re: [Resolu]Re: Script shell ?2M.V.
24 Feb 23        i      i i         i i `- Re: [Resolu]Re: Script shell ?1Brice
24 Feb 23        i      i i         i `* Re: [Resolu]Re: Script shell ?2M.V.
24 Feb 23        i      i i         i  `- Re: [Resolu]Re: Script shell ?1Brice
24 Feb 23        i      i i         `* [HS] Re: [Resolu]Re: Script shell ?2"Benoît L."
24 Feb 23        i      i i          `- Re: [HS] Re: [Resolu]Re: Script shell ?1Richard Hachel
22 Feb 23        i      i `* Re: Script shell ?2Brice
22 Feb 23        i      i  `- Re: Script shell ?1M.V.
22 Feb 23        i      `- Re: Script shell ?1M.V.
21 Feb 23        `* Re: Script shell ?2M.V.
21 Feb 23         `- Re: Script shell ?1Brice

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal