Parameters
appname- [String] The name of an application. This must be the executable name although AppleScript’s string matching is case-insensitive.
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