🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem de montage NAS avec AS

#65
From: M.V.
Date: Wed, 25 Nov 2026 10:16
38 lines
3011 bytes
Le samedi 21 novembre 2026 à 11 h 37, dans le message
<11drs9q$4k5$1@dont-email.me>, Brice a écrit :

> j'ai un script AS qui monte un NAS sans aucun problème, ni alerte.
> J'ai fait un autre avec les infos qui vont bien pour un autre NAS, mais
> systématiquement, il me demande un accord.

J'ai annulé la commande du Terminal qui désactive cette alerte et j'ai
testé ce script :
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
try
  open location "smb://192.168.1.36/MBAir_M5"
  delay 2
  tell application "System Events" to keystroke return
on error
  display alert "Il y a eu un problème !"
end try
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Cette fois, la commande "keystroke return" fait son travail sur la
fenêtre d'alerte ! 😻

Chez toi, ça devrait être :
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
try
  open location "smb://DS925/Module925"
  delay 2
  tell application "System Events" to keystroke return
on error
  display alert "Il y a eu un problème !"
end try
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

NB Pas besoin de MdP ni même d'identifiant : le système utilise ce qui
est sauvegardé dans Trousseau d'accès !

-- 
🇺🇦 Michel Vauquois - <http://michelvauquois.fr> 🇺🇦
Technical Details
Message-ID: <11e6cio$5c3$1@rasp.pasdenom.info>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!pasdenom.info!.POSTED.lfbn-poi-1-966-175.w86-254.abo.wanadoo.fr!not-for-mail
References: <11drs9q$4k5$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.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: Problem de montage NAS avec AS
Date: Wed, 25 Nov 2026 10:16:56 -0000 (UTC)
Organization: M.V. & Co
Archive: no
Message-ID: <11e6cio$5c3$1@rasp.pasdenom.info>
References: <11drs9q$4k5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 Nov 2026 10:16:56 -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="5507"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: MacCafe/3.06.2(4D18) ("arusha") (macOS 15.8.3 (24H241) - iMac19,1)
Cancel-Lock: sha1:b6ayvE4HR5+my26hiOkCF3CWCCs= sha256:9yX8yzyeLO4E7yPCChHPH+sU5zjB6ilo4TA/pSLF2J8=
	sha1:FsV3LOSyc4km445JAfYXNOHEHM0= sha256:JAwfVbqncDAsz+yhlb2ZPShbNuHwrW1BXMN7ZMeZFu4=
	sha1:80mP2KLMaKwlflq1uHizD3xOYy4= sha256:YS8W4GX8MaVzyF6zViqwM1mx0/diA7+tKCcR7JvvP/E=
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
X-No-Archive: yes
URL-perso: http://michelvauquois.fr
X-Address: michel.vauquois@gmail.com
In-Reply-To: <11drs9q$4k5$1@dont-email.me>
Mail-Copies-To: nobody