• 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: are WeatherPop running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: are WeatherPop running


  • Subject: Re: are WeatherPop running
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 3 Jan 2004 22:15:04 -0600

Hey Bob,

At 18:18 -0700 01/03/2004, Robert Poland wrought:

Need a way to tell if "Install Script Menu" has been run. These both are menu bar items that show up visually but I haven't been able to test them with a script.

tell application "System Events"
set flag to exists of process "WeatherPopApp"
end tell

There are all kinds of ways to filter processes

tell application "System Events"
processes
end tell

tell application "System Events"
processes whose name contains "script"
end tell

tell application "System Events"
processes whose creator type is "asDB" -- Script Debugger
end tell

tell application "System Events"
file type of every process
end tell

tell application "System Events"
creator type of every process
end tell

Now, on to the Script Menu. WeatherPop runs as a process, but the Script Menu is a menu extra. It doesn't show up as a process on my machine after I install it. I looked in the activity monitor, I used the shell script "ps", but I didn't find it anywhere.

This requires the Satimage osax:
http://www.satimage.fr/software/en/downloads_osaxen.html

set theText to do shell script "ps -acwwx"

try
set findIt1 to find text ".*menu.*" in theText with regexp and string result without case sensitive
on error
set findIt1 to false
end try

--> 368 ?? S 0:28.12 WeatherMenu


try
set findIt2 to find text ".*script.*" in theText with regexp and string result without case sensitive
on error
set findIt2 to false
end try

--> 369 ?? S 0:04.47 FastScripts


Chris
_______________________________________________
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.

  • Follow-Ups:
    • Re: are WeatherPop running
      • From: Robert Poland <email@hidden>
References: 
 >are WeatherPop running (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: are WeatherPop running
  • Next by Date: Re: Shared folders, WAS Checking for logged on guests
  • Previous by thread: Re: are WeatherPop running
  • Next by thread: Re: are WeatherPop running
  • Index(es):
    • Date
    • Thread