Path: ...!newsreader4.netcologne.de!news.netcologne.de!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail From: =?UTF-8?B?IkJlbm/DrnQgTC4i?= Newsgroups: fr.comp.sys.mac.programmation Subject: Re: Script shell ? Date: Sun, 19 Feb 2023 16:46:35 -0000 (UTC) Organization: C'est celui qui dit qui est Archive: no Message-ID: References: Reply-To: benoit@leraillez.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 19 Feb 2023 16:46:35 -0000 (UTC) Injection-Info: shakotay.alphanet.ch; posting-account="bobduvallois"; logging-data="12028"; mail-complaints-to="usenet@alphanet.ch"; posting-host="afae0d8def0cf5f14abbb823c144bac2.nnrp.alphanet.ch" User-Agent: MacCafe/2.10 (4D18)/peaberry (macOS 13.2.1 (22D68) - MacBookPro14,2) Cancel-Lock: sha1:6Y08Y2NhZvg7otlupkbxOC5j1TI= sha256:yL3HwkRm3WrMWxY7Fky1rs2xuZwTgeGexxQFttYg0CM= sha256:9i9nL+DUaKmS+mSsCyUQADUtdxHBAE/7+VuDIAe8iAE= In-Reply-To: X-No-Archive: yes Bytes: 2732 Lines: 43 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.