Deutsch English Français Italiano |
<tsvavr$n240$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!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: Script shell ? Date: Mon, 20 Feb 2023 08:28:43 -0000 (UTC) Organization: A noiseless patient Spider Lines: 53 Archive: no Message-ID: <tsvavr$n240$1@dont-email.me> References: <tstfem$e6eb$1@dont-email.me> <tstjpa$bns$1@shakotay.alphanet.ch> Reply-To: bgraig@wanadoo.fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 20 Feb 2023 08:28:43 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="917682fa5154288a51f59a04ea50f233"; logging-data="755840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZhND30kiVwSb5K2NcBZOv" User-Agent: MacCafe/2.10 (4D18)/peaberry (Mac OS X 10.15.7 (19H2026) - iMac17,1) Cancel-Lock: sha1:PORbLN5Mu9v7dBrWxT0vSVmq9E4= sha256:07OudVox/J44uIs51ne5UZ7AV/0wyjTqj/AgmfDBgE8= sha1:ne6cSspJdUFkUT2Jd2NfdipLlwI= In-Reply-To: <tstjpa$bns$1@shakotay.alphanet.ch> X-No-Archive: yes 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: 3221 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