Sujet : Re: [Help] script shell, marche plus
De : truc (at) *nospam* bidule.fr.invalid (Brice)
Groupes : fr.comp.sys.mac.programmationDate : 01. Dec 2024, 14:59:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vihq3g$2hl4n$1@dont-email.me>
References : 1 2
User-Agent : MacCafe/3.03.1(4D18) ("blue mountain") (macOS 15.1.1 (24B91) - Mac14,12)
le dimanche 1 décembre 2024 à 11:38, M.V. a raconté :
Hello,
>
In message <vif739$1p934$1@dont-email.me>, on Saturday, 30 November 2024
at 15:22, Brice wrote:
>
Pour voir si ton script .sh fonctionne, tu as juste à ouvrir Terminal et
à faire glisser le script .sh sur la fenêtre de Terminal puis peser sur
la touche Entrée pour voir si tes volumes sont démontés.
>
S'il y a une ou des erreurs, fais-le nous savoir. ;-)
J'ai retrouvé le pense-bourrique de cette époque dans mon DEVONthink.
================
#!/bin/sh
diskutil umount "Sto-500Go"
sleep 3
diskutil umount "Clone Mini"
sleep 3
diskutil umount "Clone Mini - Données"
sleep 3
diskutil umount "Taurus"
sleep 3
diskutil umount "Clone MBP2012"
sleep 3
diskutil umount "Fatras MacWay"
===============
Je l'ai envoyé dans le Terminal, tout s'est éjecté mais la réponse me
laisse dubitatif :
+++++++++++++++
brice@Mac-mini ~ % /Library/Application\
Support/com.bombich.ccc/Scripts/Ejection_Shell-Mini03b.sh
Volume Sto-500Go on disk10s2 unmounted
Volume Clone Mini on disk8s1 unmounted
Unmount failed for Clone Mini - Données
Volume Taurus on disk11s2 unmounted
Volume Clone MBP2012 on disk9s2 unmounted
Volume Fatras MacWay on disk9s4 unmounted
+++++++++++++
il est indiqué :Unmount failed for Clone Mini - Données
et pourtant le disque a été éjecté au complet.
Autre chose, lorsque j'ai voulu rendre exécutable le fichier, j'ai copié
le chemin jusqu'au fichier :
o=r /Library/Application
Support/com.bombich.ccc/Scripts/Ejection_Shell-Mini03b.sh
comme ça ne marchait pas j'ai repris la commande d'il y a 1 an et 9 mois
en changeant juste le nom du fichier :
o=r /Library/Application\
Support/com.bombich.ccc/Scripts/Ejection_Shell-Mini03b.sh
Faut-il toujours mettre un “\“ devant une espace ?
J'ai fait un Applescrit pour lancer DIM qui range les icônes des
disques.
J'ai écrit :
___________________
tell application "DIM"
run
end tell
____________________
mais ça ne marche pas, il tiquait sur “.
Il a fallut que j'enregistre le modus operandi et j'obtiens :
___________________
tell application "Finder"
activate
open application file "DIM.app" of folder "Applications" of startup
disk
end tell
___________________
et là le logiciel est lancé..
Je te remercie de m'avoir rafraîchi la mémoire.
Cordialement,
-- B. Graignicenlever-bgraig@wanadoo.fr
Date | Sujet | # | | Auteur |
30 Nov 24 | [Help] script shell, marche plus | 47 | | Brice |
30 Nov 24 |  Re: [Help] script shell, marche plus | 1 | | M.V. |
30 Nov 24 |  Re: [Help] script shell, marche plus | 2 | | M.V. |
30 Nov 24 |   Re: [Help] script shell, marche plus | 1 | | Brice |
1 Dec 24 |  Re: [Help] script shell, marche plus | 43 | | M.V. |
1 Dec 24 |   Re: [Help] script shell, marche plus | 42 | | Brice |
1 Dec 24 |    Re: [Help] script shell, marche plus | 41 | | M.V. |
1 Dec 24 |     Re: [Help] script shell, marche plus | 40 | | Brice |
1 Dec 24 |      Re: [Help] script shell, marche plus | 39 | | M.V. |
3 Dec 24 |       Re: [Help] script shell, marche plus | 38 | | Brice |
3 Dec 24 |        Re: [Help] script shell, marche plus | 37 | | M.V. |
4 Dec 24 |         Re: [Help] script shell, marche plus | 36 | | Brice |
4 Dec 24 |          Re: [Help] script shell, marche plus | 35 | | M.V. |
5 Dec 24 |           Re: [Help] script shell, marche plus | 1 | | Brice |
6 Dec 24 |           Re: [Help] script shell, marche plus | 33 | | M.V. |
12 Dec 24 |            Re: [Help] script shell, marche plus | 32 | | Brice |
12 Dec 24 |             Re: [Help] script shell, marche plus | 31 | | M.V. |
13 Dec 24 |              Re: [Help] script shell, marche plus | 30 | | Brice |
13 Dec 24 |               Re: [Help] script shell, marche plus | 29 | | M.V. |
14 Dec 24 |                Re: [Help] script shell, marche plus | 28 | | Brice |
15 Dec 24 |                 Re: [Help] script shell, marche plus | 27 | | M.V. |
16 Dec 24 |                  Re: [Help] script shell, marche plus | 26 | | Brice |
16 Dec 24 |                   Re: [Help] script shell, marche plus | 5 | | M.V. |
16 Dec 24 |                    Re: [Help] script shell, marche plus | 4 | | Brice |
16 Dec 24 |                     Re: [Help] script shell, marche plus | 1 | | M.V. |
17 Dec 24 |                     Re: [Help] script shell, marche plus | 2 | | M.V. |
18 Dec 24 |                      Re: [Help] script shell, marche plus | 1 | | Brice |
16 Dec 24 |                   Re: [Help] script shell, marche plus | 20 | | M.V. |
18 Dec 24 |                    Re: [Help] script shell, marche plus | 19 | | Brice |
19 Dec 24 |                     Re: [Help] script shell, marche plus | 18 | | M.V. |
19 Dec 24 |                      Re: [Help] script shell, marche plus | 17 | | Brice |
19 Dec 24 |                       Re: [Help] script shell, marche plus | 16 | | M.V. |
20 Dec 24 |                        Re: [Help] script shell, marche plus | 15 | | Brice |
20 Dec 24 |                         Re: [Help] script shell, marche plus | 14 | | M.V. |
20 Dec 24 |                          Re: [Help] script shell, marche plus | 13 | | Brice |
20 Dec 24 |                           Re: [Help] script shell, marche plus | 12 | | M.V. |
20 Dec 24 |                            Re: [Help] script shell, marche plus | 4 | | kurtz le pirate |
20 Dec 24 |                             Re: [Help] script shell, marche plus | 3 | | M.V. |
21 Dec 24 |                              Re: [Help] script shell, marche plus | 2 | | Brice |
21 Dec 24 |                               Re: [Help] script shell, marche plus | 1 | | M.V. |
21 Dec 24 |                            Re: [Help] script shell, marche plus | 7 | | Brice |
21 Dec 24 |                             Re: [Help] script shell, marche plus | 5 | | M.V. |
21 Dec 24 |                              Re: [Help] script shell, marche plus | 1 | | M.V. |
21 Dec 24 |                              Re: [Help] script shell, marche plus | 1 | | M.V. |
21 Dec 24 |                              Re: [Help] script shell, marche plus | 2 | | M.V. |
22 Dec 24 |                               Re: [Help] script shell, marche plus | 1 | | Brice |
21 Dec 24 |                             Re: [Help] script shell, marche plus | 1 | | M.V. |