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: Brian Christmas <email@hidden>
- Date: Mon, 25 Jan 2010 20:20:10 +1100
On 25/01/2010, at 8:12 PM, SHIVANK AGGARWAL, Noida wrote: Thanks Brian.. But I also want to know how to know which application exists.
G'day Shivank 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"
Shivank, the script above will tell you if an application is running. Do you mean you want to tell if an Application actually exists on your disk without running it?
Regards
Santa |
_______________________________________________
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