Deutsch   English   Français   Italiano  
<stu0pd$388$2@shakotay.alphanet.ch>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!porbandar.httrack.net!news.httrack.net!news.alphanet.ch!alphanet.ch!.POSTED.lfbn-ren-1-614-45.w81-53.abo.wanadoo.fr!not-for-mail
From: =?UTF-8?B?IkJlbm/DrnQgTC4i?= <benoit@com.invalid>
Newsgroups: fr.comp.sys.mac.programmation
Subject: Re: =?UTF-8?B?R2VzdGlvbiBkZSBjYXB0dXJlcyBkJ8OpY3JhbiBwYXIgQXA=?=
 =?UTF-8?B?cGxlU2NyaXB0IFtXYXM6IFV0aWxpdGFpcmUgZGUgY2FwdHVyZSBkJw==?=
 =?UTF-8?B?w6ljcmFuID9d?=
Date: Tue, 8 Feb 2022 15:04:13 -0000 (UTC)
Organization: C'est celui qui dit qui est
Sender: bobduvallois@lfbn-ren-1-614-45.w81-53.abo.wanadoo.fr
Archive: no
Message-ID: <stu0pd$388$2@shakotay.alphanet.ch>
References: <j4noi9Fqs7sU1@mid.individual.net> <st2t5p$8pp$1@rasp.pasdenom.info>
 <st2ung$bpd$1@rasp.pasdenom.info> <j5l86rFgmigU1@mid.individual.net>
 <j6f2l9Fto6qU1@mid.individual.net> <62027b2f$0$28585$426a74cc@news.free.fr>
 <j6fdb9F191tU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Feb 2022 15:04:13 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-host="lfbn-ren-1-614-45.w81-53.abo.wanadoo.fr:81.53.19.45";
	logging-data="3336"; mail-complaints-to="usenet@alphanet.ch"
User-Agent: MacCafe/2.06 (macOS 10.15.7 (19H1615) - MacBookPro14,2)
Cancel-Lock: sha1:HbkwkX4F+bqSmH7nXuuxJPfwA6g= sha256:kzBdCQ0qkPSCn97ALw+AST+ti2mzyCQ2OOKOWCyRmkw=
In-Reply-To: <j6fdb9F191tU1@mid.individual.net>
X-No-Archive: yes
Bytes: 3256
Lines: 44

Nonobstant quelques doutes, le 8 février 2022 à 15:34, pehache se permit
de dire :

> Le 08/02/2022 à 15:16, "Benoît L." a écrit :
>> Ni vu ni connu, le 8 février 2022 à 12:31, pehache osa écrire :
>> 
>>> Juste un petit truc : je n'ai pas trouvé comment faire la capture par
>>> une instruction AppleScript native, je lance la commande "screencapture"
>>> par un appel shell script. Ce n'est pas très important, c'est juste par
>>> curiosité de savoir si on peut faire autrement.
>>> 
>> 
>> tell application "System Events" to keystroke "3" using {command down,
>> shift down}
>
> OK. Mais j'ai comme j'ai besoin du nom de fichier produit je reste avec 
> la commande shell "screencapture"

Dans les options de « Capture d’écran.app » tu peux lui demander
d’ouvrir le fichier dans Aperçu plutôt que l’enregistrer : les portes
sont grandes ouvertes.

>> Sinon j’ai trouvé ça comme base :
>> 
>> set theDate to do shell script "date +%Y_%m_%d_%H%M%S"
>> set theTempPath to POSIX path of (path to desktop)
>> set thePath to theTempPath & "screenCapture_" & theDate & ".png"
>> 
>> do shell script "screencapture -R320,210,848,440 -tpng" & space & quoted
>> form of thePath
>
> C'est à peu ce que je fais dans mon premier post ;)

Oui, mais j’aime pas la ligne de commande. Je préfère apprendre Swift.
;)

Maintenant, j’ai posé une question il y a deux jours et pas une
réponse. :/


-- 
Je pensais qu'avec toutes les pluies du mois de septembre, le covid 
aurait été lavé. 
-+- M.S. dans « L’infirmière dans “Persil contre Pfizer” » -+-