zhaocai / alfred2-top-workflow Goto Github PK
View Code? Open in Web Editor NEWAlfred 2 Workflow: 1) Top Processes Based Memory, CPU, and IO Usage; 2) Get a Glance of System Status
Home Page: http://zhaocai.github.com/alfred2-top-workflow/
Alfred 2 Workflow: 1) Top Processes Based Memory, CPU, and IO Usage; 2) Get a Glance of System Status
Home Page: http://zhaocai.github.com/alfred2-top-workflow/
Hey,
Looks really cool, but it doesn't work on my machine.
Also tried to run the 10.9 fix and got an error. Is this a known issue?
Thanks
Hello,
This is more a feature request:
In Activity Monitor, it shows the total memory that is used, the memory that is wired etc.
Is it possible to get that value as well in this workflow.
ERROR me.zhaowu.top : A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
#<ArgumentError: invalid byte sequence in UTF-8>
./alfred2_top_workflow.rb:131:in split' ./alfred2_top_workflow.rb:131:in
block in ps_list'
./alfred2_top_workflow.rb:130:in each' ./alfred2_top_workflow.rb:130:in
ps_list'
./alfred2_top_workflow.rb:168:in top_processes' ./alfred2_top_workflow.rb:257:in
block in
with_friendly_error' ./alfred2_top_workflow.rb:246:in
'Hi there! As lovin' this workflow I got sad after upgrading my Mac to 10.9. Now it seems to be broken as there are no processes showing up in the list.
in Alfred after tapping top get
Starting debug for 'Top Processes'
[2019-03-24 21:11:41][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ./alfred2_top_workflow.rb:20:in `<main>'
Hello
I just cloned the repo today and when I run rake install or rake -T, inside the repo, I get the following error:
alfred2-top-workflow/ (master) $ rake -T
rake aborted!
cannot load such file -- plist
/User/x/alfred_workflows/alfred2-top-workflow/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
Gather processes consuming most io.
iotop
is too slow and could hang the mouse cursor.fs_usage
I'm using the latest non-big-cats named version of OS X. This WONDERFUL Alfred Workflow is not working in this new version of my desktop OS. I type "top" and the only thing that appears is the "Help! Show me the usage page!" link. The wonderful display of top does not appear. Nor does it work with the keyboard shortcut.
** For the record, it worked fine in 10.8.x for me. I loved it! I'm only reporting this so it's on record (and in case someone else reports contradictory success - as I'd love to be able to fix it on my end **
(Please forgive me for sounding vague or confusing -- I'm trying to avoid saying the word or using the numbers. Once upon a time someone was upset with me for mentioning a beta version in an issue queue -- because of NDA's and what-not).
Cheers
just wondering... :)
Doesn't work on OSX 10.11,please update !
Hey,
is it possible to make "top" -c the default sort method when i just type "top"?
Let's take the initiative and set one order default; would prefer that over randomly sorted items until i decide to be specific.
Thx,
Louis
ERROR: Top Processes[Script Filter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
require': cannot load such file -- alfred (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' from ./alfred2_top_workflow.rb:20:in
ERROR me.zhaowu.top : A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
#<NoMethodError: undefined method `ljust' for nil:NilClass>
./alfred2_top_workflow.rb:235:in `generate_feedback'
./alfred2_top_workflow.rb:219:in `each'
./alfred2_top_workflow.rb:219:in `generate_feedback'
./alfred2_top_workflow.rb:259
/Users/trodrigues/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.B69DA4EF-206C-4D10-A891-33BA2B8D29C6/bundle/ruby/1.8/gems/alfred-workflow-1.2.7/lib/alfred.rb:26:in `with_friendly_error'
./alfred2_top_workflow.rb:253
If I want to use cmd "lsof",I should query the process id by appName,but there is no function to query the process id?
Each time I run top -i
I get a silent, but logged fatal error - see below:
E, [2017-08-04 10:33:32 #16288] ERROR -- me.zhaowu.top: A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
#<NoMethodError: undefined method `each_pair' for []:Array>
./alfred2_top_workflow.rb:131:in `generate_feedback'
./alfred2_top_workflow.rb:204:in `on_action'
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:229:in `block in start_handler'
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred/handler.rb:126:in `block in each_handler'
(eval):53:in `each'
(eval):53:in `each'
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred/handler.rb:125:in `each_handler'
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:228:in `start_handler'
/Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.039791F6-83CA-41DF-A832-105259E169BF/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:83:in `with_friendly_error'
./alfred2_top_workflow.rb:424:in `<main>'
The error message is :
E, [2015-09-05 10:14:40 #23264] ERROR -- me.zhaowu.top: A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
#<NoMethodError: undefined method <' for nil:NilClass> ./glance.rb:88:in
add_fan_speed_item'
./glance.rb:74:incollect_temperature' ./glance.rb:48:in
collect'
./glance.rb:315:ingenerate_feedback' ./glance.rb:324:in
block in
with_friendly_error' ./glance.rb:322:in
'
I guess it's because that the new MacBook doesn't have a fan, so you don't get the fan speed.
Sometimes I want to kill coreaudiod (sound stack) or blued (bluetooth stack) because they do not work anymore.
But kill in alfred do no do sudo elevation. Could it be added? Can't kill those without sudo
Tried installing through repo and standard point and click, both resulted in the following error:
$ tail /Users/pedram/Library/Logs/Alfred-Workflow.log
E, [2013-11-12 00:55:42 #10433] ERROR -- me.zhaowu.top: A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
#<NoMethodError: undefined method `split' for nil:NilClass>
./glance.rb:46:in `collect_temperature'
./glance.rb:32:in `collect'
./glance.rb:284:in `generate_feedback'
./glance.rb:293:in `block in <main>'
/Users/pedram/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.316E8A5F-6CC4-42E1-93C2-5D379CEECA78/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:82:in `with_friendly_error'
./glance.rb:291:in `<main>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.