Re: List of open applications
Re: List of open applications
- Subject: Re: List of open applications
- From: "koenig.yvan" <email@hidden>
- Date: Wed, 05 Sep 2012 18:48:19 +0200
Le 05/09/2012 à 17:37, Axel Luttgens <email@hidden> a écrit :
> Le 5 sept. 2012 à 16:57, koenig.yvan a écrit :
>
>> Hello
>>
>> I wrote a quick and dirty piece of code but I wonder if there is a neeter way to get the list of open applications.
>>
>> --[SCRIPT]
>> [...]
>> --[SCRIPT]
>
> Hello Yvan,
>
> This one may need to have the whose clause adjusted to meet your needs, but should be close:
>
> tell application "System Events"
> name of application processes whose visible is true
> end tell
>
> HTH,
> Axel
Thanks Axel
It's OK.
I just need to use killal aProcess
as a substitute to
tell application anApp to quit
because processes names aren't always matching applications ones.
For instance, the process for « openOffice » is « soffice »
Yvan KOENIG (VALLAURIS, France) mercredi 5 septembre 2012 18:48:15
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden