• 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
access active process in activity monitor - indexing process:mdworker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

access active process in activity monitor - indexing process:mdworker


  • Subject: access active process in activity monitor - indexing process:mdworker
  • From: Angela Yang <email@hidden>
  • Date: Fri, 22 Feb 2008 09:55:53 -0800
  • Acceptlanguage: en-US
  • Thread-topic: access active process in activity monitor - indexing process:mdworker

Hi, I need to figure out when the indexing is done, and I thought the easiest way is to check if the process ‘mdworker.’

If it is active, then the indexing is still going, and when it goes into sleep (inactive), then indexing is done.

 

For that, I need to access the list of active processes (not all processes) and see if ‘mdworker’ is there on the list.

I have used the code below, but it does not work since it looks up every active/inactive process. I need to get the active ones.

 

Tell application “System Events”

                If exists application process “mdworker” then

 

I tried with shell scripting with command ‘ps’, but the process status showing there is very unstable (keeps going into idle and coming back out to active status)

 

So I thought the best way is to access the active process list on the Activity Monitor since it is very stable there, but I am having difficult time figuring out that by using apple script.

 

Any help would be very appreciated. I am a beginner to apple script, so if possible, if you could write some code that does what I need, I would really appreciate.  ( I need to get this thing done fairly soon, so I am quite desperate)

 

Thanks!

 _______________________________________________
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

  • Follow-Ups:
    • Re: access active process in activity monitor - indexing process:mdworker
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Scripting Entourage to send an email dialogue issue
  • Next by Date: Play sound?
  • Previous by thread: Re: Scripting Entourage to send an email dialogue issue
  • Next by thread: Re: access active process in activity monitor - indexing process:mdworker
  • Index(es):
    • Date
    • Thread