• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: appIsRunning(appName) not showing with filemaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: appIsRunning(appName) not showing with filemaker


  • Subject: Re: appIsRunning(appName) not showing with filemaker
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 27 Jan 2013 15:25:48 +0100


Le 26/01/2013 à 22:58, dealTek <email@hidden> a écrit :

Hi all,

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


I just have the trial version and the script recognize it when it's running.
I applied it with two versions of Numbers running.

--set appName to "TextEdit"
-- set appName to "FileMaker Pro"

set appName to "Numbers"
if appIsRunning(appName) then
display dialog "Running"
else
display dialog "Not Running"
end if
tell application "System Events"
count (every process whose name is "Numbers")
--> 2
file of every process whose name is "Numbers"
--> {alias "Macintosh HD:Applications:iWork '09:Numbers.app:", alias "Numbers09English:Numbers09English.app:"}
bundle identifier of every process whose name is "Numbers"
--> {"com.apple.iWork.Numbers", "com.apple.iWork.Numbers09English"}
end tell

on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning

As the English version is stored in a disk image, the returned values are correct.

Yvan KOENIG (VALLAURIS, France) dimanche 27 janvier 2013 15:23:41




 _______________________________________________
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

References: 
 >appIsRunning(appName) not showing with filemaker (From: dealTek <email@hidden>)

  • Prev by Date: Re: appIsRunning(appName) not showing with filemaker
  • Next by Date: Running script from shortcuts v editor?
  • Previous by thread: Re: appIsRunning(appName) not showing with filemaker
  • Next by thread: Re: appIsRunning(appName) not showing with filemaker
  • Index(es):
    • Date
    • Thread