Sujet : Re: [Help] script shell, marche plus
De : mv (at) *nospam* gmail.com.invalid (M.V.)
Groupes : fr.comp.sys.mac.programmationDate : 01. Dec 2024, 16:33:14
Autres entêtes
Organisation : M.V. & Co
Message-ID : <vihvjq$2j8vu$1@dont-email.me>
References : 1 2 3
User-Agent : MacCafe/3.03.1 ("blue mountain") (macOS 10.14.6 (18G9323) - MacBookAir7,2)
Hello,
In message <
vihq3g$2hl4n$1@dont-email.me>, on Sunday, 1 December 2024 at
14:59, Brice wrote:
il est indiqué :Unmount failed for Clone Mini - Données
et pourtant le disque a été éjecté au complet.
Si tu le dis…
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 ?
Non.
Si tu mets le chemin complet entre deux ' ou deux ", pas besoin
d'échapper (ie placer des \ devant) les espaces.
Par exemple :
diskutil umount Clone Mini
ne fonctionnera pas mais
diskutil umount "Clone Mini"
ou
diskutil umount 'Clone Mini'
ou
diskutil umount Clone\ Mini
fonctionneront.
J'ai écrit :
___________________
tell application "DIM"
run
end tell
____________________
mais ça ne marche pas, il tiquait sur “
???
Quel était exactement le message d'erreur ?
Il a fallut que j'enregistre le modus operandi et j'obtiens :
??? Qu'est-ce que ça veut dire ?
___________________
tell application "Finder"
activate
open application file "DIM.app" of folder "Applications" of startup
disk
end tell
___________________
Plus simple :
tell application 'Applications/DIM.app' to activate
ou même
tell application "DIM.app" to activate
-- Michel Vauquois - <http://michelvauquois.fr><https://www.facebook.com/michel.vauquois.3>La démocratie est la pire des dictatures, parce qu'elle est la dictatureexercée par le plus grand nombre sur la minorité. (Pierre Desproges)
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. |