Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by raguay.customct

  1. I have been having problems with too many open files on my system. To monitor it, I created this workflow to use the lsof command line to see what process is opening the most files. Keywords: tof:set This keyword expects a number for the number of entries to be shown. tof:top This shows the top processes that have open files. The number shown is controlled by the "tof:set" keyword. tof:number This keyword shows the total number of open files on your system. Packal: http://www.packal.org/workflow/top-number-open-files-workflow GitHub: https://github.com/raguay/MyAlfred Version: 1.0 Date: 01/05/2016
  2. I just updated this workflow to work with the latest version of iTerm and Commander One. Enjoy.
  3. I just updated this workflow for the latest version of iTerm and Commander One interfacing. Give it a try!
  4. This workflow will allow you to open the current file in Finder, Path Finder, or Commander One in Emacs. This workflow makes use of the emacsclient command. File Actions Edit in Emacs (Current Window) and Edit in Emacs (New Window) will open the file in the Alfred Browser in Emacs. Keywords: em:open This will open the currently selected file in Finder, Path Finder, or Commander One in the currently running Emacs. em:top This brings the Emacs window to the top. File Filter: em:fopen and em:fopennew will give a list of files that match the name typed by the user. The selected file is then opened in Emacs. GitHub: https://github.com/raguay/MyAlfred Packal: http://www.packal.org/workflow/emacs-workflow Version: 1.0 Date: 01/05/2016
  5. Done and submitted to Packal and my GitHub account. Version 1.1. Have fun!
  6. Strange. It is showing 1.6 for me and downloads okay. You might have a stuck cache in your browser. Clear browser cache, close the browser, and re-open and see if it shows the right thing.
  7. The Packal link is now available! They are adding scripting to the program in a future release. So, expect more addition then!
  8. Quiver Workflow This workflow allows you to create templates with Handlebar syntax inside of the Quiver program. To use the workflow, you have to have Node.js installed first. I recommend using [Homebrew](http://brew.io) to install it. You need to make sure you have Node.js 6.0+ on your system. As of this update, I am using node.js 6.6. With the node program installed, set the environment variable nodeProg to the right to the directory path of the program. If you used HomeBrew, it should be "/usr/local/bin/node". Once Node.js is installed, go to your Quiver Library file in Alfred Browser and select the “Set Quiver Library” file action. This tells the workflow where your templates (or snippets) are to be kept. Create a workbook called “Snippets” with one note called Defaults. The Defaults note has to have one code block set to JSON and the defaults for the Handlebar expansions set. The rest of the notes will be templates. When you run “qt”, it will list all of your snippet in the Snippets notebook. When you select one, it will be expanded with any json cell the note and the Defaults json note data. There are several special helper function for Handlebars defined. They are: {{userfillin <text>}} The user will be asked for the value of the text to be inserted at that point in the snippet. This gives a way to add text to a snippet upon expansion. {{clip <num>}} This command will get the specified clipboard entry and put it in it's place. The <num> starts at 0 for the previous clipboard. The environment variable clipHist defined to the right will determine how far back in history of the clipboard will be retrieved. The larger the number, the slower the program is running. {{env <variable name>}} This command will get the environment varable specified and put it in it's place. Therefore, the macro {{env "alfred_workflow_data"}} will put the contents of the alfred_workflow_data environment variable in it's place. {{save <name> <text>}} This command creates a helper named “<name>” with the expanding text of “<text>”. It also places the given “<text>” at the point of definition. This allows you to create text snippets on the fly inside the template. Very handy. {{clipboard}} This helper command places the current clipboard contents at the point in the template. {{date <format>}} This will format the current date and time as per the format string given. See the help document that is loaded upon initialization. {{date <date/time> <format>}} This takes the date/time string and formats it according to the format given. See the help document that is loaded upon initialization. {{copyclip <num>}} Inserts the copyclip <num> into the location of the macro. The following data expansions are defined as well: {{cDateMDY}} gives the current date in Month Day, 4-digit year format {{cDateDMY}} gives the current date in Day Month 4-digit Year format {{cDateDOWDMY}} gives the current date in Day of Week, Day Month 4-digit year format {{cDateDOWMDY}} gives the current date in Day of Week Month Day, 4-digit year format {{cDay}} gives the current date in Day format {{cMonth}} gives the current date in Month format {{cYear}} gives the current date in 4-digit year format {{cMonthShort}} gives the current date in Short Month name format {{cYearShort}} gives the current date in 2-digit year format {{cDOW}} gives the current date in Day of Week format {{cMDthYShort}} gives the current date in Month day 2-digit year format {{cMDthY}} gives the current date in Month Day 4-digit year format {{cHMSampm}} gives the current date in h:mm:ss a format {{cHMampm}} gives the current date in h:mm a format {{cHMS24}} gives the current date in H:mm:ss 24 hour format {{cHM24}} gives the current date in H:mm 24 hour format You can also specify an area to split up the expansion using the "%|% character. If the "%|" characters are in a clip, the first part is pasted directly while all the other parts are put into copy clips starting at 1. You can then paste each part by pasting the corresponding copy clip. This workflow has the feature to save and paste copy clips: clips of text. You assign each clip a name (ie: 1, 2, a, b, life, etc) when you save it. It is kept until you save on top of it again. You copy and paste using a hotkey (I use ctrl-c and ctrl-v). Version: 3.0 Date: 07/04/2017 Packal: http://www.packal.org/workflow/quiver-workflow Github: https://github.com/raguay/MyAlfred
  9. When using a keyword action, just paste it in after the keyword with cmd-v. How is what you are suggesting any different?
  10. Yes. I am having connection problems with GitHub (I live in Thailand). The Packal one is now showing version 1.6 and is downloading okay. Trying GitHub again through a VPN. Hopefully I can get it there soon.
  11. Packal might not have it synchronized yet. Sorry, it is 1.6 and is now visible on Packal.
  12. Just updated my GitHub and Packal with the latest version adding: New Actions: Copy/Move to Parent Directory These two actions will copy/move the selected file to the parent directory. Copy File Contents to Pasteboard This action will copy the contents of the file to the pasteboard. New commands with hotkeys: ab:cparent This command will get the currently selected file in Finder, Path Finder, or Commander One and copy it to the parent directory. Works on files or directories. ab:mparent This command will get the currently selected file in Finder, Path Finder, or Commander One and move it to the parent directory. Works on files or directories. ab:cfile This command will copy the contents of the file to the clipboard. You need to be sure it is a text file.
  13. Just updated the workflow with those actions.
  14. Or, save you Excel file as a list to a plain text file and use my Next Item Workflow (http://www.alfredforum.com/topic/1607-next-item-workflow/) to sequentually go through the items in the file. Putting items into a web form would be difficult, but can be automated with Shortcat (https://shortcatapp.com/) and Google Chrome with Accessability turned on.
  15. I think I have figured this out a little more. It happens in a fresh booted, low number of applications running as well. It happens with script filters and just keywords alike. Tab completion of the name of the keyword fails periodically, but it always works with a carriage return if an input is required (because otherwise it is just actioned). It is happening with new and old ones, but doesn't seem to have a reason that I can tell when it will work or not. I have now realized that I use carriage return more than tab for these and therefore noticed it more while I have been trying to track it down.
  16. Completion on keywords that do not accept an argument is broken for old workflows. But, if I change the settings and save the workflow item, then it always works fine. But, with over 80 workflows with many keywords defined, that would take me a long time to reset and re-save all of them. This is using version 2.8.1 (423).
  17. Yep, that seems to of fixed it. My tab completion is working again too! It had died on some workflow with 2.8, but I was having a hard time parameterizing it for reporting. Thanks.
  18. Hi, the problem was so bad, I had to roll back to the last 2.8 version from the website. Interestingly, my Mac Mini doesn't show this problem. Just my Macbook Air. Both are running the latest public beta of El Capitan (10.11.2 beta (15C27e)).
  19. It has now done it twice that I had to kill the process and restart to get it working. I figured out one thing: Range {0, 7} out of bounds; string length 5 This is referring to the Alfred Browser input. The string length in the browser is always the same as the "string length" item. Therefore, Alfred is looking at the string and over shooting the bounds all the time. Once done enough times, it locks up very hard.
  20. I just updated to the latest release and it started locking up. The console program is giving these errors: 11/10/15 12:05:03.892 PM Alfred 2[10385]: -[__NSCFString replaceOccurrencesOfString:withString:options:range:]: Range {0, 7} out of bounds; string length 5 11/10/15 12:05:03.896 PM Alfred 2[10385]: ( 0 CoreFoundation 0x00007fff8ba1cc72 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff91d9ef7e objc_exception_throw + 48 2 CoreFoundation 0x00007fff8ba1cb1d +[NSException raise:format:] + 205 3 CoreFoundation 0x00007fff8b970b8f -[__NSCFString replaceOccurrencesOfString:withString:options:range:] + 255 4 Foundation 0x00007fff9d5b4bed -[NSString stringByReplacingOccurrencesOfString:withString:options:range:] + 184 5 Alfred 2 0x000000010000c12d Alfred 2 + 49453 6 AppKit 0x00007fff8e0c99fa -[NSView _drawRect:clip:] + 3626 7 AppKit 0x00007fff8e0c82d9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1873 8 AppKit 0x00007fff8e0c86b6 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2862 9 AppKit 0x00007fff8e0c86b6 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2862 10 AppKit 0x00007fff8e0c86b6 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2862 11 AppKit 0x00007fff8e0c61ff -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 838 12 AppKit 0x00007fff8e218ae0 -[NSNextStepFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 284 13 AppKit 0x00007fff8e0c1fc7 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2449 14 AppKit 0x00007fff8e07c749 -[NSView displayIfNeeded] + 1950 15 AppKit 0x00007fff8e0b776a -[NSWindow _setFrameCommon:display:stashSize:] + 3835 16 AppKit 0x00007fff8e0b6860 -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 222 17 AppKit 0x00007fff8e0b677b -[NSWindow setFrame:display:] + 67 18 Alfred 2 0x0000000100005af3 Alfred 2 + 23283 19 Alfred 2 0x000000010000b65f Alfred 2 + 46687 20 Alfred 2 0x000000010000a8e8 Alfred 2 + 43240 21 CoreFoundation 0x00007fff8b9d68fc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 22 CoreFoundation 0x00007fff8b9d686f ___CFXRegistrationPost_block_invoke + 63 23 CoreFoundation 0x00007fff8b9d5f37 _CFXRegistrationPost + 407 24 CoreFoundation 0x00007fff8b9d5ca2 ___CFXNotificationPost_block_invoke + 50 25 CoreFoundation 0x00007fff8b9cff32 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922 26 CoreFoundation 0x00007fff8b8bea85 _CFXNotificationPost + 693 27 Foundation 0x00007fff9d592921 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 28 Alfred Framework 0x00000001000bfe34 -[AlfredWorkflowManager setSearchQuery:] + 1297 29 Foundation 0x00007fff9d618d4b __NSThreadPerformPerform + 279 30 CoreFoundation 0x00007fff8b92ce41 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 31 CoreFoundation 0x00007fff8b91ed5c __CFRunLoopDoSources0 + 556 32 CoreFoundation 0x00007fff8b91e27f __CFRunLoopRun + 927 33 CoreFoundation 0x00007fff8b91dc78 CFRunLoopRunSpecific + 296 34 HIToolbox 0x00007fff932a6935 RunCurrentEventLoopInMode + 235 35 HIToolbox 0x00007fff932a6677 ReceiveNextEventCommon + 184 36 HIToolbox 0x00007fff932a65af _BlockUntilNextEventMatchingListInModeWithFilter + 71 37 AppKit 0x00007fff8e078ec6 _DPSNextEvent + 1067 38 AppKit 0x00007fff8e445621 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 39 AppKit 0x00007fff8e06eda0 -[NSApplication run] + 682 40 AppKit 0x00007fff8dff10ec NSApplicationMain + 1176 41 Alfred 2 0x000000010000170c Alfred 2 + 5900 ) 11/10/15 12:05:50.881 PM Alfred 2[11561]: [TIMER] 1.949491 seconds to initialise Alfred 11/10/15 12:05:55.418 PM Alfred 2[11561]: Bartender: Loaded BartenderHelperNinetySix Let me know if there is any other information I can get for you.
  21. This workflow does web scraping on the http://www.thai-language.com/ site to translate words from english to thai/thai to english. It does an exact match first. If the exact match fails, then it does an inexact match. Consequently, the results do not always produce what you would expect all the time. This workflow requires Node.js to be installed already. Remember to set the result count with “tt:setcount”! tt:engthai Translate an English word to Thai. tt:thaieng Translate a Thai word to English. tt:setcount Set the number of results to display to the user. Packal: http://www.packal.org/workflow/thai-translation-workflow My Github: https://github.com/raguay/MyAlfred Version: 1.00
  22. Just updated the Alfred Browser Workflow to work with Commander One file manager as well. If you do not have Commander One, you owe it to yourself to check it out: http://mac.eltima.com/file-manager.html
  23. If you download version 1.2, please re-download version 1.3. I had forgotten about the option to use the clipboard as a template. Version 1.3 should have that now.
  24. I just updated the workflow to use a Haskell made directory lister for the templates. It now shows the templates and the filtering 100% faster. Let me know if you see anything else to improve.
×
×
  • Create New...