Path: ...!news.tomockey.net!3.eu.feeder.erje.net!feeder.erje.net!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Souris 8-) Newsgroups: fr.comp.sys.mac.programmation Subject: Re: [Apple Script] Quel code pour mettre une application en premier plan ?... Date: Wed, 1 Sep 2021 13:17:24 -0000 (UTC) Organization: =?UTF-8?B?TcOpdGEtU2NpZW5jZQ==?= Lines: 45 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 1 Sep 2021 13:17:24 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="5b2df95aaa14203950d54595992da0bd"; logging-data="16830"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/l4/Qx/V+HJ/oZgGX2PE6Z" User-Agent: MacCafe/2.06(bs) (macOS 11.5.2 (20G95) - iMac18,3) Cancel-Lock: sha1:9jx8yWWZqbmjZZ5a5SF+v3TFv1Y= sha256:5g6j3EW9Qwq70qzMuSdyiE/XhG6aqk/rSW3deTpYP2Q= sha1:1DmfTgRc9sbKXx0IfpNT5h609y8= In-Reply-To: Bytes: 2423 Le 1er septembre 2021 à 15:03, Souris 8-) a écrit : > Le 1er septembre 2021 à 13:41, Souris 8-) a écrit : > > >> [Apple Script] Quel code pour mettre une application en premier plan ?... >> >> Bonjour, quel instruction pour mettre une application déjà ouverte en premier >> plan ? >> >> merci >> >> suivi programmation >> >> -- > > Pour mettre une application en premier plan, j’ai trouvé deux solutions à tester: > > tell application « TextEdit » > Activate > end tell > > > tell application "System Events" > tell application process "TextEdit" > set frontmost to true > end tell > end tell > > la première est la seul qui fonctionne avec Xojo... > > -- ps : l'application dont j'ai besoin de faire travailler, n'a pas de dictionnaire Apple Script, c'est peut être pour cette raison que la deuxième solution ne fonctionne pas ? -- -- \ / Croire c'est le contraire de savoir, -- o -- si j'y crois, je ne sais pas, / \ si je sais, pas la peine d'y croire. --> Je crois pas, car je sais que c'est faux malgré tout...