Sujet : Re: [Help] script shell, marche plus
De : truc (at) *nospam* bidule.fr.invalid (Brice)
Groupes : fr.comp.sys.mac.programmationDate : 01. Dec 2024, 20:06:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <viic49$2nooe$1@dont-email.me>
References : 1 2 3 4
User-Agent : MacCafe/3.03.1(4D18) ("blue mountain") (macOS 15.1.1 (24B91) - Mac14,12)
le dimanche 1 décembre 2024 à 16:33, M.V. a pondu :
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 ?
===========
chmod: /Library/Application: No such file or directory
chmod: Support/com.bombich.ccc/Scripts/Ejection_Shell-Mini03b.sh: No
such file or directory
===========
>
Il a fallut que j'enregistre le modus operandi et j'obtiens :
>
??? Qu'est-ce que ça veut dire ?
def : Mode d’opération, manière de procéder
J'enregistre la manière de faire :
Lancer l'enregistrement
Cliquer sur le Finder
Double clic sur l'application
Arrêter l'enregistrement
>
___________________
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
Dans Applescript, j'ai fait :
================
tell application "Applications/DIM.app" to activate
end tell
Tout d'abord il a refusé ' (touche 4), j'ai mis " (touche 4)
Maintenant, il s'arrête sur end tell :
fin de ligne, etc. prévu(s) mais « end tell » trouvé(s).
J'ai raté quelque chose. 😢
Merci,
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. |