Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 04/09/2021 in all areas

  1. vitor

    Questions from newbie

    Welcome @bebek. To both the Alfred forums and macOS! For many (most?) of us, Alfred is the first app we install on any Mac and we almost feel useless using macOS without it. It can get that ingrained in your usage. Like every closed-source software, you have to trust its creators. I wholeheartedly trust Alfred’s team (@Andrew and @Vero) and I recommend you stick around to meet them in the forums. You’ll see they care deeply for Alfred’s users and they have everything to gain from being truthful. Plus, they’re nice people in general.
    4 points
  2. biati

    Calculate Anything

    A new update has beed released 3.0.0 New: Now the Workflow settings are saved in the workflow variables.. New: Added support for data storage: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte, Zettabyte, Yottabyte, bit, Kibibyte, Mebibyte, Gibibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte. New: Added US Gallon in Volume conversions New: Added Fluid Ounces in Volume conversions New: Gallon now defaults to US Gallon (3.78541 Liters) to mimic the same results as other converters. You can sill type `1 uk gal in liter` or `1 ukgal in lite
    3 points
  3. deanishe

    Questions from newbie

    Absolutely. Alfred doesn’t upload any data to its creators or anyone else. In theory, it's potentially risky. In practice, it's just not an issue. Alfred is too small to be an attractive target. But If someone did create a malicious workflow, there are enough paranoid users (like me) running all manner of security software that it would be quickly spotted. If you must worry about something, worry about bugs, not enemy action.
    3 points
  4. Alfred internally has a URL scheme to open the preferences to certain pages, sometimes used by the ? keyword. I'm reluctant to make this a public accessible feature as this makes it significantly more tricky to make changes in the future for something which won't be used much. Having said that, in my wider plan, I do have some ideas written down to make a configurable user-facing "preferences" per workflow which would show when installing a workflow.
    3 points
  5. It was very easy for me because I already knew all of the necessary stuff (basic text parsing, structure of an Alfred snippet/snippet collection, creating a ZIP file in Python). I copied this list into my code editor (I use Sublime Text, but whatever), made sure each misspelling only had one correction (i.e. deleted all but one alternative), and pasted the text into a Jupyter Python notebook. Then I wrote the code to (a) parse the text into (misspelling, correction) pairs, (b) convert each pair into the appropriate structure for an Alfred snippet, (c) convert those stru
    2 points
  6. I'm a long time Alfred user (next month it will be a decade since my first powerpack puchase; I started with Alfred version 0.8.2). Even as a workflow creator/power user I consider my use of Alfred quite limited in scope: clipboard history, web searches, a few workflows with keywords, a few workflows with only hotkeys, and of course app launching. Anyway, I found out about Raycast yesterday and given that I'm away from my computer right now all I can do is read about it and watch YouTube videos. This is the only thread on Alfred Forum about Raycast (surprising!) so I t
    2 points
  7. you can import this list into a "list filter" object (which accepts a CSV input), set your client number as the argument, then link to a "Copy to Clipboard" output. or you can use @deanishe's I-sheet-you-not workflow
    2 points
  8. When searching for items inside clipboard history, it would be useful to be able to search by the app name from which the item was copied. For example, I know that I copied a password from my password manager app, but later in the day I don't know what to search for because the password has random characters and is buried down in the list with other copied items. So it would useful to be able to search for the app name.
    2 points
  9. Interesting. But yeah. Unicode strings are marvellous when you’re working with text content, but there’s a lot of stuff you want to treat as bytestrings (i.e. mostly text, encoding unknown), which is a PITA in Swift because it doesn’t really have bytestrings or even “char” literals.
    2 points
  10. Found this twitter thread that talks about why swift string methods are slower due to the encoding. Maybe useful I am aware of the Dean’s Medium article he shared on it. 🙃
    2 points
  11. After trying a few alternatives and not getting exactly what I wanted, I built my own workflow for searching JIRA tickets if you host your own JIRA Server (so not really intended for JIRA Cloud). I attempted to sign up for packal, but it isn't working very well so I used the contact form to submit my information but wanted to share my workflow here since I was excited that I finally finished it! Here is my promo snippet: https://github.com/scarstens/alfred-workflow-jira-search-utilities
    2 points
  12. thank you!! 🙌 that's what I thought I did, probably I was expecting Alfred to learn sooner? thanks again for this and your other great workflows, and for educating the community.
    1 point
  13. Here's a demonstration workflow that reconfigures a File Filter's scope by editing info.plist. Keyword dynsearch is the main “search” File Filter, and keyword dynset lets you change the scope of the main File Filter. Instead of storing a workflow/environment variable, it edits the File Filter config in info.plist, so you don’t need the extra Keyword and JSON Config. As the File Filter’s UID is hard-coded in the script (dynamic.py), you have to be careful not to delete the main File Filter (or to update the script with the new UID if you do).
    1 point
  14. Pretty much, yeah. A JSON Config is the only official way to dynamically-configure a File Search's scope. Unofficially, you could add a second File Filter to configure the search scope (instead of setting a workflow variable), and edit the File Filter’s scope directly in info.plist.
    1 point
  15. This workflow exports Word file(s) to PDFs and opens the PDFs in another application. Word’s built-in PDF function actually uploads the Word doc to Microsoft to be converted online. My workflow can do that (see USE_ONLINE_SERVICE in the configuration), but by default it uses macOS’s built-in ability to save a PDF file from the Print dialog. Scripting the Print dialog is clunky and slow, but doesn't have the obvious privacy concerns of uploading your Word docs to Microsoft. It should also be faster for very large documents. There's also a setting to tell the
    1 point
  16. See it it’s the one in Alfred Preferences → Features → File Search → Navigation.
    1 point
  17. dsrjarman

    NightShift

    @shmulvad What service! This is great, and does just what I was hoping. Thank you for putting this together. I might be back with more ideas...
    1 point
  18. Imagine being me, dreaming of a Soulver workflow and finding out 7 years later that it finally exist but my Mac is now too old to support/install Soulver 3... I want to die.
    1 point
  19. @deanishe: I will consider that. Haven't read about best practice regarding releasing workflows yet, as I just spent some minutes hacking it together. Will read up on it and release it. But it feels somewhat banal as I just hacked it together borrowing the most interesting parts from @vitor's NewFile. I feel it (or a better version of it) would do better as part of @vitor:s already excellent set of workflows which has more audience attraction and better chance of reaching those users that might have use for it. But if @vitor doesn't mind, I can look into releasing it as a separate one. Will gi
    1 point
  20. Value/arg and ARGV are command-line arguments, not environment variables. It looks like you’re using Node, which (I think) puts environment variables in process.env. If you want arg “moved” to an environment variable, so the second Script Filter has an empty query, add an Arg and Vars utility between the Script Filters with an empty Argument field, and a variable with the value {query}
    1 point
  21. it does allow paste from clipboard 🙂 just select the image slot, then paste
    1 point
  22. I Sheet You Not Create auto-updating workflows from Excel worksheets. Works like a List Filter but using an Excel file as the data source. I Sheet You Not is a workflow generator/template for Alfred 3. It reads data from an Excel workbook and displays them in Alfred. You can specify which rows and columns the data are read from, and changes to the data are picked up automatically by the workflow. Download and installation Download the workflow from Packal or GitHub releases and double-click the downloaded I-Sheet-You-Not-X.X.X.alfre
    1 point
  23. try this: replace 'Run Script' with 'Script Filter', set to 'No Argument', and use this code: myCycleCount="$(system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}')" cat << EOB {"items": [ { "title": "My Cycle Count: $myCycleCount", "subtitle": "anything else you want to show", "arg": "any arguments you want to pass" } ]} EOB
    1 point
  24. You need to remove the javascript: scheme and URL-decode it: const q=escape(location.href);location.href='https://papago.naver.net/website?locale=ko&source=auto&target=ko&url='+q; The full AppleScript to run that JS in the active tab is therefore: tell application "Safari" to do JavaScript "const q=escape(location.href);location.href='https://papago.naver.net/website?locale=ko&source=auto&target=ko&url='+q;" in front document
    1 point
  25. When copying code, you need to do it exactly. I wrote: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}' And you did: system_profiler SPPowerDataType grep "Cycle Count" awk '{print $3}' .
    1 point
  26. All you need is a Run Script Action with default settings and the following code: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}'. Then however you invoke it (e.g. Keyword Input) and how it outputs the information (e.g. Post Notification Output) is up to your preference.
    1 point
  27. deanishe

    creating directory

    Sure. But if you want a workflow that will continue to work on future systems, use Python 3. Python 2 is dead. Regardless of any other qualities of the language, that makes it a questionable choice for new code.
    1 point
  28. They're typing "Oor" which expands to "Organisation|", then they start typing "ssystem" to complete the word "Organisationssystem", whereby Alfred recognises the snippet keyword "ssy" and expands it (to "systemtheoretisch") even though "Expand snippets mid-string" is turned off. Alfred appears not to notice if an expansion has left the cursor mid-string, so if you immediately type another snippet keyword, it will expand it even though the cursor is mid-string and mid-string expansion is turned off.
    1 point
  29. https://git.deanishe.net/deanishe/alfred-unwatched-videos/src/branch/master/src/thumbnails.py I thought I had that redirected. Hmm.
    1 point
  30. biati

    Calculate Anything

    A new update has beed released 2.1.0 New: Removed exchangeratesapi as it now requires an API Key New: Added exchangerate.host New: Improved configuration. Now displays a list of time zones to choose from New: Improved configuration. Now displays a list of currencies to choose from New: Improved configuration. Now displays a list of languages to choose from Fixed: Unable to run/save configuration on certain cases Update directly from the workflow "Open Alfred and type calculate check for updates" or download manually the latest version from the releases p
    1 point
  31. It'd be really useful if snippets could recognise and maintain the case I use when triggering them. For example, if I type "lmk" Alfred would automatically expand it to "let me know". But if I type "Lmk" it would expand to "Let me know". Or "lMk" or "lmK" for that matter. At the moment I have to create two versions like so: Which I guess isn't so hard... but y'know. I used to use https://textexpander.com/ which allows for this, but in a fit of consolidation I was hoping to streamline my apps. t
    1 point
  32. godbout

    Alfred KAT

    hey no worries. yeah, it does actually make sense to put it at the end 😅️ i didn't spend too much time with OneUpdater to be honest because i quickly felt i wanted to 1) show the user there's an update as a result item 2) still have some control over when i update 3) play with Swift 😛 but yours is definitely the way to go if you don't want to be fiddling around and want something that works with any language.
    1 point
  33. Just want to say thank you @rob213! Your post saved me here. Cheers!
    1 point
  34. deanishe

    Alfred KAT

    I save them for the RTFMs Well, yeah. They're basically real-time data. But something like a weather forecast or KAT search results won't really suffer from being 5 minutes old. Cached results are keyed by search query. So if you search for "buster", but accidentally grab the ARM ISO, you can very quickly go back and grab the AMD64 one instead because the workflow loads the results for "buster" from the cache. It's basically for the case where you re-open Alfred and hit ↑ specifically to repeat a previous search. I dunno. Perhaps I just
    1 point
  35. deanishe

    Alfred KAT

    Yeah, I don't like that either, but it's essentially unavoidable given its simple, bolt-on nature. My updaters are arguably more user-friendly (depends on how the workflow dev uses them), but they need to be properly integrated into a workflow and aren't as flexible as OneUpdater. The Go one works the same way. The update example shows how it works. The caching API is the most important part of my libraries, imo. Any data retrieved from a server or app gets cached (even if only as long as the user is using the workflow) for speed. I think that's actu
    1 point
  36. deanishe

    TinyPNG

    Good luck with the exams!
    1 point
  37. Sorry folks for all the errors and failures you keep running into! The workflow is way too hacky with no good logging, error reporting and very poor debugging... I started working on a revamped version with detailed logging, less moving parts and a consolidated code base in a single swift binary, but work at my day job has gotten way too hectic and the revamping of workflows and bugfixes have taken a backseat I'd gladly merge pull requests though! Thanks and apologies!
    1 point
  38. So here's a workflow to open the current Finder window in Terminal or iTerm, depending on what you like to stick with. Also the other way round is possible. ft: open current Finder directory in Terminal tf: open current Terminal directory in Finder fi: open current Finder directory in iTerm if: open current iTerm directory in Finder For Path Finder fans: pt: open current Path Finder directory in Terminal tp: open current Terminal directory in Path Finder pi: open current Path Finder directory in iTerm ip: open current iTerm directory in Path Finder GitHub. Direct Do
    1 point
  39. drgrib

    New Bear Alfred Workflow

    I've created a new Bear Alfred workflow here: https://github.com/drgrib/alfred-bear It is faster compared to the current Bear Alfred workflow because it is written in Go instead of Python and has optimized SQL queries. It also adds tag searching and autocompletion, link pasting, and clipboard content to note on creation. I do appreciate the author of the original Bear Alfred workflow because I started mine from his design.
    1 point
  40. Right. I think it might be a scope thing. With the tell using a variable, the compiler doesn’t understand where to find things like tab or execute javascript (i.e. it doesn't know they're defined by Chrome). activate and window work fine because they’re defined by the OS, not individual apps (you can also tell apps that don't support AppleScript to activate, or enumerate their windows—even if you can't do anything else with them). I guess if you want to support multiple browsers, you could either use JXA (it supports variables for app names) or save the scripts as text
    1 point
  41. Diegobit

    Bluetooth Controller

    Really useful workflow! Works out of the box for me 👍 (as a developer I had homebrew, python etc)
    1 point
  42. By "result" I mean "item" in the following. I'm not sure what's the correct term 😝 "everything is a result" is an interesting philosophy. Reminds me of "everything is a file" philosophy of Unix. The universality brings simplicity and elegance too, no doubt! However, the discussion of a third "valid:" state made me wonder... (consideration of complexity and elegance aside) What if everything is not a result? If a result isn't valid, is it really a result? After all, nothing could be done with it. Alfred already has specialized UIs, they are just
    1 point
  43. @Mr Pennyworth While it's clever in concept, I'd personally discourage using the multi-Script Filter method you're using, even though it's unlikely to, in isolation, cause any performance issues with Alfred. If somebody installed multiple workflows which used the same method, then Alfred will be running multiple scripts on every keypress. There is definite scope for an enhanced native command history built in to Alfred. This would take some thought and design, and would be configurable and user opt-in. I would also think about a easy-on temporary private mode, much like a browser,
    1 point
  44. I had the same issue. Resolved with the following: 1. Disable indexing sudo mdutil -a -i off 2. Enable again sudo mdutil -a -i on
    1 point
  45. fipo42

    Move/Copy Files

    I tried to make workflow that enables you to: Step 1: Select files in Finder Step 2: type keywords to move/copy it to destination folder (you specify the destination by typing it to Alfred) I make this because i feel drag & drop files in Finder is a bit slow and using terminal directly to use mv and cp commands took too much steps too Feel free to download it here: https://github.com/fipo42/Alfred-Move-Copy-Files/releases/tag/v0.1.0 and suggest improvement in Github page here: https://github.com/fipo42/Alfred-Move-Copy-Files/tree/v0.1.0 This is actually a very simple code, fo
    1 point
  46. Weaselboy

    Pocket for Alfred

    https://github.com/fniephaus/alfred-pocket/releases/tag/v7.3 Looks like there was an update a couple days ago.
    1 point
  47. deanishe

    Microsoft Edge

    I'd say that it's extremely unlikely that Alfred will gain built-in support for Edge unless Edge provides an official API for apps like Alfred to read its bookmarks. You would probably be better served with a workflow instead. Depending on how Chromium-like it is, a workflow like this one might be able to read its bookmarks.
    1 point
  48. I just released a Screen Sharing workflow with automatic discovery of hosts that have remote desktop enabled. Such amazing things are now possible thanks to the "Script Filter" input! Download — stable version. The source code is available here: https://github.com/pstadler/alfred-screensharing
    1 point
  49. You need to make sure that you add the remote page. Click on the "Remote" tab in Alfred Preferences. On the left bottom side, you'll see a "+" button. You'll have three options: "Examples", "Workflows", and "Blank Page". Select "Workflows" and then select "PowerPoint Remote". That should add the Remote Page with all the buttons, and it should look like this:
    1 point
×
×
  • Create New...