Article View: fr.comp.sys.mac.programmation
Article #7Re: [MacCafé] Fermer toutes les fenêtres en AppleScript
From: Joseph B
Date: Tue, 13 Oct 2026 19:24
Date: Tue, 13 Oct 2026 19:24
30 lines
2324 bytes
2324 bytes
M.V., le mardi 13 octobre 2026, a écrit dans
message <11alsa7$rrh$1@rasp.pasdenom.info> :
> Remède :
>
Oui, l'astuce contourne bien le blocage, mais voilà encore une variante,
qui a l'air de fonctionner aussi dans tous les cas de figure, en une
seule boucle:
###########
tell application "MacCafé" to activate
tell application "System Events"
tell application process "MacCafé"
set NbWindows to count of windows
repeat (NbWindows - 1) times
if (length of ((name of window 1) as string)) < 3 then
click button 1 of window 1
else
click button 1 of window 2
end if
delay 0.1
end repeat
end tell
end tell
#########
--
🥳/ josephB \🦶
Technical Details
Message-ID:
<11am0i4$rcdn$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11alend$2as$1@rasp.pasdenom.info> <11alkeq$m9r3$1@dont-email.me> <11aloal$jo1$1@rasp.pasdenom.info> <11alrcj$p7or$1@dont-email.me> <11alsa7$rrh$1@rasp.pasdenom.info>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Joseph B <joseph@nowhere.invalid>
Newsgroups: fr.comp.sys.mac.programmation
Subject: Re: [MacCafé] Fermer toutes les fenêtres en AppleScript
Date: Tue, 13 Oct 2026 19:24:52 -0000 (UTC)
Organization: Bof…
Lines: 30
Message-ID: <11am0i4$rcdn$1@dont-email.me>
References: <11alend$2as$1@rasp.pasdenom.info> <11alkeq$m9r3$1@dont-email.me>
<11aloal$jo1$1@rasp.pasdenom.info> <11alrcj$p7or$1@dont-email.me>
<11alsa7$rrh$1@rasp.pasdenom.info>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 13 Oct 2026 19:24:52 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="897463"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19MoaHw9q1GUClQtXhpWD9sIe8HtxY/yO8="; posting-host="991e0ad882ca66cf007adeb8a5adf8de"
User-Agent: MacCafe/3.06(4D18) ("arusha") (macOS 26.7.1 (25G241) - Mac14,3)
Cancel-Lock: sha1:tfBe1D6NLW5Zfexiwe9pMzdKNR8= sha256:IjMLdOwGEsSc7r9AEd/QhRVAZ1k5IPLYQh7ORRxtqto=
sha1:Uf3TEFo/94b4XXDVvYO5xQJ1HYo= sha256:3Hs+PhAII/U6RK/0v5sRwUti4itVVR4g0hpf28j6Y84=
sha1:NgR/lryW/1L3M7xFVl8nAGH4xZ4= sha256:5tzKw3cbhg0yz6NDtHcbOwiRNdd+UdDGbIBoUpYAtzU=
X-No-Archive: yes
In-Reply-To: <11alsa7$rrh$1@rasp.pasdenom.info>