Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Checking for open apps in AppleScript

Checking for open apps in AppleScript
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 1, 2002, 11:09 PM
 
Is there a way to check if an app is open in AppleScript without make the app open? Using the Finder somehow maybe?
     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Mar 1, 2002, 11:27 PM
 
Originally posted by l008com:
<STRONG>Is there a way to check if an app is open in AppleScript without make the app open? Using the Finder somehow maybe?</STRONG>
set itsThere to false
tell application "Finder" to if ((name of every process) as list) contains "Internet Explorer" then set itsThere to true
itsThere


Assuming OS X has finally added the process class.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 1, 2002, 11:51 PM
 
So that works assuming it works, nice :-p I'll play around with that in the morning.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 2, 2002, 12:01 AM
 
Wow it really does work, that didn't work for me 6 years ago on system 7.5 :-( cool i'm well on my way now...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2