🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.sys.mac.programmation
Article #8

Re: [MacCafé] Fermer toutes les fenêtres en AppleScript

#8
From: Joseph B
Date: Tue, 13 Oct 2026 20:03
28 lines
2306 bytes
Joseph B, le mardi 13 octobre 2026, a écrit dans
message <11am0i4$rcdn$1@dont-email.me> :

> une variante,
> qui a l'air de fonctionner aussi dans tous les cas de figure, en une
> seule boucle:

la même en plus "élégante"
#############
tell application "MacCafé" to activate
tell application "System Events"
  tell application process "MacCafé"
    set NbWindows to count of windows
    repeat (NbWindows - 1) times
      if (name of window 1) as string > "  " then
        click button 1 of window 2
      else
        click button 1 of window 1
      end if
      delay 0.1
    end repeat
  end tell
end tell
##############

-- 
🥳/ josephB \🦶
Technical Details
Message-ID: <11am2q2$s9s4$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-mail
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> <11am0i4$rcdn$1@dont-email.me>

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 20:03:14 -0000 (UTC)
Organization: Bof…
Lines: 28
Message-ID: <11am2q2$s9s4$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> <11am0i4$rcdn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 13 Oct 2026 20:03:14 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="927620"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/a0k2Rk3f4/9QHPrAktSLwzWhLwtsZ/N4="; posting-host="991e0ad882ca66cf007adeb8a5adf8de"
User-Agent: MacCafe/3.06(4D18) ("arusha") (macOS 26.7.1 (25G241) - Mac14,3)
Cancel-Lock: sha1:MG2RyFKTDaSNZaqXKYQfy2JZvpQ= sha256:hQdzh2MTxQ/96GwGPfWCNnc1OCXvq+s2L6Qy/zvTeAY=
	sha1:tvh1TAyVJYJ9mB31KUstBDDlpxE= sha256:IYmP6b+je8UxfP9MYT801e6FoZjRAxqm8BD2t2/em44=
	sha1:sTCwGEltr6gDY7xSLxjSKBH21Ms= sha256:g09wNmVb0G0DW3YB/MFgYG9t2K3Xi+d0VRw8Cz5x6Q8=
In-Reply-To: <11am0i4$rcdn$1@dont-email.me>
X-No-Archive: yes