Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

Tuesday, November 6, 2012

iStat Pro Mountain Lion (FIX)

This tweak will bring back the processes to iStat Pro widget in Mountain Lion:

1. Go to:

/Library/Widgets or ~/Library/Widgets

2. Select iStat Pro, right click, and select Open Package Content.



3. Open Wide.js or Tall.js file in some editor (Wide is for horizontal view, Tall for vertical)
**in my case i use horizontal, so I'm just gonna open Wide.js**

4. Locate the following code:


if(p.v("processes_sort_mode") == 'cpu')
widget.system('ps -arcwwwxo "pid %cpu command" | egrep "PID|$1" | grep -v grep | ' + exclude + ' head -7 | tail -6 | awk \'{print ""$1""$2""$3,$4,$5"
"}\'', function(data){ _self.updateProcessesOut(data);});else
widget.system('ps -amcwwwxo "pid rss command" | egrep "PID|$1" | grep -v grep | ' + exclude + ' head -7 | tail -6 | awk \'{print ""$1""$2""$3,$4,$5"
"}\'', function(data){ _self.updateProcessesOut(data);});}


5. Change "PID|$1" to "PID| $1" (Add space before $ sign)


6. Save the changes

7. remove widget and re-add it Dashboard, and it should be fixed