Jump to content


Popular Content

Showing content with the highest reputation since 11/16/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
    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.
  3. 1 point

    Need this super program on Windows

    Please start this program for windows. It is super program!!!
  4. 1 point
    Gotcha. I'm hesitant to mix folders and notes in the same search results, which is why I implemented the folder-only search you suggested. You can download the latest version of the workflow to try it. I'm also fairly sure the "fallback" behavior you're describing is currently implemented. If I have a folder named Aardvark containing notes Bob and Charlie, when I do the normal "n" search for Aardvark, the results will be Bob and Charlie.
  5. 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!
  6. 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.
  7. 1 point
    @Andrew I've just updated to the latest pre-release and I've noticed you've already added the clipboard colour preview without # You are a ⭐- This was the fastest reaction to a feature request EVER Thank you 🙇
  8. 1 point


    Remove /System/Library/CoreServices/Applications from Alfred's Features > Default Results > Search Scope, then type 'reload' into Alfred to clear the cache. Note that if you remove all items from the scope like in the original screenshot, Alfred will default to scope 'all', which will include Core Services. Also, you won't be able to exclude Finder, even though it's in Core Services as this is included regardless. Cheers, Andrew
  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
    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.
  13. 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).
  14. 1 point

    Evernote Workflow 9 beta 3

    @OmarKN Yes, the workflow requires that Evernote is installed locally as it can't interact with the website version. Is there any reason you'd want to download Evernote 6? I strongly encourage you to download Evernote 7 and the most recent version of the workflow under the "Download Evernote 9 beta 3" header, rather than the older version. You can grab the latest version of Evernote from this page: https://evernote.com/download Cheers, Vero
  15. 1 point

    Alfred-Icons [thenounproject.com]

    This service has another public endpoint of their API - without registration and limitation to 5,000 requests. And its allows downloading the SVG file via my another version workflow simple by click on the one of the search result. But I'm not sure about legality to publishing it. I'm just leaving a link for this alternative version.
  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

    1Password Integration

    @tullyhansen Alfred has legacy support for older 1Password versions, so this could be down to misidentification of the 1Password version you're using, as if Alfred sees you as using 1Password 7, then the newer style URL scheme should be used. Alfred extracts the CFBundleShortVersionString in 1Password's package and I'm guessing that "7.2.2.BETA-3" might possibly be causing a misidentification if 1Password is using the CFBundleShortVersionString instead of the CFBundleVersion for this value. FWIW, Apple define this as the following, which doesn't include string text such as BETA: I'll take a deeper look into this later today. Note: It could ALSO be that you have lots of older versions of 1Password on your Mac which are being seen as the valid version of 1Password to use. Cheers, Andrew
  19. 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.
  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
    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!
  23. 1 point

    Send URL

    I have finally converted my Send URL extension into a workflow. The workflow selects the URL from the frontmost App or a URL from the Clipboard. Supported Apps are: Safari Webkit Google Chrome (Beta/Dev/Canary) Camino Opera (and Opera Next) Omniweb You can then send the URL to a variety of Apps Safari Webkit Google Chrome (Beta/Dev/Canary) Camino Opera (and Opera Next) Omniweb Firefox (and Aurora) iCab Sleipnir Paparazzi! Mail Sparrow Postbox Gmail VLC Adium (as a chat to an online contact) Droplr downforeveryoneorjustme.com and the clipboard The workflow only list the Apps installed on you mac. You can download Send URL here: https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow EDIT: I have updated Send URL. The update fixes a bug where the workflow would not work if the URL contains a '&' and downforeveryoneorjustme.com is not working correctly. I have also included options to copy the URL as a HTML or Markdown link (including the page title)
  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