Checking if another application is open?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Checking if another application is open?
Hi - I know how to launch and quit other applications, but how can you check if an other application is already open?
Re: Checking if another application is open?
On Windows try this example,
checking for notepad.exe running
on mouseUp
put empty into fld "myTaskList"
put shell ("TaskList") into fld "myTaskList"
if "notepad.exe" is among the tokens of fld "myTaskList" then
answer "Notepad is Running"
end if
end mouseUp
it's normally the case that you would use 'among the words' instead of 'among the tokens' but I've found that 'tokens' tends to be more reliable when a punctuation is within the pattern match.
checking for notepad.exe running
on mouseUp
put empty into fld "myTaskList"
put shell ("TaskList") into fld "myTaskList"
if "notepad.exe" is among the tokens of fld "myTaskList" then
answer "Notepad is Running"
end if
end mouseUp
it's normally the case that you would use 'among the words' instead of 'among the tokens' but I've found that 'tokens' tends to be more reliable when a punctuation is within the pattern match.
Andy .... LC CLASSIC ROCKS!
Re: Checking if another application is open?
Thanks Andy - I'm actually on a Mac, but I see what your suggesting and so I'll try something along these lines.
Cheers - P
Cheers - P