Re: appIsRunning(appName) not showing with filemaker
Re: appIsRunning(appName) not showing with filemaker
- Subject: Re: appIsRunning(appName) not showing with filemaker
- From: "J. Stewart" <email@hidden>
- Date: Sun, 27 Jan 2013 05:18:47 -0500
On 1/26/13 at 4:58 PM, dealTek <email@hidden> spake thusly:
This simple script seems to work with some apps (like TextEdit
) but not with FileMaker Pro ... I do have 2 versions on this
app (v 10 and v 11) - is that the problem - ( they are both
called the same by file maker = FileMaker Pro)?
--set appName to "TextEdit"
set appName to "FileMaker Pro"
if appIsRunning(appName) then
display dialog "Running"
else
display dialog "Not Running"
end if
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning
Try this-
--set appName to "TextEdit"
set appName to "FileMaker Pro"
if application appName is running then
display dialog "Running" giving up after 3
else
display dialog "Not Running" giving up after 3
end if
The "running" property was added to application objects in
Applescript with Mac OSX 10.5.
JBS
--
Naturally, the common people don't want war, but after all, it
is the leaders of a country who determine the policy, and it is
always a simple matter to drag people along whether it is a
democracy, or a fascist dictatorship, or a parliament, or a
communist dictatorship. Voice or no voice, the people can always
be brought to the bidding of the leaders. This is easy. All you
have to do is tell them they are being attacked, and denounce
the pacifists for lack of patriotism and exposing the country to
danger. It works the same in every country. -Hermann Goering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden