Jump to content


Popular Content

Showing content with the highest reputation since 11/18/2018 in all areas

  1. 2 points
    Wangyou Zhang

    Simplify fractions

    I write a workflow for converting a given decimal to a simplified fraction as well as simplifying a given fraction. It saves me a lot of time and I hope it is useful for you too. Download You can download the workflow file from my GitHub. Examples frac .11 ==> .11 = 11 / 100 frac 4/6 ==> 4/6 = 2 / 3 frac -1.4/2.2 ==> -1.4/2.2 = -7 / 11 frac 1.2/0 ==> Error: divided by zero. frac b/3 ==> Error: Invalid input format ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Update 7 additional math tools are added and the new workflow is renamed to MathTools. 1) Simplify fractions Examples: frac .11 ==> .11 = 11 / 100 frac 4/6 ==> 4/6 = 2 / 3 frac -1.4/2.2 ==> -1.4/2.2 = -7 / 11 2) Greatest common divisor Examples: 3) Least common multiple Examples: 4) Simplify surds Examples: sqrt .0144 ==> √(.0144) = 3/25 = 0.12 sqrt 4 8/81 ==> ³√(8/81) = (2/3) ³√(1/3) Note: 5) Log functions Examples: log 5 ==> log₁₀(5) = 0.698970004336 log2 1.0001 ==> log₂(1.0001) = 0.000144262291095 ln e ==> ln(e) = 1.0 Note: 6) Prime factorization Examples: factor 100 ==> factor(100) = [1, 2, 2, 5, 5] factor 31 ==> factor(31) = [1, 31] Note: 7) Permutations and Combinations Examples: C( 4 2 ==> C(4, 2) = 6 c( 1000 3 ==> C(1000, 3) = 166167000 P( 4 2 ==> P(4, 2) = 12 p( 1000 3 ==> P(1000, 3) = 997002000 Note:
  2. 1 point
    Hello, I don't use Alfred currently to manage my clipboard (I use the app Paste) for one single reason : In Paste, I can select multiple results (with the shift key) to paste all the results at the same time, which seems to be impossible in Alfred. Is there any solution to do that in Alfred, or is it planned in a future release ? This topic is about the clipboard, but I have exactly the same issue with Chrome bookmarks results in Alfred : I would like to be able to select more than one result to open the selection in several tabs (my workaround today is to create workflows, but it would be way more efficient to just be able to select multiple results for your search, like selecting multiple files in Finder). Anyway, thanks for this great app that I use everyday. Edit : Added a video
  3. 1 point
    Hi, I've created a workflow to find and open Apple/iCloud notes in Notes.app. Just type n[part of note title] and press enter. The default search method is known to work on High Sierra and Mojave, but AppleScript options are also supplied that should work on other macOS versions. Get it on Packal and feel free to open issues/make pull requests on GitHub.
  4. 1 point

    Need this super program on Windows

    Please start this program for windows. It is super program!!!
  5. 1 point

    Antidote 10

    @Grug If you've only just installed the app, it may not yet be indexed by macOS. You can speed this up by dragging the app or your Applications folder to the Spotlight Privacy tab, waiting 30 secs, dragging it back out, waiting 30 secs again. This should have forced the indexing. Once you've done that, type "reload" into Alfred to refresh the application cache. If you still can't find the app, use the Metadata tool to work out whether the information about the app exists: https://www.alfredapp.com/help/troubleshooting/indexing/mdls/ Cheers, Vero
  6. 1 point
    @sballin Thanks a ton! This feature is incredibly helpful. If you live Stateside, I hope you and your family had a great Thanksgiving! All the best!
  7. 1 point
    deanishe, thank you for the recommendation. That didn't quite work, but your suggestion got me thinking about latex path issues. Turns out, the issue was with /Library/TeX/texbin. I found a stack overflow thread that recommended: export PATH=/Library/TeX/texbin:$PATH Adding that to the top of the bash script worked. deanishe, thanks again, you got me pointed in the right direction!
  8. 1 point
    log POSIX path of currentDir sends the path to STDERR, i.e. Alfred's debugger, not to the next action. Use return POSIX path of currentDir to write the path to STDOUT instead, which will be sent to the next action. It isn't working in the shell, either. It just looks like it because both STDOUT and STDERR are written to the terminal. If you try to redirect the output to a file with > /path/to/file, you'll see it doesn't work.
  9. 1 point

    Bear workflow - search and create notes

    Hey everyone! I've created a workflow that allows you to search and create notes for Bear. This is my first workflow, first OSS project, and first foray into Python - let me know what all I messed up Available on github and Packal. Many thanks to @deanishe and @dfay for some initial direction. Install To install, download a released alfred-bear workflow and double-click to open in Alfred 3. Easy-peasy. Searching and opening results bs -- Search for a note by title and open it in Bear. bst -- Search for a tag (a group of notes) by tag title and open it in Bear. Creating a new note bn I love notes! -- Creates a new note with the title and text "I love notes!" bn I love notes! #love #notes -- Creates a new note with the title and text "I love notes!" and the tags "#love" and "#notes" Known Issues Creating tags only works with single-word tags - multiword tags hopefully to come. Todo Append text to existing notes. Figure out multi-word tags. Thanks deanishe for guidance on Alfred workflow creation and capabilities, and for his excellent Python workflow library. dfay for guidance from his experience writing the Ulysses Alfred workflow. Rhyd Lewis for giving me an excellent example to work off of in his Omnifocus Alfred workflow. Versions 0.3.1 Fixed database location that changed with a Bear update. 0.3.0 Added search results from note text to main search. 0.2.2 Changed search queries to order by last modified date descending, so that more recently modified notes/tags show up at the top. 0.2.1 Added hashtag symbol to "Open Tag" list results to make it a little more obvious that it's a tag and not a note. 0.2.0 Now allows non-ASCII characters. Searching by tag now displays not only tags that match the search query, but notes that match those tags as well. Searching by tag now works with or without the '#' symbol in front of the tag. 0.1.0 Initial public release.
  10. 1 point
    https://github.com/chrisbro/alfred-bear/issues/20#issuecomment-429854831 . hello. This will help you I also got help
  11. 1 point
    This seems reasonable, and is only a single character change in the regex
  12. 1 point

    Link to Markdown

    Why I need this? Sometimes I just found myself repeating copy/paste URL and title from Chrome to write some reference. Even worse, different apps accept different format (Yeah, I'm talking about you, Ulysses!). So here is my workflow: Usage Just type \\u in your favorite app. Problem 1. I tried and failed to use matches regex in Filter Utility, that's why I have to hard coded three (and maybe more in the future) filter. This is my failed attempt: Notes|Evernote|scapple 2. The else (marked in red in screenshot above) is not actually fallback, which may lead to some bug. # What I thought it would be if condition_a: ... elif condition_b: ... elif condition_c: ... # How it actually works if condition_a: ... if condition_b: ... if condition_c: ... Download https://github.com/cdpath/alfred_workflows/releases/tag/0.1.1
  13. 1 point
    That might be the best idea. Decouple the suggestions from the searches, and then you can mix and match as you please. Currently, that simply is not a goal for Searchio.
  14. 1 point
    No, not really. What you're asking would be a lot of work because the basic data model of the workflow is "one engine per search". Changing that would require some fairly fundamental changes to the workflow, not just a few lines of Go. I'm not going to implement it because I have no use for the feature (I never, ever use "I'm feeling lucky" and I don't think it applies to any other search engines). And I'm not going to help you do it because helping you with code, I am sorry to say, is almost never an enjoyable or rewarding experience for me.
  15. 1 point
    Niki, you asked a question about something you’ve done a dozen times yourself. Any Script Filter you’ve written that doesn’t use “Alfred filters results” is using {query} (or ARGV).
  16. 1 point

    Recent Documents / Apps ?

    This workflow can list documents and apps opened recently. Especially, it can list files opened recently by the foremost app. System: macOS 10.11+ Github: https://github.com/mpco/Alfred3-workflow-recent-documents Usage You can press Enter to open the file in result, or press ⌘CMD-Enter to reveal it in Finder. Tap rr to list files opened recently by the foremost app. For example: Recent folders will be listed when Finder is foremost. Recent rtf, text files will be listed when TextEdit app is foremost. Recent *.sketch files will be listed when Sketch app is foremost. Recent *.xcodeproj project files will be listed when Xcode app is foremost. The subtitle of each result consists of ⏱modified time and ?path of the file. Tap rf to list recent folders. Opening recent folders is very common in use. Tapping rf is a more efficient way, even though you can activate Finder and then tap rr. Tap rd to list recent files. These files were recently opened by user, not like rr which is just for the foremost app. Tap ra to list apps opened recently. Exclude folders from the results. You can add private folder pathes separated by colon : to the Workflow Environment Variable ExcludedFolders. The results will not show private folders and any files inside them. For example: ~/privateFolder1/:/Users/G/privateFolder2/
  17. 1 point
    Download media from a plethora of sources, even when embedded in other pages. Copy a link to your clipboard, run dv, and you’re done. The workflow will show you a notification when it starts downloading and another when finished. If you have WatchList you’ll see an option to automatically add the downloaded video to your watchlist. Run any option with the ⌘ modifier, and the full playlist will be downloaded. To see the download progress, run dvp. It will auto-refresh the progress. Actioning it with the ⌘ modifier will restart the current download (adding it to the back of the queue), while actioning with ⌃ will abort the current download. You can also run :downvidservices to install (or later remove, running the same command) DownVid actions to macOS Services. What this means is wherever you find a URL, you’ll be able to right click it and start the download right from the context menu. The two Workflow Environment Variables represent the directories (relative to your home) where videos will download to. Download | Source If on Alfred 2, download this one. Works well with WatchList
  18. 1 point
    I wrote a workflow in ruby to convert currency. Requires Alfred v3. Notice: The Old versions(v1.2-) api has been out of service at June 5, 2018. Please update to v1.3+ to keep using currency conversion feature. Github Download Features: Support 30+ currency units with fixer.io. Basic support for sign. e.g.,$,¥,£,etc. Customizable displayed currency units and base unit. Input once to get all result. Usage: Tap 'cy' to get latest exchange rates. Tap 'cy money' to get exchanged result. You can press enter to send the result to the clipboard. Tap 'add-cy', 'remove-cy' to customize displayed currency units. Tap 'base-cy' to set base currency unit. Hope you like it.
  19. 1 point

    Safari Assistant

    Safari Assistant All-in-one workflow for Safari. Filter tabs, bookmarks (and bookmarklets), reading list and history. Several built-in actions. Easily add your own via scripts. Assign your favourite actions (or bookmarklets) to alternate actions (i.e. ⌥↩, ^↩ etc.). Download from GitHub releases. Source code. Built-in tab actions: Close Tab Close Window Close Other Tabs Close Tabs to Left Close Tabs to Right Built-in URL actions (also work on tabs): Open in Private Window Open in Default Browser Open in Chrome Open in Firefox Usage bh [<query>] — Search and open/action bookmarks and recent history. ↩ — Open item in browser. ⌘↩ — Show URL actions for selected item. ⌥↩ — Run custom action on selected item. ^↩ — Run custom action on selected item. fn↩ — Run custom action on selected item. ⇧↩ — Run custom action on selected item. bm [<query>] — Search and open/action bookmarks. ↩, ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. bml [<query>] — Search and run bookmarklets. ↩ — Run bookmarklet in active tab. bmf [<query>] — Search bookmark folders. ↩ — Enter folder/open bookmark. ⌘↩ — Open all bookmarks in folder/show URL actions for bookmark. hi [<query>] — Search and open/action history entries. ↩, ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. rl [<query>] — Search and open/action Reading List entries. ↩, ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. tab [<query>] — Search and activate/action Safari tabs. ↩ — Activate the selected tab. ⌘↩, ⌥↩, ^↩, fn↩, ⇧↩ — As above. See the README on GitHub for full usage instructions.
  20. 1 point
    Martien Oranje

    Todoist Workflow

    ALFRED TODOIST WORKFLOW Add and search Todoist tasks straight from Alfred. It uses Todoist v8 REST API. Getting started For this workflow to work you need version 3.x of Alfred and a powerpack licence. Node.js Installation Download and import workflow. Configuration Name Notation Explanation token ^[0-9a-fA-F]{40}$ (default empty) The todoist API token. language en, da, pl, zh, ko, de, pt, ja, it, fr, sv, ru, es, nl(default en) The language for natural language date processing (by todoist) and to calculate time to complete a task. cache_timeout A positive number (default 3600, an hour) The time (in seconds) until the cache is refreshed (until that time todoist information is stored locally to make things a little faster) anonymous_statistics true or false (default true) Doesn't do much at the moment but I intent to use it to track installs todo:setting token {api token} Example: todo:setting token 2d2e2a334c5f36e7a7c43b46e todo:setting language {language} Example: todo:setting language nl todo:setting cache_timeout {time in seconds} Example: todo:setting cache_timeout 13 todo:setting anonymous_statistics {true or false} Example: todo:setting anonymous_statistics false Usage Name Notation Explanation task Any text except , The task title. date A date string See the Todoist documentation for supported date formats. project Either #personal or #[next actions] Use either the hashtag notation or bracket notation if the project name has spaces in it. The project name is case insensitive. label @label Label names can't contain any whitespace characters. Labels are case insensitive. priority Either p2 or !!2 A value between 1 (urgent) and 4 (normal) Search for tasks todos {query} Query Any search query one character or longer. Uses fuzzy search to find the tasks. Example: todos car => returns (because of fuzzy search): Rent car New cat recipe's Cut Gras tomorrow Create task todo {task}, {date} Example: todo Get things done, tomorrow @ 9 Example: todo Build tree house #home !!2 @15min, tomorrow @ 9 Changelog View CHANGELOG.md Contributing Instructions - Fork and clone the repo - Install dependacies - Symlink to project workflow folder git clone https://github.com/YOUR-USERNAME/alfred-worflow-todoist npm install npm run setup:dev Build Create a new build with npm run build Run tests Run Jest test suite with: npm run test npm run test:prod Or run a watcher with npm run test:watch Commits For commits I follow the angular commit guidelines and use semantic release to automate builds, semver version updates and changelog creation. The way to make sure this all works is to run: npm run commit Which guides you through the motions Code of conduct code-of-conduct.md License License MIT © Martien Oranje
  21. 1 point
    I added a workflow to go with this set of Themes, you can find it on the same Github repo in the Workflows folder It features two commands : "theme" : toggle between Dark & Light themes for both macOS & Alfred. "theme red" : switch to the Red Accented Alfred Theme. Here is a screenshot of the MojaveThemeSwitcher and its options:
  22. 1 point
    Hello Deanishe, Yes, Alfred's clipboard merging feature is great, but you need to decide what you want to paste before to copy your text, which is not always easy.
  23. 1 point
    Working with latest version of Alfred (3.4.1 [860]) on MacOS Sierra 10.12.5, and using OneNote 15.37. iMac Retina 5K from late 2015. Snippets don't expand when entering a Keyword, instead it pastes the clipboard. Snippets do work when activating the Viewer and selecting one. Happy to record a short video of this bug if that would be helpful!
  24. 1 point

    Screenshot to folder / tagger

    Yes, but you'll need to do some coding. It appears you need: A Hotkey to trigger your workflow A Script Filter thatTells the system to take a screenshot and save it to a specific location Shows a list of pre-determined folders A script that accepts the path of the folder from the Script Filter and moves the screenshot to it. You can probably grab the screenshot with screencapture. With Alfred-Workflow, showing a list of folders is simple: import os from workflow import Workflow folders = [ '~/Documents/Stuff', '~/Desktop/More Stuff', '~/Dropbox/Screenshots', ] wf = Workflow() for path in folders: p = os.path.expanduser(path) wf.add_item(os.path.basename(path), path, arg=p, valid=True, type='file') wf.send_feedback() If you stick that in folders.py in your workflow, your Script Filter (Language = /bin/bash) might be: set -e screencapture -o $HOME/.temporary-screenshot.png /usr/bin/python folders.py And you'd connect that to a Run Script Action (also /bin/bash): mv $HOME/.temporary-screenshot.png "{query}"
  25. 1 point

    Alfred with Multiple Screens

    Hi Laurent, launch Alfred's preferences to Appearance > Options and you'll be able to set Alfred to appear on default screen, mouse screen or, if you're using OS X 10.9 Mavericks, on the active screen (where your current active app is). It's all in there Cheers, Vero