RE: how to check whehter a application is active or not and the frontmost application
RE: how to check whehter a application is active or not and the frontmost application
- Subject: RE: how to check whehter a application is active or not and the frontmost application
- From: "SHIVANK AGGARWAL, Noida" <email@hidden>
- Date: Mon, 25 Jan 2010 14:42:55 +0530
- Acceptlanguage: en-US
- Thread-topic: how to check whehter a application is active or not and the frontmost application
Thanks Brian..
But I also want to know how to know which application exists.
From:
applescript-users-bounces+shivank.aggarwal=email@hidden
[mailto:applescript-users-bounces+shivank.aggarwal=email@hidden] On
Behalf Of Brian Christmas
Sent: Monday, January 25, 2010 2:16 PM
To: applescript-users-request
Subject: Re: how to check whehter a application is active or not and the
frontmost application
On 25/01/2010, at 6:44 PM, SHIVANK AGGARWAL, Noida wrote:
Please let me know how to find out that an application is active
or not and how to find the front most application.
Something like this in Applescript will do the job.
tell application
"Finder"
if frontmost of x
is true then display dialog name
of x as text
if name of x
= "Mail" then display dialog
"true"
Bear in mind that the process name is sometimes
different to the actual program name. To get the name of the process of your
application, open the app, and use...
tell application "Finder"
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
----------------------------------------------------------------------------------------------------------------------- |
|
_______________________________________________
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