• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: List of open applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: List of open applications
      • From: Axel Luttgens <email@hidden>
    • Re: List of open applications
      • From: Luther Fuller <email@hidden>
References: 
 >List of open applications (From: "koenig.yvan" <email@hidden>)
 >Re: List of open applications (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: List of open applications
  • Next by Date: Re: List of open applications
  • Previous by thread: Re: List of open applications
  • Next by thread: Re: List of open applications
  • Index(es):
    • Date
    • Thread