Article View: fr.comp.sys.mac.programmation
Article #6Re: [MacCafé] Fermer toutes les fenêtres en AppleScript
From: M.V.
Date: Tue, 13 Oct 2026 18:12
Date: Tue, 13 Oct 2026 18:12
29 lines
2872 bytes
2872 bytes
Le mardi 13 octobre 2026 à 19 h 56, dans le message
<11alrcj$p7or$1@dont-email.me>, Joseph B a écrit :
>> Tu as testé en ouvrant la fenêtre des préférences ?
>
> Non, je n'avais pas testé ce cas très litigieux, honte à moi
Remède :
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
tell application "MacCafé" to activate
tell application "System Events"
tell application process "MacCafé"
repeat 2 times
set NbWindows to count of windows
repeat with i from NbWindows to 1 by -1
if (length of ((name of window i) as string)) < 3 then
click button 1 of window i
delay 0.05
end if
end repeat
end repeat
end tell
end tell
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
mais bon… j'aime autant la version précédente.
--
🇺🇦 Michel Vauquois - <http://michelvauquois.fr> 🇺🇦
Technical Details
Message-ID:
<11alsa7$rrh$1@rasp.pasdenom.info>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!pasdenom.info!.POSTED.lfbn-poi-1-966-175.w86-254.abo.wanadoo.fr!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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!pasdenom.info!.POSTED.lfbn-poi-1-966-175.w86-254.abo.wanadoo.fr!not-for-mail
From: "M.V." <mv@gmail.com.invalid>
Newsgroups: fr.comp.sys.mac.programmation
Subject: Re: [MacCafé] Fermer toutes les fenêtres en AppleScript
Date: Tue, 13 Oct 2026 18:12:23 -0000 (UTC)
Organization: M.V. & Co
Archive: no
Message-ID: <11alsa7$rrh$1@rasp.pasdenom.info>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 13 Oct 2026 18:12:23 -0000 (UTC)
Injection-Info: rasp.pasdenom.info; posting-account="michel.vauquois@usenet"; posting-host="lfbn-poi-1-966-175.w86-254.abo.wanadoo.fr:86.254.46.175";
logging-data="28529"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: MacCafe/3.06(4D18) ("arusha") (macOS 26.7.1 (25G241) - Mac17,3)
Cancel-Lock: sha1:WmKB7KR5YqAp2qshWdb7VcKPIi8= sha256:PCr+VC8lpVqCgXZ1mZBf2h8DhcBVyfZTM78tKUbaHIw=
sha1:vwBgw14zNA4Olp9CqPXymueREfw= sha256:VnZ0Lzlklqq/xgB7Fq6nK0zm6pINmjKOR4O0cKE7hw0=
sha1:gv9eK9ua8xG/y0BYi8dIN8P8Gss= sha256:/rwMypBYDdwcSN662waQzl52AIYPsX9zALydTX+Ptmw=
In-Reply-To: <11alrcj$p7or$1@dont-email.me>
X-Face: 0f|`H5*Our0P$s'uj0)fS=&`R#U+JYpl<W.~uGMH[S}%Yo{$(f$0`!02mu$5b`f7Hp6:EiW
c`zw`Y^GQAA=_IIV`NIXW4&YpH]>e<6GW!O'TO4sB4,Q9"tHNQo]\7p\,,nCZ_saH4~Ie
'gYktutVOXK})aU*/@meZ_y=ixi8qwcJ,ssAk~G4Rr?qr60d_euHkHHJ_;EHES_(IExNo
h6
Mail-Copies-To: nobody
X-Address: michel.vauquois@gmail.com
URL-perso: http://michelvauquois.fr
X-No-Archive: yes