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

Re: access active process in activity monitor - indexing process:mdworker


  • Subject: Re: access active process in activity monitor - indexing process:mdworker
  • From: Philip Aker <email@hidden>
  • Date: Sat, 23 Feb 2008 03:25:48 -0800

On 2008-02-22, at 09:55:53, Angela Yang wrote:
Hi, I need to figure out when the indexing is done, and I thought the easiest way is to check if the process ‘mdworker.’

mdworker is very low in the system and called by the other MetaData facilities. You shouldn't be addressing it directly. At least one of the MetaData facilities is always on even if the user has turned off indexing for all the currently mounted volumes. So I think it best if you try to narrow down the scope of your problem.

For instance the most common problem developers have in this area is finding out that mds has marked a file 'busy' even though they have just deleted it by the recommended file system call. There is a way around this particular problem so if that's your problem, it is solvable.

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

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)



_______________________________________________
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: 
 >access active process in activity monitor - indexing process:mdworker (From: Angela Yang <email@hidden>)

  • Prev by Date: Re: osascript broken?
  • Next by Date: Re: osascript broken?
  • Previous by thread: access active process in activity monitor - indexing process:mdworker
  • Next by thread: Play sound?
  • Index(es):
    • Date
    • Thread