« »

[Snippet] Check if application is running

Parameters

Return value

This returns a boolean value where true indicates that the application is running and false indicates that it wasn’t.

Snippet

on appIsRunning(appName)
    tell application "System Events" to return (name of every process) contains appName
end

Leave a Reply