Article View: pl.comp.sys.macintosh
Article #132566Re: Restart dowolnej aplikacji (poza Finderem) - da s ię?
From: PureNick
Date: Fri, 09 Mar 2018 18:26
Date: Fri, 09 Mar 2018 18:26
31 lines
2309 bytes
2309 bytes
W dniu 07/03/2018 o 20:50, Krzysztof Mitko pisze:
> On 7 Mar 2018, Krzysztof Mitko wrote
> (in article<0001HW.205078C602B4D93870000AD6E2CF@news.atman.pl>):
>
>> on run {input, parameters} tell application "System Events" set program to
>> name of (first application process whose frontmost is true) end tell tell
>> application program to quit open application program end run
>
> Ech, chyba znalazłem buga w moim czytniku - zrobił mi kaszanę przy
> przeklejaniu. Teraz mam nadzieję będzie OK:
>
> on run {input, parameters}
> tell application "System Events"
> set program to name of (first application process whose frontmost is true)
> end tell
> tell application program to quit
> open application program
> end run
Niestety, nie działa, albo ja nie umiem tego użyć.
Usługę utworzyłem, przypisałem jej skrót klawiszowy,
ale nie wiem jak sprawić, żeby to oddziaływało na aplikacje.
Wciśnięcie skrótu nie daje żadnego efektu.
Uruchomienie skryptu w Automatorze robi tylko tyle,
że Automator się zamyka. Koniec i kropka.
Nie dałem rady, biję się w piersi...
Pozdruffka
--
~/PP/~/SF/~
Technical Details
Message-ID:
<p7ujl2$rhq$1@node1.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<p4v1lk$7kt$1@node1.news.atman.pl> <IGEcC.586539$dY3.74469@fx10.ams1> <p4v9kb$fhp$1@node1.news.atman.pl> <p7k5ki$qch$1@node2.news.atman.pl> <p7ljqo$4kt$1@node2.news.atman.pl> <0001HW.205078C602B4D93870000AD6E2CF@news.atman.pl> <0001HW.205079E902B51D5570000AD6E2CF@news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: PureNick <ibozaur@tlen.pl> Newsgroups: pl.comp.sys.macintosh Subject: Re: Restart dowolnej aplikacji (poza Finderem) - da s ię? Date: Fri, 9 Mar 2018 19:26:42 +0100 Organization: ATMAN - ATM S.A. Lines: 31 Message-ID: <p7ujl2$rhq$1@node1.news.atman.pl> References: <p4v1lk$7kt$1@node1.news.atman.pl> <IGEcC.586539$dY3.74469@fx10.ams1> <p4v9kb$fhp$1@node1.news.atman.pl> <p7k5ki$qch$1@node2.news.atman.pl> <p7ljqo$4kt$1@node2.news.atman.pl> <0001HW.205078C602B4D93870000AD6E2CF@news.atman.pl> <0001HW.205079E902B51D5570000AD6E2CF@news.atman.pl> NNTP-Posting-Host: 93.159.155.66 Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1520620002 28218 93.159.155.66 (9 Mar 2018 18:26:42 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Fri, 9 Mar 2018 18:26:42 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-Reply-To: <0001HW.205079E902B51D5570000AD6E2CF@news.atman.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit