Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 03/04/2020 in Posts

  1. 4 points
    Paste text sequentially. Each time you invoke the shortcut, the previous clipboard entry will be pasted. After a set number of minutes—configured with the reset_mins Workflow Environment Variable—the shortcut will begin again with the most recent entry. Call :sequentialpasteresetcount for a manual reset. Download | Source
  2. 2 points
    nicooprat

    OCR: extract text from snapshot

    Hi there, Just sharing my first workflow. Some OCR workflow already exist but are relying on some obscur chinese API with exposed personal credentials... This one use your system own installation of `tesseract`. Just take a snapshot and paste the text. The script usually takes no more than a few seconds. https://github.com/nicooprat/alfred-ocr PR welcome. Hope it helps!
  3. 2 points
    vitor

    Reminders

    @codydingy I ask you to not take this the wrong way. My goal here is to help you get the help you’re asking for. Consider this: If I do something for you for free, it’s a favour from which I may bail at any time. But if you introduce $5 to the mix, it becomes a business transaction—an obligation. There’s a threshold (different for everyone) that defines when one is willing to trade freedom for money. While it’s appreciated that you offer to pay for someone’s time, there’s fewer coding tasks one would accept (and not regret) for $5 than for $0. The commitment isn’t worth it1. If you cannot afford more than $5 but would still like to contribute to whoever helps you, you’ll be better asking for it for free and sending the money as a surprise after the fact. So in this case, it may be that your good intention is backfiring. 1. There is one type of task that’s worth it. When the request is so clear and simple that we see the solution in our heads without having to look at the code. As a quick workaround, you may set a Hotkey Trigger (Action: Show Alfred; Argument: Text; Text: r in 30 minutes ). That way, when you press the hotkey you’ll have the text prepopulated and ready to go. Or you may do other connections with different Keyword Inputs, as long as you focus on the same goal. Old bug.
  4. 2 points
    xilopaint

    COVID-19 Radar

    Hey guys, I just created a workflow for keeping track of COVID-19 statistics. Stay safe! https://github.com/xilopaint/alfred-covid-19-radar
  5. 2 points
    selfmade69

    OCR: extract text from snapshot

    This is some insanely productive and underrated plugin. It made my note taking life 10x easier
  6. 2 points
    vitor

    Sequential paste

    Done. Download at the same URL. This is a useful Workflow, I might clean it up and release properly (with icon, README, and all that) later on. No promises (busy week), but I’ll try to comment here if I do.
  7. 2 points
    I think I've found out what's going on here. Seems Apple's added yet another layer of obfuscation here with a compressed Assets.car file, which can only be read by specialized tools. Here are a few links I found about this: Reverse engineering the .car file format (compiled Asset Catalogs) steventroughtonsmith/cartool: Export images from OS X / iOS .car CoreUI archives iphone - Analysing Assets.car file in iOS - Stack Overflow insidegui/AssetCatalogTinkerer: An app that lets you open .car files and browse/extract their images. I was able to use this beta version of Asset Catalog Tinkerer to extract PNG icons from inside those archives. So now I've got a workflow (I'm dubbing it "Preferences Plus"—will post it shortly) that shows all Prefs, with their proper icons, and uses JSON Script Filter to match on the keyword metadata as well (similar to searching in the System Preferences search box...)
  8. 1 point
    No, I don't think so. As far as I can tell, Alfred's Open With menu keeps track of which applications you opened most recently (not necessarily via the menu) and shows the ones that declare that they can open the type of file currently selected. So the reason you're never seeing VS Code in the list is because the application doesn't declare to the system that it can open folders (even though it can). Personally, I'd much prefer Alfred to learn from how I use the Open With menu instead of trying to guess. The types of files an application can open doesn't have a lot to do with the types of files I actually open with it. I guess I should submit a feature request… What you can do with apps like VS Code is create your own File Action in a workflow that opens the selected files in the app. This is also faster, as the File Action shows up in the first list (i.e. you don't have to select Open With first).
  9. 1 point
    @danielgomez22 You’ve posted two similar images, except the second didn’t censor the emails. I’ve removed the second one, assuming it was a mistake. Please let me know if it wasn’t.
  10. 1 point
    Luddite

    open finder folder as tab ??

    Thank you. This works like magic. This is why I never wish to use other people's computers.
  11. 1 point
  12. 1 point
    multicolor

    open finder folder as tab ??

    Hi, Glad this is still of use to you, almost 5 years later! Yup, as far as I can see from here that was the intended behavior. I just made another version which forces the tab to open in an already open Finder window even if Finder is not focused, which I guess is what you wanted? Get it here. Keyword "ioio".
  13. 1 point
    Acidham

    Recent files in a folder

    New version 4.0: With version 4.0 the configuration was integrated in the Workflow from List Filter. After the upgrade it is required to setup the Folder from scratch! Please ensure to write down (or Screenshot) your current configuration. Download on Git
  14. 1 point
  15. 1 point
    Alfred 4 no longer uses version suffixes on its files, so it would be com.runningwithcrayons.Alfred-Preferences with no number. No idea if what you're trying will work, though.
  16. 1 point
    deanishe

    One Drive Sync

    Yes. Three, I believe I don't recall anyone having issues with OneDrive. All the problems are with Google Drive and iCloud. I guess you can conclude from that either nobody uses OneDrive or it works flawlessly… At any rate, I'd give it a try before I started paying the crazy Dropbox prices.
  17. 1 point
    deanishe

    Firefox Assistant

    Like Safari Assistant, but for Firefox. Download from GitHub. Search Firefox bookmarks Search Firefox browsing history Run bookmarklets Activate & close tabs Add you own custom scripts The workflow requires you to install a corresponding Firefox extension in order to communicate with Firefox. After installing the workflow, run ffass > Install Firefox Extension to get the extension. Once the extension is installed, everything should just work. The workflow is fairly customisable. You can add your own URL actions via scripts, set custom icons, and assign URL & tab actions and bookmarklets to alternate hotkeys. See the documentation for details.
  18. 1 point
    lycopodiopsida

    create new folder

    Hi, I've uploaded it to github, see my post in this thread:
  19. 1 point
    vegardinho

    Bluetooth Controller

    Hi, I was a bit tired of handling all my bluetooth devices manually, and couldn't find any cover-all bluetooth workflows out there, so I made this one. Features: Turn on/off/toggle bluetooth Connect to device from list of paired bluetooth devices Set favorite device for quick access User friendly notifications for all actions Dependencies (see README on git repo): Blueutil Python3 Feel free to give me feedback, and report bugs if you find any. Github: https://github.com/vegardinho/alfred_bluetooth_controller Download: https://github.com/vegardinho/alfred_bluetooth_controller/releases/latest Cheers, Vegard
  20. 1 point
    I found that you build Icon Generator project, if it could be a workflow, it can work with folderify.
  21. 1 point
    If anyone has the same issue with Alfred 2.9 on Catalina, I solved this by adding /System/Application to the search scope. To do this from Alfred preferences, go to "Features > Default Results > Search Scope". Click the "+" button, then press Cmd-Shift-G and type "/System". This will display the System folder in the finder dialog. Select the "Application" subdirectory and confirm.
  22. 1 point
    @alfredpleb Sorry for the delay on that. I haven't released PrefsPlus (yet) ... although I am continuing to use it and it's working well (for me). I'd like to share it. Would you mind testing it out to see if it works for you before I release it widely? I could send you a link via PM.
  23. 1 point
    Acidham

    Recent files in a folder

    New version 3.2.2 supports sub-directory search: Download on Git
  24. 1 point
    Have you tried this workflow that can filter Excel files?
  25. 1 point
    It's the way you've set up your workflow and repo. Don't put your Ruby code in the Script box. It's a poor editor and having all your code in info.plist isn't very compatible with git. Use an external script in the workflow directory instead, and put the contents of the workflow in your repo, not just the zipped .alfredworkflow file. That way, people can clone the repo and symlink the src subdirectory to Alfred's workflow directory, making it pretty easy to make PRs.
  26. 1 point
    @Schneppi Thank you! I actually added this feature yesterday but didn't have time to publish it until now. It is now out in 1.2.0. I wish Alfred workflows were easier to collaborate on for developers... I've added the source code in a separate file so that I can take PRs in the future, if you have further improvements please open a PR.
  27. 1 point
    Replace "state" with "Country_Region" and you can search for other Countrys uri = URI("https://services1.arcgis.com/0MSEUqKaxRlEPj5g/arcgis/rest/services/ncov_cases/FeatureServer/1/query?f=json&where=Country_Region%3D'#{encoded_state}'&outFields=Confirmed,Recovered,Deaths") Maybe @atheos can add a fallback search for Country/Region if a search for the state failed? :)
  28. 1 point
    You can "ask" my Firefox workflow for the info. A tiny percentage of Alfred users (<5%).
  29. 1 point
    Andrew

    Alfred env variable for keyword trigger

    @deanishe I'll see what's possible for 4.1
  30. 1 point
    Because no proper UTI is defined for Markdown on your machine. The UTI isn't random. It means "extension=.md".
  31. 1 point
    Hi there, is there a way to set "tab" to go to the next result (just as when you type a search into your Google Chrome search bar and then hit tab to scroll through the results) instead of having it be auto-complete? That would make it much easier to use Alfred! Having to move your right hand to reach the arrow keys to do this takes much more time than if one could use the "tab" key.
  32. 1 point
    @luckman212 That's because I haven't fixed it yet
  33. 1 point
    No, you didn't. You copied only the second half of the command. And the second time you copied an invalid part of the command. In fact, you did exactly the same thing as roccitman did on the previous page, and I explained exactly what he'd done wrong. You might have fixed your issue with the Homebrew update (which was included in the full command you were supposed to run). If not, please go back and read and follow Vítor's instructions carefully.
  34. 1 point
    Hmm I'm going to have to investigate why I made it AppleScript only in there, it may just be a completely legacy thing. I'll add a note, and if there is no significant reason, then I could likely add in arbitrary scripting.
  35. 1 point
    deanishe

    Help with shell script workflow

    {query} in the Notification is replaced with whatever you echo from your script. So if you put echo in the loop, it'll show all the destination paths. The simplest solution is probably to put echo -n "${fileName}" after done (the -n tells echo not to add a newline), and then select the "Last path component" option in the Notification's configuration.
  36. 1 point
    Glad I’m not the only one having this issue, as it gives another point of reference. I’ve been experiencing something like this for a while, but across all Terminal actions, including inside Workflows. Two important differences from this report: I’m on Mojave. It doesn’t fail every time. I didn’t yet have the chance to do a deep dive and figure out the exact steps to make it fail or succeed, which is why I hadn’t mentioned it yet. Either way, my suspicion was already that the fault lies in iTerm2 itself, which has a Python API as a replacement to AppleScript and thus might not be noticing breakage in the latter. @Andrew I’ve been meaning to ask (I wanted to think a bit more about it first, but since we’re on the subject): on Alfred’s Terminal functionality, could we have other languages available in Custom? It might be wise to consider arbitrary languages due to iTerm’s Python API, but at least JXA would be a huge step. AppleScript-only is a pain, especially when considering the de fact scripts for calling iTerm2 from Alfred still have bugs and the repo is abandoned. I’d like to provide new maintained scripts to the community but it’d be easir for me to leverage the iTerm2 JXA scripts I’ve already built for other purposes.
  37. 1 point
    Agreed. Or give us a shortcut so we can update without having to use the mouse. I hate my mouse... that's why I use Alfred!
  38. 1 point
    Rather then get a notification I would like an option to have Alfred update itself without my intervention.
  39. 1 point
    I've now improved the dropdown sheet for rebuilding the metadata to be more clear on the processes needed, and updated the .Spotlight-V100 path for Catalina instances too.
  40. 1 point
    Hi I would love to be able to add exclusion filters in alfred so that alfred dont index any dir named node_modules or any compiled file like*.pyc Thanks
  41. 1 point
    I created a simple workflow that opens your personal Zoom.us meeting using your Personal Meeting ID. Quickly Launch a Zoom Meeting using your Personal Meeting ID To Get Started 1. Get your Personal Meeting ID ({personalMeetingID}) 2. Paste PMI into personalMeetingID value column ----> 3. Trigger Alfred type `zm` and press `Return` Expected Behavior * Alfred will launch Zoom.app * Alfred will spawn a new tab in Chrome * Alfred navigates to your Zoom Meeting URL * Zoom does it's thing * The Zoom Meeting URL is copied to your clipboard Note I Chose chrome, but it should work with the browser of your choice I haven't tested this without Chrome being open. https://www.dropbox.com/s/jasi3gt243s6o4y/Open Your Zoom Meeting.alfredworkflow?dl=0
  42. 1 point
    I’ve been seeing a lot of workflows that need to interact with a browser via AppleScript (usually to get a page’s url), but most of them seem to settle on a single browser (usually Safari), which is a shame. I can understand — applescript is a pain, and since each browser implements these functions however they want, finding the best way to do it with each one can be difficult, so here’s the code for most of them. The code for this may seem massive, but it is not. Read the comments to understand when to use what. You can find the latest version of this as a gist. -- AppleScript -- -- This example is meant as a simple starting point to show how to get the information in the simplest available way. -- Keep in mind that when asking for a `return` after another, only the first one will be output. -- This method is as good as its JXA counterpart. -- Google Chrome tell application "Google Chrome" to return title of active tab of front window tell application "Google Chrome" to return URL of active tab of front window -- Google Chrome Canary tell application "Google Chrome Canary" to return title of active tab of front window tell application "Google Chrome Canary" to return URL of active tab of front window -- Chromium tell application "Chromium" to return title of active tab of front window tell application "Chromium" to return URL of active tab of front window -- Opera tell application "Opera" to return title of active tab of front window tell application "Opera" to return URL of active tab of front window -- Vivaldi tell application "Vivaldi" to return title of active tab of front window tell application "Vivaldi" to return URL of active tab of front window -- Brave tell application "Brave Browser" to return title of active tab of front window tell application "Brave Browser" to return URL of active tab of front window -- Safari tell application "Safari" to return name of front document tell application "Safari" to return URL of front document -- Safari Technology Preview tell application "Safari Technology Preview" to return name of front document tell application "Safari Technology Preview" to return URL of front document -- Webkit tell application "Webkit" to return name of front document tell application "Webkit" to return URL of front document -- This example will return both the title and URL for the frontmost tab of the active browser, separated by a newline. -- Keep in mind that to be able to use a variable in `tell application` — via `using terms from` — we’re basically requiring that referenced browser to be available on the system. -- That means that to use this on "Google Chrome Canary" or "Chromium", "Google Chrome" needs to be installed. Same for other browsers. -- This method also does not exit with a non-zero exit status when the frontmost application is not a supported browser. -- For the aforementioned reasons, this method is inferior to its JXA counterpart. tell application "System Events" to set frontApp to name of first process whose frontmost is true if (frontApp = "Google Chrome") or (frontApp = "Google Chrome Canary") or (frontApp = "Chromium") or (frontApp = "Opera") or (frontApp = "Vivaldi") or (frontApp = "Brave Browser") then using terms from application "Google Chrome" tell application frontApp to set currentTabTitle to title of active tab of front window tell application frontApp to set currentTabUrl to URL of active tab of front window end using terms from else if (frontApp = "Safari") or (frontApp = "Safari Technology Preview") or (frontApp = "Webkit") then using terms from application "Safari" tell application frontApp to set currentTabTitle to name of front document tell application frontApp to set currentTabUrl to URL of front document end using terms from else return "You need a supported browser as your frontmost app" end if return currentTabUrl & "\n" & currentTabTitle // JavaScript for Automation (JXA) // // This example is meant as a simple starting point to show how to get the information in the simplest available way. // Keep in mind that when asking for a value after another, only the last one one will be output. // This method is as good as its AppleScript counterpart. // Google Chrome Application('Google Chrome').windows[0].activeTab.name() Application('Google Chrome').windows[0].activeTab.url() // Google Chrome Canary Application('Google Chrome Canary').windows[0].activeTab.name() Application('Google Chrome Canary').windows[0].activeTab.url() // Chromium Application('Chromium').windows[0].activeTab.name() Application('Chromium').windows[0].activeTab.url() // Opera Application('Opera').windows[0].activeTab.name() Application('Opera').windows[0].activeTab.url() // Vivaldi Application('Vivaldi').windows[0].activeTab.name() Application('Vivaldi').windows[0].activeTab.url() // Brave Application('Brave Browser').windows[0].activeTab.name() Application('Brave Browser').windows[0].activeTab.url() // Safari Application('Safari').documents[0].name() Application('Safari').documents[0].url() // Safari Technology Preview Application('Safari Technology Preview').documents[0].name() Application('Safari Technology Preview').documents[0].url() // Webkit Application('Webkit').documents[0].name() Application('Webkit').documents[0].url() // This example will return both the title and URL for the frontmost tab of the active browser, separated by a newline. // This method is superior to its AppleScript counterpart. It does not need a "main" browser available on the system to reuse the command on similar ones and throws a proper error code on failure. const frontmost_app_name = Application('System Events').applicationProcesses.where({ frontmost: true }).name()[0] const frontmost_app = Application(frontmost_app_name) if (['Google Chrome', 'Google Chrome Canary', 'Chromium', 'Opera', 'Vivaldi', 'Brave Browser'].indexOf(frontmost_app_name) > -1) { var current_tab_title = frontmost_app.windows[0].activeTab.name() var current_tab_url = frontmost_app.windows[0].activeTab.url() } else if (['Safari', 'Safari Technology Preview', 'Webkit'].indexOf(frontmost_app_name) > -1) { var current_tab_title = frontmost_app.documents[0].name() var current_tab_url = frontmost_app.documents[0].url() } else { throw new Error('You need a supported browser as your frontmost app') } console.log(current_tab_url + '\n' + current_tab_title) Other browsers Firefox Absent since although it’s possible to get the window’s title, it’s not possible to get its URL (it used to be, before version 3.6). It’s possible via hacky ways that consist of sending keystrokes, but those can be unreliable. This bug is being tracked in Bugzilla.
  43. 1 point
    bikeNik

    OCR: extract text from snapshot

    Mega useful for me. Thnx. p.s. I excluded the warning message by Alfred's utility "Replace" with regex: Warning: Invalid resolution.*?\nEstimating resolution.*?\n
  44. 1 point
    @2Pants Welcome to the forum If Chrome your default browser? If so, the lowest-setup option is to copy your URL, pop up Alfred and paste the URL, and hit Enter. Alfred will launch your default browser with the URL. Alternatively, you can create a simple hotkey-based workflow. Add a hotkey object and set the argument to either Clipboard Content or selection in macOS. Connect the hotkey object to an "Open URL" object, leaving the {query} in the URL field. Pick the browser you want it to open in, and save. This assumes you're copying a complete URL with http:// or https:// - If you're not, you can add that in front of the query for your Open URL object. Cheers, Vero
  45. 1 point
    @vitor pretty much sums up the reasoning behind this. Essentially, Alfred is extremely lightweight on a user's Mac, having minimal CPU and battery impact at all times. This is essentially achieved by only running the internal logic paths required which lead to the user's desired result at any one time, not running any unnecessary code. This becomes more significant when [non-native] workflows may take a decent amount of CPU or network traffic. Added to the fact that this is a rarely requested feature, it's unlikely that this will be implemented into Alfred's default results. Having said that, and having a think about this, there is one aspect I would consider. You can already create a workflow and attach it to an input filter (such as a file filter, script filter etc). At this point, it's a 1 to 1 mapping for hotkey to input filter. If there was interest, I'd look at enhancing this so that one hotkey could connect to multiple input filters, and results from all filters would be shown. This would essentially allow you to build a workflow which shows a custom version of Alfred with the specific, highly customised results you'd like. Cheers, Andrew
  46. 1 point
    Not really sure if this is possible, but I think it'd be cool if while I was in a full screen app I could use Alfred to open another app in the split view on the current workspace something like shift-enter for left and option-enter for right. Opening files could also maybe potentially work this way?
  47. 1 point
    glortho

    create new folder

    This should really be built into Alfred. When you're browsing the filesystem, you should be able to navigate to the directory where you want to create the file/folder and start typing the name of the new file/folder as if you were trying to navigate to it. Instead of that big useless blank space below, it could show "Create new file at <path + what you've typed so far>" as an option. To create a folder, just put a slash at the end and it'll change to say "Create new folder at <path + what you've typed>". Or you could have both options appear below at the same time to avoid having to type the slash. It could also be smart to new nested folders, so you could /just/keeping/typing/your/path and it would create all the necessary new folders.
  48. 1 point
    Carlos-Sz

    create new folder

    David was faster! Anyway, here is my approach considering your suggestion: Right now it works as an Alfred File Action only Select the files in Alfred browser, select “To New Folder” action then one of the 3 options below (move, copy or only create a new folder): Downlaod now
  49. 1 point
    Andrew

    NSApplescript vs. Run Script

    It's the latency you may see as different - the 'compiled' option will keep the AppleScript pre-compiled in memory and run immediately... so AppleScript will start to run in a fraction of a second after asking it to. Without compiling (or using Run Script with osascript), it has to compile the script before running it. On modern Macs, this is still pretty fast though.
  50. 1 point
    OK, clear, thanks Andrew! Maybe in the future it would make sense to just let the user explicitly choose this on importing (and maybe showing him which shortcut keys will be created and if there are any conflicts?)
×
×
  • Create New...