Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 06/17/2018 in all areas

  1. 9 points
    I added /System/Applications to the Search Scope list in Preferences -> Features -> Default Results and now the Apple installed apps show up in Alfred
  2. 6 points
    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. 6 points
    Evernote workflow 9 beta 3 released with minor code optimizations and updated workflow preferences. Download Now If your search (ens keyword) is not returning any results please make sure to trigger a full index rebuild in Evernote app: Option-Key Help > Troubleshooting > Recreate
  4. 5 points
    Mpco

    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/
  5. 5 points
    Vero

    Moving this forum to Discourse

    Hi all, I've read this thread carefully and have been mulling it over this week. There are many reasons we're using IPBoard, and I figure it's only fair that I share our rationale for where we're at with the forum we've opted for. I'm also going to take this feedback and share it with IPB in the hope that they can understand the issues and the shortcomings of the editor, and make some essential improvements so that writing and editing posts is more straightforward. We moved from the cutesy-but-extremely-limited Get Satisfaction in 2013, which was a difficult process even at a time where the community was less than 1/20th what it is now; Content was lost, all the previously indexed links were no longer valid, users had to create new accounts, etc. Huge upheaval for everyone. Taking a look back, they've since been acquired by another company and their product has completely changed, so our hand would've been forced even if we hadn't left then. Moving to the established - if somewhat non-trendy - IPBoard meant we'd have a platform that had been around a long time and wasn't going to be sold to the highest bidder who'll acqui-hire the staff and gut the product for parts next month. Since 2013, it has proven to be reliably available, taking a minimal amount of time for me to keep updated behind the scenes. With the exception of a few colour scheme changes, it's a completely vanilla install, with no plugins, so that I can trust that I can do security updates quickly while most users are sleeping, without having to go through testing of every plugin, or causing unexpected downtime/issues. By keeping things as simple as possible, we can focus time on helping users, rather than troubleshooting issues with unsupported plugins, new releases, etc. as the forum is only one of the numerous aspects of running a software business Andrew and I have to juggle every day. We value your time too, as community members who volunteer their time to help fellow Alfred users, so I'll definitely have a more comprehensive chat with IPB to try to bring some of these improvements in. At this point, I can't promise anything, but I'll let you know what feedback I get from the IPBoard team. Cheers, Vero
  6. 4 points
    Search Alfred Workflows Alfred Workflows help to search in Title, Keyword, Description of a workflow and open it in various actions. Requires Alfred 4! Github: https://github.com/Acidham/search-alfred-workflows Options ENTER - Shows a list of keywords in the workflow and starts the workflow with a keyword CMD - For addtional Actions: Copy path to Clipboard Open WF Folder in Terminal (cd ) Reveal in Finder Open in ForkLift (requires ForkLift installed) Config exclude_disabled: True - ignore disabled workflow in search terminal_path: EMPTY opens in macOS shell or path to custom terminal
  7. 4 points
    Acidham

    Search Alfred Workflows (Alfred 4)

    Done and released on Git!
  8. 4 points
    Vero

    Alfred 4 is coming in June! :D

    In case you haven't seen our tweet from a few days ago... Prepare your keyboards and stretch those finger muscles, Alfred 4 is coming in June! We've posted a very high-level list of just some of the features and improvements you can look forward to here: https://www.alfredapp.com/v4/ You'll answer find answers to questions about upgrades, and an email signup if you'd like to hear about Alfred 4 as soon as it's available!
  9. 4 points
    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:
  10. 4 points
    deanishe

    Search email?

    Have you read the help page for Mojave? Particularly the bit about granting Alfred "Full Disk Access".
  11. 4 points
    xilopaint

    Urban Dictionary

    I had to built a new Urban Dictionary workflow since my previous one was broken. It's available on GitHub.
  12. 4 points
    Bah! Bunch of weaklings, what you all are, with your fancy apps and your files in a cloud. What if it rains? Have you thought of that? True scotsmen don’t need backups, they memorise the binary representation of every file, and if they ever lose one they type it out. And that only if they’re in a hurry, because everyone knows the proper method is to forge the words on a metal plate inside a volcano, and read it back by holding it high to be struck by lighting.
  13. 4 points
    deanishe

    EggTimer v2 [updated to 2.0 final]

    Download the zip file from the repo (Clone or download > Download ZIP) and extract it. Go into the new directory, select all the files, right-click and choose "Compress 11 Items". That will create Archive.zip. change the name to Archive.alfredworkflow and double-click it.
  14. 3 points
    Alfred 4 Read about this workflow below. This is an update to address the new Alfred 4 data folder (thanks to xilopaint). DOWNLOAD Description Alfred 3 workflow to search and create notes in Evernote. Search Keywords ens to search in every note field ens @ to search in a selected notebook ens # to search notes with a selected tags You can use ent (search in titles only) or enr (search in reminders) or entodo (search to-do notes) or enrec (search notes updated within a week) or enu (search notes with a source URL) instead of ens. You can select multiple tags to fine tune your searching. Just add a second hash sign and select or type the tag e.g. ens #tag1 #tag2 :my query In addition, you can select a single notebook then tags too e.g. ent @notebook #tag1 #tag2 :my query Note that, if you want to select a notebook and/or tags, the query goes after the colon sign as seen above. Actions Return key to open the note Shift key to preview the note Option key to set a reminder Control key to paste the note text content to the top most application Function key to open the note URL Command key to append text (from clipboard, selected text or typed) or selected file(s) in Finder. After pressing the Command key a new Alfred window will be shown so you will be able to select the text source and the action: Return key will append without date Option key with append with current date Hint: You can also use the Command key to only add tags to a note. To do so, type or select a tag and don't type anything after the colon then select the source "Type a Note" e.g. enn #tag : Note that Alfred Fallback Search is also supported (you have to add it in Alfred 2 Preferences>Features>Default Results, then click Setup fallback results button). Create Keyword enn You can optionally type the note title or, for a more complex creation, follow the syntax below: @Notebook #tag1 #tag2 !reminder :Title @notebook: after typing @ a list of notebooks will be displayed then select one or type it; the default will be used if omitted #tags: after typing # a list of tags will be displayed then select one or type a new one (multiple tags are supported, type each one after a hash sign) !reminder: after typing an exclamation point a list of reminder suggestions will be displayed then select one or type a custom reminder such as in 4 days or 05/01/2014 or 05/01/2014 at 2:00 Title: at the end, after a colon (or the second colon if you are adding time in your reminder) Note that items of the syntax are optional, however the syntax has to end with a colon, with or without typing the note title e.g. #tag1 : Note Content Source From clipboard From selected text Typed directly in Alfred From Safari or Google Chrome URL From message(s) selected in Mail app From file(s) selected in Finder app: you can create one note with files or one note for each selected files. Alfred File Browser also supported. Type a Note also supports multiple lines and, in this case, the first line will be the title of the note e.g. enn Line 1 /n Line 2 /n Line 3 Actions Return key: create a note Control Key: create a note and open it Command key: append text or file to a note Option key: append text to a note with current date How to Append Highlight one of the note content source e.g. From Clipboard Optionally type tags and a reminder e.g. #tag1 #tag2 !tomorrow hold command key and hit return key select a note from the list (search by title only) and hit return key Mail Message subject as the note title Message received date as the note creation date Message Link as the note source URL A short header (e.g. sender) A plain text version of the email content Note Templates Read about templates here. Preferences Bring Alfred and type the keyword enpref: Search wildcard: you can set the workflow to automatically use the Evernote search wildcard (*) or you can set the workflow to use only if it is typed (the Manual setting may by faster in a huge note collection). Download Evernote 9 beta 3 Release date: 99 Jun 2019 Made in OS X 10.13.5 Requires Evernote 7.2 from evernote.com Requires Alfred 3 Download now Download Evernote 9 beta 2 Release date: 09 Aug 2016 Made in OS X 10.11.5 Requires Evernote 6 from evernote.com Requires Alfred 3 Download now For Alfred 2 Version 8.992 Release date: 20 Feb 2015 Made in OS X 10.10.2 Requires Evernote 6.06 from evernote.com Requires Alfred 2.6 or later Download now What's new? 9 beta 3: minor code optimizations and updated workflow preferences (enpref keyword) 9 beta 2: bugs fixed and Evernote API updated 9 beta 1: Alfred 3 support 8.991: Evernote 6.06 initial support 8.9: Yosemite beta and note templates support 8.7: interface bugs fixed 8.6: enn issue fixed Improved reminder time support e.g. Tomorrow at 2:00 Added support for tags that start with a hash sign e.g. #Home Added support for tags that start with an at sign e.g. @Work Added support for notebooks that start with an at sign e.g. @Notes Workflow should be faster in most of cases When appending from a search result now you can hold Option key to include current date Type a Note supports multiple lines (first line will be the title) e.g. enn Line 1 /n Line 2 New Keyword enl and its hotkey to load the last search query Added support for some of Alfred 2.3 new features Workflow version history here.
  15. 3 points
    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.
  16. 3 points
    raguay.customct

    What is a 'Legendary Licence'?

    It should be an option on the Power Pack page of the Preferences program so that we can really use it as a tip jar at any time!
  17. 3 points
    vitor

    Wrong shortcut

    Alfred uses Spotlight’s metadata. If you “Get Info” on iTunes, you’ll see it has the following keywords: “Music, Radio, Apple Music, Apple Radio, iTunes Radio, Beats 1, Beats One, B1, iCloud Music Library, Apple Music Connect, My Music”. The “L” in “iCloud Music Library” is the likely culprit.
  18. 3 points
    ZotHero Rapidly search your Zotero database and copy citations. https://github.com/deanishe/zothero Features Perform full-text search across your Zotero database, including only searching specific fields Copy citations using any CSL style you have installed in Zotero Copy citations either in citation/note style or bibliography style Copy citations in any locale supported by CSL Citations are copied in multiple formats, so the right data are automatically pasted into the application you're using Trigger search while you type using the Snippet Trigger (you must assign the snippet keyword yourself in Alfred Preferences) Download & installation Download the ZotHero-XYZ.alfredworkflow file from GitHub releases, and double-click the downloaded file to install. Basic usage These are the workflow's default keywords: zot <query> — Search your Zotero database (common fields). zot:[<query>] — Search a specific field. zotconf [<query>] — View and edit workflow configuration. See the README on GitHub for full instructions. Pasting citations When you copy a citation, ZotHero puts both HTML and rich text (RTF) representations on the pasteboard. That way, when you paste a citation into an application like Word, the formatted text will be pasted, but when you paste into a text/Markdown document, the HTML will be pasted. Licence & thanks The workflow is released under the MIT licence. The Zorro icon was created by Dan Lowenstein. Citations are generated by citeproc-js (AGPLv3). Workflow stuff is taken care of by Alfred-Workflow (also MIT licence).
  19. 3 points
    Acidham

    Alfred Markdown Notes

    Markdown Notes help to manage Markdown files in a directory with powerful full text search (supports & and |), tag search or search for todos ( - [ ] or * [ ]) . It also allows to quickly create new notes based on custom templates. I started to write this to replace the ton of Note taking apps that I used a while ago. I spent a lot of time to get this to work and the setup is a bit complex but once you went thru the steps it can indeed replace your note taking app. The best MD Editor for this purpose is Typora but any other MD editor works as well. Download at Git as usual: https://github.com/Acidham/alfred-markdown-notes
  20. 3 points
    targumanu

    Mac App Store Search

    Search the Mac App Store and view search results with artwork previews right in Alfred. Open search results in App Store.app (default behavior) Quick Look search results' preview pages right in Alfred (press Shift, the Quick Look feature must be enabled in Alfred's preferences) Open search results' preview pages in your default browser (modifier key — Command) The workflow's preferences (keyword — masprefs) allow you to set the maximum search results limit and preferred store country, as well as clear the artwork cache. Additional keywords allow you to open the App Store app's Purchases (“masp”) and Updates (“masu”) tabs. Download
  21. 3 points
    I have something in the works which I think will make you very happy with regards to this. That's all I'm saying for now
  22. 3 points
    deanishe

    First party sync service

    CloudKit may work just fine for applications that manage their own data using its APIs, but that isn't Alfred. A lot of the files being synced don't belong to Alfred: they belong to workflows. As a result, Alfred isn't in a position to manage (via revisions or whatever) the many sync conflicts iCloud's crapness causes because Alfred doesn't have sufficient information to do so. Alfred's current sync Just Works with any software that can reliably sync files/directories, be it Dropbox, rsync, Unison, Seafile or whatever. You're talking about completely rewriting Alfred's sync/file management in order to use a service that has a long history of losing data. Replacing a system that works wonderfully (if you're using reliable sync software). The new limitations to Dropbox's free accounts suck, but I'm not convinced that's a sound reason to ditch a working, platform-agnostic sync solution for one that's tied to a legendarily unreliable service.
  23. 3 points
    deanishe

    Alfred preferences fails to open

    My local kebab shop always puts up a notice when they're on holiday that says "back in two weeks".
  24. 3 points
    Andrew

    Icons are not showing properly

    Thanks to @szymon_k's information via email, it highlighted something I'd missed from the metadata output posted on the previous page. The kMDItemContentType for applications missing their icons was "com.apple.application-file" and not the correct "com.apple.application-bundle". The UTI defines that "com.apple.application-file" is for an Application file (traditionally older single-file carbon based apps), and not modern Application Bundles (multi file packages as you'd see for all modern applications). This is undoubtedly a bug hiding somewhere in Mojave, and something which seems to resolve itself over time. All is not lost though... I've just put 3.7.1 b944 pre-release which works around this Mojave bug, so the icons will be shown and the apps will be cached by Alfred! You can update to the latest pre-release in Alfred's Update preferences. Cheers, Andrew
  25. 3 points
    katie

    Reference Importer

    Thank you; I will try that! Just spent a good chunk of time doing this manually. Edit: And it works! I must have missed an update. This is literally the best day ever.
  26. 3 points
    pawelgrzybek

    Div — simple windows manager

    Ps. I am still working on support for multiple screens. It turns out it is harder than I thought to do it via AppleScript only.
  27. 3 points
    Recently I've added some new features to the workflow: App icons for all apps and their shortcuts. Search among all shortcuts without selecting an app first (use cheatsheetg keyword for that). Hide or show only specific apps in the search results. To customize that type cheatsheet keyword, select Customize your cheatsheet, then list needed apps in settings.json (sorry for not implementing a GUI for that). Check also README.md for the settings format.
  28. 3 points
    nikivi

    Moving this forum to Discourse

    I searched this forum and didn't find any thread on this but I wanted to propose it for a long time now. I very often use Discourse based forums like KM forum or Swift forum. And the experience in there is in many ways so much better than here. The interface is much cleaner, there is native markdown support, the search is better and more intuitive. I can't find anything this forum does better than Discourse can. I also have been reading this forum for a long time and lack of markdown in writing things is a very obvious paint point. There was a thread made 2 hours ago that mentions this very problem. I myself am quite annoyed too by the fact that I am forced to use an external tool like MarkdownTransform just so I can in some comfort markup my text in this forum and run it through the tool later. Also Discourse supports night theme which is a small cosmetic change but with Mojawe coming soon would be quite appreciated. It seems the big reason why this change can't be made is that you can't translate the content that is written on this forum to Discourse. Which if true, while sad, makes complete sense why we still use this forum software. But if that is not the case and there is a way to import all content into a new Discourse instance. I think this change would be really nice for the users.
  29. 3 points
    @Luciano Santana (and anyone else following along), there are a few commands (Create New Timer, Create New Alarm, and View Recent) that are still broken in Alfred 3. I have a branch that fixes them. (I also submitted a PR to Luciano's repo.)
  30. 3 points
    I've been recently playing around with launchbar and switch back and forth between it and Alfred. One thing I noticed that is pretty killer in launchbar, is the ability to use macOS services. Launchbar is indexing them by default and lets you use them either with normal text or files. A proposal could be: Type some text (or use a workflow to get the selected text and propagate the alfred window with it) Hit CTRL Select "Use Service" (or directly suggest them) Hit enter on a service to use them And the same with files. Hit CTRL and propagate the actions window with services that support the file type, next to workflow actions and default alfred actions I think this would make Alfred a lot more powerful without the need to create custom workflows. A lot of apps (the majority?) already exposes services, and being able to use them directly within alfred would be great. For example, some workflows that I manually wrote that would be possible with a service: DEVONthink: Add notes or files Delivers: Add a delivery from a text string Fantastical, Cardhop, Things: Add new entry directly from text Screenshot of available services enabled on my system when selecting text: Screenshot of available services when selecting a file:
  31. 3 points
    # fuzzylist Fuzzy, self-updating list filter workflow for Alfred 3 This is a workflow template - it does nothing as is. ## Usage: - create a csv file like you would for an Alfred List Filter - name the file *list.csv* and add it to the workflow directory On the initial run, the workflow will create a file list.json for output to the fuzzy search. If list.csv is modified, it will update list.json . ## Credits - uses fuzzy.py by @deanishe - https://github.com/deanishe/alfred-fuzzy ## Download workflow at https://github.com/derickfay/fuzzylist/blob/master/Fuzzy List Filter.alfredworkflow
  32. 2 points
    troycurtisjr

    Do Not Disturb, Limited

    My first (exported) workflow: Do Not Disturb, Limited - Toggle the macOS Do Not Disturb feature, optionally for a specified length of time. I was really inspired by CalmNotifications but I always forgot to toggle it back. Plus, I really wanted the indicator to reflect the current status, which didn't happen when the "set a plist value and kill NotificationCenter" method is used. Releases | Source
  33. 2 points
    Are you using macOS 10.15 beta now? I think you have the same problem as me. You need to manually add /System/Applications to the Search Scope list in Preferences - > Features -> Default Results (thanks to scaba).
  34. 2 points
    At $999 for the stand, I'd just tape it to the front of my old monitor 🤣
  35. 2 points
    duffkiligan (bin)$ pwd /usr/local/bin duffkiligan (bin)$ ls 2to3 apollo fuzzy_match lzcmp nettle-pbkdf2 pkcs1-conv pyvenv-3.7 xzdec 2to3-3.7 asn1Coding gdbm_dump lzdiff node pod sandbox-pod xzdiff ansible asn1Decoding gdbm_load lzegrep npm psktool sexp-conv xzegrep ansible-config asn1Parser gdbmtool lzfgrep npx pydoc3 srptool xzfgrep ansible-connection brew gnutls-certtool lzgrep ocsptool pydoc3.7 terraform xzgrep ansible-console cask gnutls-cli lzless op python3 unlzma xzless ansible-doc easy_install-3.7 gnutls-cli-debug lzma p11-kit python3-config unxz xzmore ansible-galaxy ebrowse gnutls-serv lzmadec p11tool python3.7 wheel3 ansible-inventory emacs goldin lzmainfo packagesbuild python3.7-config xcodeproj ansible-playbook emacs-26.1 idle3 lzmore packagesutil python3.7m xz ansible-pull emacsclient idle3.7 nettle-hash pip3 python3.7m-config xzcat ansible-vault etags lzcat nettle-lfib-stream pip3.7 pyvenv xzcmp duffkiligan (bin)$ sw_vers ProductName: Mac OS X ProductVersion: 10.15 BuildVersion: 19A471t /usr/local/bin is there after the upgrade, it even contains things I have installed in it before the upgrade.
  36. 2 points
    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
  37. 2 points
    RPBarnes

    Just saying thanks!

    Hey all! 😁 I only found Alfred yesterday, thanks to a YouTube video where the guy mentioned it as a 'must have' Mac OS app. Thank you all for the work on Alfred, workflows and everything else I am finding on this forum. forums are so damn good when ppl get together like this and share the good stuff 😃 Thanks folks! These workflows and stuff are incredible.
  38. 2 points
    deanishe

    Speed and compiled workflows

    The thing with Python is the startup time. If you’re using my library, for example, it takes ~0.05s to load Python and import the libraries. 0.05s is definitely perceptible. As far as optimising Python workflows goes, I focus on caching and lazy imports. They're always going to be noticeably slower than compiled workflows, though. I mostly use Go these days. It’s somewhat more effort to write than Python, but 20x faster.
  39. 2 points
    That isn't what Andrew meant. Try this: /usr/local/bin/shuf -n 1 ~/Downloads/One_Liner_Harvey.txt
  40. 2 points
    @Maddog Does that happen frequently on the same apps? I noticed that when I had that feature on, it mostly happened when copying from iTerm2. I started making precisely that to share, and it ended up being way easier than what I was envisioning initially. There you go.
  41. 2 points
    I love the snippets feature and uses like 100 times a day! One thing I wish Alfred could is, I could set up a certain group of snippets to be working on certain language input mode only for example I use ;br to make it best regards, I never type ;br on English, but I use it when I type different language. So it would be nice to make it disable this snippet to work when I'm using different language. Many thanks!!!!
  42. 2 points
    The iPad allows me to carry around the thousands of PDF documents I use for work and read them comfortably. So, it's basically also a pure consumption device for me. Also, I like small phones that I can use with one hand (I have an SE). Finally, I looked into replacing my old iPhone and old iPad with an iPhone 7 Plus, but it was more or less the same price as the SE and iPad combined. So I bought them instead, as the iPad is way better for reading A4-sized documents and the SE is way better at fitting in your pocket. And I can leave the iPad at home when I don't need it, but a Plus phone is always huge. A lot of the time, I also have my 12" MBA in my work bag (in addition to the iPad) for doing "make stuff" kind of work.
  43. 2 points
    Hi, I think I've managed to fix the workflow and adding new cities is possible again! More changes: Added a keyword to open list of the cities in an editor _timezone edit. Thanks to that you will be able to quickly delete not needed lines. When displaying the list and pressing Alt, you can remove a single city (this is fixed now) Unfortunately, you will need to create your list of cities again... But this will also clean up your list as in previous version it got messed up. Download version 2.0 I hope you will like it Note, that major parts of the app have been rewritten so I could expect also new bugs... Please let me know in such cases. Best regards, Jarek
  44. 2 points
    Hey @Bhishan-- I decided to post this to the forum in case it helps someone else out. There were two main things I was doing wrong. First was running each variable on its own thread. For what I was doing, the proper thing to do was to have everything on one thread (and therefore running one after the other). The second issue I was having was with filters. You'll need to google to understand exactly why it happens (I don't understand it well enough to explain it), but I was having unwanted newlines & whitespace in the output. This meant filters weren't working as I expected (since the input to the filter had newlines etc I didn't know about). That was fixed by using some `Transform` and `Replace` utilities. I'll attach both of the workflows based around the original workflow. Hope these workflows help you figure it out -Scott Create a new note with or without selected text with Zettelkasten metadata Create a new note (with or without selected text) & PDF from Safari tab with Zettelkasten metadata Screenshots: New note: New note & PDF:
  45. 2 points
    h2ner

    Open Contacts App from Alfred

    Agree with deanishe and was thinking the same: cmd-return to open in Contacts. I didn't know of cmd-O until I found this thread. As the modifiers control and option offer other options, I think cmd is a good choice for perhaps the most often wanted other action.
  46. 2 points
    vitor

    Web Search - Choose browser

    I think you mean “shameless plug”.
  47. 2 points
    Script Filter JSON Format documentation. Look for quicklookurl.
  48. 2 points
    alexchantastic

    Lorem Ipsum Workflow

    An Alfred 3 workflow for generating lorem ipsum dummy text using joshtronic/php-loremipsum. View on Github Installation Download the workflow Double click the .alfredworkflow file to install Usage Use the keyword lipsum to trigger the workflow Select format you want to generate (characters, words, sentences, or paragraphs) (Optional) Type in the number of the format you would like to generate (defaults to 1) Press enter to copy to clipboard and paste into the forefront application or just ⌘ + c to copy to clipboard Release Log v2.2.0 (latest) v2.1.0 v2.0.0 v1.0.0
  49. 2 points
    bojan

    One Dark

    Install
  50. 2 points
    Looking at the source code, I can see why these users are experiencing these issues. I downloaded the workflow and had a look at the AppleScript, which has quite a few issues with it. @rodrigobdz, I note from your original post that Assistive Access is required to run this workflow. Writing an AppleScript to achieve what you want here—namely opening a Chrome window/tab—shouldn't need to employ any accessibility features via System Events. Here's your code that I copied from the workflow: tell application "System Events" set myList to (name of every process) end tell if (myList contains "Google Chrome") is false then do shell script "open -a Google\\ Chrome --new --args -incognito" open location "https://google.com/search?q={query}" else tell application "Google Chrome" activate tell application "System Events" to keystroke "n" using {command down, shift down} open location "https://google.com/search?q={query}" end tell end if Google Chrome is scriptable, therefore you don't need to access System Events processes to determine whether or not Chrome is running. Scriptable applications have a property called running that returns true or false depending on whether or not Chrome is running. You can access it as with any other property, like so: set isOpen to the running of application "Google Chrome" if isOpen then ... But, for this particular property (and a couple of others that return boolean values for the state of an application, another one being the property frontmost), you can use this very natural-language syntax: if the application "Google Chrome" is running then ... Following this, the reason the users are reporting two windows opening up—one of which might even be Safari instead of Chrome—is because you have one command telling a shell script to open Chrome in incognito mode (bearing in mind that launching a web browser usually opens a blank window); and you have a second command telling AppleScript to open location and this will always happen in a new window (that makes two windows), and it won't necessarily be Chrome. I believe it uses the system's default browser, which explains why there's a user reporting that your workflow opened Safari and Chrome for him (it did with me as well). Basically, don't use open location when you want to target a specific web browser. You could have used the same shell command that launches Chrome to get it opening a desired URL in the first window: do shell script "open -a 'Google Chrome' 'https://imdb.com' --args -incognito" And, finally, for the last part of your script, you've once again elected to use System Events to issue a keypress that activates a shortcut to a menu item as a means to open an incognito window. That's a bad method. But, immediately afterwards, you use open location again, intending for the URL to open in the window you've just created. For some users, it might do just that; but for others, it won't. Basically, don't use open location, and don't use System Events for its accessibility hooks when you don't need to. It's always a method of last resort, because it's very unreliable, and poor coding practice. Do, however, use System Events for things like file and folder handling. Anyway, here's how you first check to see if an incognito window is already open, then open a URL in a new tab in the existing window instead of creating a new window altogether, or, if an incognito window doesn't yet exist, opening a new URL in a new incognito window: tell application "Google Chrome" set W to every window whose mode is "incognito" if W = {} then set W to {make new window with properties {mode:"incognito"}} set [W] to W tell W to set T to make new tab with properties {URL:"{query}"} close (every tab of every window whose URL is "chrome://newtab/") set index of W to 1 activate end tell In fact, on my system, that works regardless of whether or not Chrome is running, negating the need for all the bits that came before. Thus, that ends up being the entire script. I hope this helps you out, and helps resolve the issues your users were having.
×
×
  • Create New...