Jump to content

Mr Pennyworth

Member
  • Content Count

    71
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Mr Pennyworth

  1. @dood yep, it'll definitely be helpful! In addition to the in-Alfred debug log, also useful would be the debug logs for 'AlfredGifBrowser'. Here's how to collect it: Run `killall AlfredGifBrowser` in terminal Open the workflow folder in terminal Run `AlfredGifBrowser.app/.Contents/MacOS/AlfredGifBrowser` (this will make the logs appear right in the terminal) Run the workflow v0.0.3 and press the arrow keys so that it crashes
  2. @evanfuchs Interesting... Given that the GUI import isn't working anyway and you had to import using the command line, here's something you can try: Look at the command you used for importing the oxford dictionary. In that command, after the word 'import', you had to provide the path to the '.dictionary' file, right? Run the same command, but this time, change that path to the appropriate path from '/Users/xxx/Library'... Also if you could tell me what such a path looks like, I can add it to the workflow so that the dictionaries in this library folder are also detected by the
  3. It only lists dictionaries that are installed/available on your system. They are in /System/Library/AssetsV2/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/ And not all of them are importable. To get a list of all the importable ones, run these in terminal: cd '/System/Library/AssetsV2/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/' python -c 'import glob; print("\n".join(glob.glob("*.asset/AssetData/*.dictionary")))' If the above shows multiple dictionaries, but still not the .dict-import command in Alfred, I believe it might still
  4. Ah! the theming looks unfortunate While I figure out how best to fix it, here are your two options: Change Alfred's theme to one where color of Alfred's window is different from color of the text in search bar (right now, in your theme, both of those colors are white) If you don't want to change the these, alternatively: open this file '/Users/<username>/Library/Application Support/Alfred/Workflow Data/mr.pennyworth.betterDicts/<dict-ID>/html/dict-entry.css' (by using appropriate <username> and <dict-ID>) At the top, you'll find some co
  5. Can you share the command you ran before (the one with tmp) and the command you ran now? Just want to make sure that the tmp part is the only thing that changed and nothing else got unintentionally changed... From the output, it appears that something else also changed apart from tmp...
  6. @evanfuchs aw man that's the worst. A bug that goes away when run from terminal. That's a known bug with no solution yet https://github.com/pyinstaller/pyinstaller/issues/5109 But in my trials that bug wasn't getting triggered. I have tested this workflow only on Catalina by the way. Are you on Catalina or some other version? While I think about how I could go about debugging / diagnosing this, you could manually import a dictionary. By running the same command as above, but using '/Users/<your username here>/Library/Application Support/Alfred/Workflow Data/mr.pennywort
  7. @evanfuchs could you try the following? Open the workflow folder in terminal and run ./BetterDict.app/Contents/MacOS/BetterDict listUnimported /tmp/ The output will contain path to the macOS dictionary file for the Oxford Dictionary. Let's say it is /a/b/c Then, run this command: killall alfred-dict-server; killall BetterDict; ./BetterDict.app/Contents/MacOS/BetterDict import '/a/b/c' /tmp/ The above command is basically for importing and extracting the dictionary into the temporary folder instead of the workflow data dir. We want to run BetterDict from terminal because
  8. @chriswebb Can you click on "Open in Terminal" (as shown in your screenshot) and then try each of these commands and tell me the outputs? xattr -d com.apple.quarantine ./BetterDict.app xattr -d com.apple.quarantine ./BetterDict.app/Contents/MacOS/BetterDict ls -alh ./BetterDict.app/Contents/MacOS/BetterDict chmod +x ./BetterDict.app/Contents/MacOS/BetterDict After running them all, also check if the workflow starts working, and if not, lemme know what the log looks like
  9. @dood whoa! that sounds like such an ordeal and so much trouble I wish I could help, but I'm not able to replicate the issue Here's what I did: Downloaded and ran v0.0.3, worked as expected Created another user account on my macbook (so alfred gets to have a clean slate), then repeated (1), again worked as expected Installed Alfred on a spare macbook I have, then repeated (1), couldn't trigger the bug At this point, I don't have much to go on... Are you on macOS other than Catalina? I have no means of testing on versions other than Catalina Does A
  10. @chriswebb is the workflow enabled? Can you share a screenshot of the workflow editor? Also, the debug logs...
  11. @vitor Absolutely! ☺️ Isn't the former what most programmers strive to do? Rigorous considerations of memory usage, cpu usage, disk IO, network latency etc, and meticulous design considerations. So I thought it doesn't need defending. Be as it may, I stand corrected. Looking at all the examples you posted, you're definitely not averse to quick-and-dirty hacking and tinkering The conclusion that I drew that it is a core MIT-vs-Berkeley philosophical difference seems to have been wrong! More like it was based my own lack of foresight and all-round understanding of Al
  12. Hey @chris, I'm not saying you've formed such an impression, but in case that you have, I want to clarify, if my understanding of how Alfred works is correct, that number of script filters in itself shouldn't be a performance concern. The calculator workflow needs to deal with numbers, so it has 10 script filters. This one needs to deal with all strings, so it has more than 40. That no way makes it 4 times worse. Imagine, instead of 40, I had added one script filter each for all the letters in extended ascii, or, for that matter, all the unicode code points that I want (that would mean hu
  13. OMG!! dayum! my bad at creating that impression! I so didn't come up with it independently! Learnt from that workflow and all credit belongs to them. I had mentioned it here but should've mentioned in our discussion the other day too! (which I just edited to reflect the origin of the idea)
  14. Gee, thanks! ☺️ Yep, very much understandable! Valid points! In fact, the points you made are a short and condensed version of all the "caveats and disclaimers" I explained here: I think we differ in our core philosophies, your arguments make me believe you might be more of the "MIT philosophy" guy while I find "worse is better" more appealing (https://www.jwz.org/doc/worse-is-better.html). Furthermore, if there's something I really really want, and I have no control over "the correct way of doing it", I would rather go ahead and put together some
  15. The "Calculate Anything" workflow does this. Ingenious and brilliant, isn't it! Blew my mind when I saw it! https://github.com/biati-digital/alfred-calculate-anything
  16. @swiggy if you want to search through previous queries, you can use this workflow:
  17. @40-02 @deanishe @vitor Here you go: It's rough around the edges, but better than nothing
  18. Alfred History Search An Alfred workflow to search through query history, and execute queries from history. Note: This post might be out-of-date. Here's the up-to-date README. Usage Download the latest release Searching Through Query History Assign hotkey trigger (⌃R recommended)While using Alfred, press the hotkey. Alfred's query history will show up: Start typing to search through the query history. Actioning any of the history entries makes Alfred search that query. Deleting Query History Type .clear-afred-query-history in Alfred.
  19. oh wow!! Just switched from "wait until previous script finishes" to "terminate previous scripts" So much snappier and much less flickering! No idea why I had set that setting in the first place 🤦🏻‍♂️
  20. @deanishe is right in pointing this out. Rather, I would even go ahead and make a guess that Alfred's not designed to be used this way. However, in the spirit of tinkering, if we're okay with ugly, unwieldy hacks to just see what's possible, what you're asking @lukerooneyio, can be done. Edit: learnt this cool trick from: https://github.com/biati-digital/alfred-calculate-anything Be warned: It is ugly It is possible that it has performance issues It leads to inconsistency That out of the way, here's how one could go about achieving the end result
  21. @chris I've put together a small tutorial for workflow authors here: https://github.com/mr-pennyworth/alfred-extra-pane#tutorial And a few question-answer pairs for technical internals here: https://github.com/mr-pennyworth/alfred-extra-pane#technical-qa I see a few problems with swiftUI: I would imagine there are far more workflow authors who can put together nice looking HTML than swiftUI, all the complexities of the implementation of the extra pane aside, as far as the workflow authors are concerned, I want the integration to be as simple and fri
  22. Thanks @chris! When you want a panel to be shown at side, and some HTML to be show inside it, yep, you can use the AlfredExtraPane.app. All you got to do is add an html filepath to quicklookurl of the JSON and then pipe it to the app (the readme has an example). For building something like this GIF workflow, it is true that AlfredExtraPane.app was an inspiration, but it can't just directly be used to build the GIF workflow, it isn't flexible enough. For this GIF workflow, I simply took the code of AlfredExtraPane.app and modified it to fit the GIF needs, thus programming in swift was i
  23. Alfred GIF Search Download: Gif.Search.alfredworkflow Up-to-date README (this post might be outdated) This workflow lets you search GIFs on Tenor from Alfred. Here's an example of searching and inserting a GIF in a google doc: Installation Download the latest release. In Alfred, run .setup-gif-search. Usage In Alfred, enter gif keyword followed by search query. Press ↩. Use arrow keys or mouse to browse the GIFs. To copy the selected GIF to clipboard: either ⌘↩ or ⌘-click To drop the GIF into
  24. FAstest eMOji Search (FAMOS) Instant search for emojis in Alfred with related keywords in 25 languages This post might be outdated, link to up-to-date README Download the latest versions: github release FAMOS speaks many languages! FAMOS uses emojibase, which is an excellent library, meticulously curated. So, all the languages that emojibase supports, FAMOS automatically does too. FAMOS is the fastest! 10x to 20x faster compared to alfred-emoji and EmojiTaco! FAMOS launches in under 20 miliseconds (imperceptible), while both the othe
×
×
  • Create New...