Sujet : Re: [Help] script shell, marche plus
De : truc (at) *nospam* bidule.fr.invalid (Brice)
Groupes : fr.comp.sys.mac.programmationDate : 04. Dec 2024, 15:39:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vippj6$u8g9$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : MacCafe/3.03.1(4D18) ("blue mountain") (macOS 15.1.1 (24B91) - Mac14,12)
le mardi 3 décembre 2024 à 15:17, M.V. nous fait part :
Hello,
>
In message <vimose$161f$1@dont-email.me>, on Tuesday, 3 December 2024 at
12:09, Brice wrote:
>
j'ai ajouté, dans un AppleScript qui monte les
disques, DIM (Desktop Icone Manager) pour les ranger comme j'aime.
>
On peut voir entièrement ce script STP ?
=================
--Ejection disques
set disk_01 to "Sto-500Go"
set disk_02 to "Clone Mini"
set disk_02a to "Clone Mini - Données"
set disk_03 to "Taurus"
set disk_04 to "Clone MBP2012"
set disk_05 to "Fatras MacWay"
delay 5
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 mount " & quoted form of volume_name
on error
try
do shell script "diskutil mount force " & quoted form of
volume_name
end try
end try
end repeat
tell application "Finder"
activate
open application file "DIM.app" of folder "Applications" of startup
disk
end tell
=================
Pour l'éjection avec le fichier .sh, il y a noté dans le terminal,
Unmount failed for Clone Mini - Données
Si je remplaçais Données par Data comme noté dans Utilitaire de disque,
est-ce que ce serait mieux.
Après un test, j'ai la même info :
Unmount failed for Clone Mini - Data
Mais j'ai un problème avec ce que tu m'as proposé :
++++++++++++++++
--Plus simple :
-- tell application "Applications/DIM.app" to activate
-- end tell
-- ou même
tell application "DIM.app" to activate
end tell
++++++++++++++++
que ce soit le premier ou le second, j'obtiens :
une erreur de syntaxe
fin de ligne, etc. prévu(s) mais « end tell » trouvé(s).
Du coup je l'ai modifié en :
____________
tell application "DIM"
activate end tell
___________
et là je n'ai plus l'erreur.
Merci pour ton aide et tes conseils,
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. |