Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Brice Newsgroups: fr.comp.sys.mac.programmation Subject: Re: [Help] script shell, marche plus Date: Sun, 1 Dec 2024 19:06:50 -0000 (UTC) Organization: A noiseless patient Spider Lines: 94 Archive: no Message-ID: References: Reply-To: bgraig@wanadoo.fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 01 Dec 2024 20:06:50 +0100 (CET) Injection-Info: dont-email.me; posting-host="aac3421a2ef69af88c7c914325a5ab20"; logging-data="2876174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NKX/Y+16Tw6uR53jZx03a" User-Agent: MacCafe/3.03.1(4D18) ("blue mountain") (macOS 15.1.1 (24B91) - Mac14,12) Cancel-Lock: sha1:mEaI2qWbTYmSczAzPlc1T1isNpU= sha256:UyXwtykIiLLaqiBoaIPUy7EMHdfzRsYC04bAeCG9/Ns= sha1:WFnbzutA5aDZcbfaUMfcDIM1/rc= 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$ In-Reply-To: Bytes: 3991 le dimanche 1 décembre 2024 à 16:33, M.V. a pondu : > Hello, > > In message , 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. Graignic enlever-bgraig@wanadoo.fr