Re: Finding out is an Application is running
Re: Finding out is an Application is running
- Subject: Re: Finding out is an Application is running
- From: Andrew <email@hidden>
- Date: Thu, 12 Feb 2004 13:40:51 -0500
On 2/11/04 6:27 PM, "Christopher Nebel" <email@hidden> wrote:
>
If you really want it based on a path, then it's a bit harder, since
>
System Events doesn't like "whose" clauses that compare files, but
>
still not too bad:
>
>
on appIsRunning(applicationPath)
>
-- ideally, you'd say "exists first process whose file
>
-- is (alias applicationPath)", but that doesn't work, so...
>
tell application "System Events"
>
set allFiles to file of every process
>
end
>
return (alias applicationPath) is in allFiles
>
end
Thanx this works really, really well.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.