Deutsch English Français Italiano |
<62027b2f$0$28585$426a74cc@news.free.fr> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!usenet-fr.net!agneau.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp1-2.free.fr!not-for-mail Newsgroups: fr.comp.sys.mac.programmation Subject: Re: =?UTF-8?B?R2VzdGlvbiBkZSBjYXB0dXJlcyBkJ8OpY3JhbiBwYXIgQXA=?= =?UTF-8?B?cGxlU2NyaXB0IFtXYXM6IFV0aWxpdGFpcmUgZGUgY2FwdHVyZSBkJw==?= =?UTF-8?B?w6ljcmFuID9d?= From: =?UTF-8?B?IkJlbm/DrnQgTC4i?= <benoit@leraillez.com.invalid> In-Reply-To: <j6f2l9Fto6qU1@mid.individual.net> 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> Message-ID: <62027b2f$0$28585$426a74cc@news.free.fr> Cancel-Lock: sha1:4X8xXJomtmHn6qyf4WF1ZXeuvB4= sha256:gJOtpzNLaO+ufN26SbdCOPbFS+LKHyoxs5XOLB2FKnU= Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: MacCafe/2.06 (macOS 10.15.7 (19H1615) - MacBookPro14,2) X-No-Archive: yes Archive: no Organization: C'est celui qui dit qui est Date: 08 Feb 2022 14:16:15 GMT Lines: 23 NNTP-Posting-Date: 08 Feb 2022 15:16:15 CET NNTP-Posting-Host: 81.53.19.45 X-Trace: 1644329775 news-3.free.fr 28585 81.53.19.45:57702 X-Complaints-To: abuse@proxad.net Bytes: 2280 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} 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 -- L'écologie est à l'économie ce que l'astrologie est à l'astronomie.