zhaowu
Member-
Posts
98 -
Joined
-
Last visited
-
Days Won
1
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by zhaowu
-
The workflow is here http://d.pr/f/KWLk
-
One more question about the JSON utility. I guess it is the scopes key under config tells the following file filter to limit search with scopes. Where can I find information about what config is accepted by which input object like file filter? { "alfredworkflow" : { "config" : { "scopes" : [ "{query}" ] }, "variables" : { "folder" : "{query}" } } }
-
I forgot to check console log ( only tried to debug with Alfred debug utility ). Now I check it again, I got the following message repeating for each keystroke. 9/8/16 13:39:50.608 Alfred 3[902]: -[__NSArrayI stringByStandardizingPath]: unrecognized selector sent to instance 0x7fe648c70540 9/8/16 13:39:50.609 Alfred 3[902]: An uncaught exception was raised 9/8/16 13:39:50.609 Alfred 3[902]: -[__NSArrayI stringByStandardizingPath]: unrecognized selector sent to instance 0x7fe648c70540 9/8/16 13:39:50.613 Alfred 3[902]: ( 0 CoreFoundation 0x00007fff960cf4f2 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff99345f7e objc_exception_throw + 48 2 CoreFoundation 0x00007fff961391ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff9603f571 ___forwarding___ + 1009 4 CoreFoundation 0x00007fff9603f0f8 _CF_forwarding_prep_0 + 120 5 Alfred Framework 0x00000001004ae6f9 -[AlfredMetadataQuerier startQuery] + 522 6 Alfred Framework 0x00000001004d03cc -[AlfredWorkflowInputFileFilter filterWithQuery:] + 837 7 Alfred Framework 0x00000001004a2015 -[AlfredWorkflowManager setDirectQuery:forInput:] + 109 8 CoreFoundation 0x00007fff9605abbc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 9 CoreFoundation 0x00007fff9605ab4f ___CFXRegistrationPost_block_invoke + 63 10 CoreFoundation 0x00007fff9605aac7 _CFXRegistrationPost + 407 11 CoreFoundation 0x00007fff9605a832 ___CFXNotificationPost_block_invoke + 50 12 CoreFoundation 0x00007fff960175e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922 13 CoreFoundation 0x00007fff96016835 _CFXNotificationPost + 693 14 Foundation 0x00007fff94d1b17a -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 15 CoreFoundation 0x00007fff9605abbc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 16 CoreFoundation 0x00007fff9605ab4f ___CFXRegistrationPost_block_invoke + 63 17 CoreFoundation 0x00007fff9605aac7 _CFXRegistrationPost + 407 18 CoreFoundation 0x00007fff9605a832 ___CFXNotificationPost_block_invoke + 50 19 CoreFoundation 0x00007fff960175e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922 20 CoreFoundation 0x00007fff96016835 _CFXNotificationPost + 693 21 Foundation 0x00007fff94d1b17a -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 22 AppKit 0x00007fff93b72267 -[NSTextView(NSSharing) didChangeText] + 345 23 AppKit 0x00007fff93b6f5e1 -[NSTextView insertText:replacementRange:] + 2674 24 AppKit 0x00007fff93b6e6e0 -[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 79 25 AppKit 0x00007fff93b6e683 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2250 + 127 26 AppKit 0x00007fff93b6e5f5 -[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 181 27 AppKit 0x00007fff9427ac2f -[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 428 28 AppKit 0x00007fff93b6e053 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke176 + 4253 29 AppKit 0x00007fff93b6cec8 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2 + 95 30 AppKit 0x00007fff93b6ce3b -[NSTextInputContext tryHandleTSMEvent_HasMarkedText_withDispatchCondition:dispatchWork:continuation:] + 101 31 AppKit 0x00007fff93b6cb2b -[NSTextInputContext handleTSMEvent:completionHandler:] + 3173 32 AppKit 0x00007fff93b6be5a _NSTSMEventHandler + 324 33 HIToolbox 0x00007fff97ebc7be _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1231 34 HIToolbox 0x00007fff97ebbc48 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 404 35 HIToolbox 0x00007fff97ebbaab SendEventToEventTargetWithOptions + 43 36 HIToolbox 0x00007fff97f10f7d SendTSMEvent_WithCompletionHandler + 417 37 HIToolbox 0x00007fff97f1146c __SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler_block_invoke + 400 38 HIToolbox 0x00007fff97f112bf __SendFilterTextEvent_WithCompletionHandler_block_invoke + 189 39 HIToolbox 0x00007fff97f10fcd SendTSMEvent_WithCompletionHandler + 497 40 HIToolbox 0x00007fff97f10daf SendFilterTextEvent_WithCompletionHandler + 236 41 HIToolbox 0x00007fff97f10a88 SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler + 284 42 HIToolbox 0x00007fff97f10838 __utDeliverTSMEvent_WithCompletionHandler_block_invoke_2 + 296 43 HIToolbox 0x00007fff97f106dc __utDeliverTSMEvent_WithCompletionHandler_block_invoke + 437 44 HIToolbox 0x00007fff97f104cf TSMKeyEvent_WithCompletionHandler + 721 45 HIToolbox 0x00007fff97f101c5 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 + 251 46 HIToolbox 0x00007fff97f10033 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 + 325 47 HIToolbox 0x00007fff97f0fd71 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 + 261 48 HIToolbox 0x00007fff97f0fb3a __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke + 253 49 HIToolbox 0x00007fff97f0f1f0 TSMProcessRawKeyEventWithOptionsAndCompletionHandler + 3199 50 AppKit 0x00007fff93b6bd0b __61-[NSTextInputContext _handleEvent:options:completionHandler:]_block_invoke955 + 131 51 AppKit 0x00007fff93b6a9ed -[NSTextInputContext tryTSMProcessRawKeyEvent:dispatchCondition:setupForDispatch:furtherCondition:dispatchWork:continuation:] + 131 52 AppKit 0x00007fff93b6a6e7 -[NSTextInputContext _handleEvent:options:completionHandler:] + 1266 53 AppKit 0x00007fff93b6a1ba -[NSTextInputContext handleEvent:] + 109 54 AppKit 0x00007fff93b6a0c3 -[NSView interpretKeyEvents:] + 204 55 AppKit 0x00007fff93b69eee -[NSTextView keyDown:] + 658 56 AppKit 0x00007fff94193b15 -[NSWindow _reallySendEvent:isDelayedEvent:] + 2108 57 AppKit 0x00007fff93bd2539 -[NSWindow sendEvent:] + 517 58 AppKit 0x00007fff93b5316a -[NSApplication sendEvent:] + 4382 59 Alfred 3 0x000000010046b086 Alfred 3 + 16518 60 AppKit 0x00007fff939b9df2 -[NSApplication run] + 796 61 AppKit 0x00007fff93983368 NSApplicationMain + 1176 62 libdyld.dylib 0x00007fff8d7b45ad start + 1 63 ??? 0x0000000000000001 0x0 + 1 )
-
you need to also change the ` GOOGLE_HOST = 'www.google.com'` in the lib/google_suggest.rb. I will try to find sometime to make this configurable.
-
json compiled from osx 10.9 does not work in osx 10.8. need to download the source and update the gem locally.
-
Can you run `LANG=en_US.UTF-8 /usr/bin/ruby ./instant.rb test` in the Terminal, give me the output and ~/Library/Logs/Alfred-Workflow.log? I do not have 10.8 installed to test. Thanks.
-
did it on purpose. Trust google to show up the best results. If I want to search in the browser, hit ⌘ + 3.
-
The reason for this issue is locale and related encoding issue: http://www.alfredfor...le-in-maverick/
-
Top Processes Based Memory or CPU Usage Workflow
zhaowu replied to zhaowu's topic in Share your Workflows
Updated. Go the github site to download. I have updated to OSX 10.9. Anyone who is still using 10.8 please check if it is still working and let me know. Thanks. -
Top Processes Based Memory or CPU Usage Workflow
zhaowu replied to zhaowu's topic in Share your Workflows
The reason for this issue is locale and related encoding issue: http://www.alfredforum.com/topic/3287-shell-script-locale-in-maverick/ -
found the solution: set it in /etc/launchd.conf setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8
-
I can prefix `LANG=en_US.UTF-8` before command to solve this. However, if I launch an application like SourceTree from Alfred. Then common command like `hub` would fail to execute from SourceTree. Is there any place to set default LANG globally?
-
Upgrade to maverick today and notice many of the scripts including some standard ruby gems raise exceptions. After a few hours debugging, the root cause identified is the encoding. Now the default is not utf-8. output from `locale` is LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=
-
Sorry, I forget the package does not include the Rakefile. You need to Delete the existing workflow from Alfred 2, clone the repo from https://github.com/zhaocai/alfred2-google-workflow to anywhere you like. Run `rake bundle:install && rake install` in the folder.
-
try to run the script `/usr/bin/ruby ./instant.rb {query}` from the command line and check the output. Also check the log: ~/Library/Logs/Alfred-Workflow.log
-
Top Processes Based Memory or CPU Usage Workflow
zhaowu replied to zhaowu's topic in Share your Workflows
not sure how to fix this. Maybe you can make a dumb workflow to output the feedback items directly and see how alfred responds. Then you may remove the items to the minimum and check where the problem is. -
Top Processes Based Memory or CPU Usage Workflow
zhaowu replied to zhaowu's topic in Share your Workflows
can you post the error message and log as we discussed before. I do not have Marverick installed to test. -
Top Processes Based Memory or CPU Usage Workflow
zhaowu replied to zhaowu's topic in Share your Workflows
updated. check it here http://zhaocai.github.io/alfred2-top-workflow/ -
I experience long delay ( > 3 second ) for any action. Sometimes, the `Python Launcher.app` show up briefly. Does anyone have the same issue?