Jump to content


Popular Content

Showing content with the highest reputation since 09/21/2018 in all areas

  1. 2 points

    macOS Mojave Theme (Dark mode) switcher

    Hey everybody, I've been testing out macOS Mojave + Dark mode the past few days and wanted to be able to toggle between the light theme and dark theme using alfred. So I made a simple workflow for it. It's probably not useful to most of you yet (as Mojave it's still on dev beta 1) but i'll be making sure it stays working as there are more updates Download Workflow View on Github
  2. 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.
  3. 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
  4. 2 points

    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. 1 point

    Evernote Workflow 9 beta 3

    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.
  6. 1 point

    Yet another date calculator

    Date Calculator Hello there! I needed a bit of motivation to learn Python and Alfred workflows, so I thought I’d kill two horses with one bullet, so to speak. Right, so this is a date calculator – kind of. It won’t tell you when you will the lottery, or how long you’ve got to hide your ‘arty videos’ before your wife gets home, but it will answer one or two very simple questions about dates. For example, if you enter dcalc 25.12.14 - 18.01.14 then it will tell you the number of days between those dates. Note that the workflow parses the command as you enter it, so you’ll see invalid command, invalid expression and invalid formaterrors as you type. Once you’ve completed the command then you’ll be given the result. You could also try dcalc 25.12.14 - now for the number of days until Christmas. (Always seems so far away . . .) Maybe you don’t want it in days, but would rather it in weeks: dcalc 25.12.14 - now w or days and weeks dcalc 25.12.14 - now wd or years, months, weeks and days dcalc 25.12.14 - now ymwd or dcalc 25.12.14 - now long will do the same thing. Personally, I always use the long format because it’s more accurate. For those who like to look ahead, you can add days to a date dcalc now + 6d or weeks dcalc 18.12.14 + 9w or combine ‘em dcalc 18.12.12 + 5y 9d 3w - 2d + 1d 1w What does that mess do? Take the date 18.12.12 Add 5 years Add another 9 days Add another 3 weeks Then take off 2 days Add another 1 day And then add another 1 week If you want to know what week number you’re in, then try this: dcalc today wn Or for a specific date: dcalc 25.12.14 wn You can also use the today thing in other places too: dcalc today + 4d And we have another thing called time because the workflow can handle times too: dcalc time + 6h 8M will add 6 hours and 8 minutes to the current time. Note the capital ‘M’ to denote minutes. Odd, I know . . . sorry, but the workflow has to distinguish between this and a small ‘m’ (for months). I figured make this one a capital because it would see much less use. (It has for me.) If you just want the current time, then just enter dcalc time Here’s another time calculation dcalc 14:35 + 6h That’s the time 6 hours from now, and for real nerdiness: dcalc 21.06.14@14:20 - 23.01.12@09:21 long Probably not all that useful, but some of this other stuff might be. You know all about dcalc now For giving you the current time and date. While you can use dcalc tomorrow for tomorrow’s date, and as you would expect dcalc tomorrow + 1d will give you the day after tomorrow. dcalc next tue will give you the date next Tuesday. Or for for Thursday you could enter dcalc next tue + 2d if you’re still a little too inebriated to realise that dcalc next thu will give you the same answer. That about covers it, I think. I haven’t done anything clever with locales, but you can pick a different date format with dcalcset date format And we also support both 12-hour and 24-hour time formats. dcalcset time format I would recommend sticking with the 24-hour format; it's a lot easier to type because the AM/PM symbols have to be in upper case. You can also set the combined date and time format using: dcalcset date and time format If you’re ever puzzled by invalid command or invalid expression errors, then start with the settings; they might be set incorrectly. Oh, almost forgot. dcalc easter Is the date for next Easter Sunday, for no other reason that I can never remember it, and now there’s an easy way to find out how many days until Christmas: dcalc today - christmas And to celebrate finishing my new book, I decided to add: dcalc passover Alternative parser If surround a simple expression in double quotes, then something quite magical happens: dcalc "4 hours 8 minutes after 4pm" or dcalc "6 weeks and 4 days after next wednesday" or dcalc "1 day after tomorrow" Yup! A natural date language parser! You can even combine it with the existing parser: dcalc "next friday" + 1d This is a little bit experimental (I might drop it later if it proves to be problematic), but I thought I'd throw it in for a bit of a fun. Credits A list of things that made my first attempt at Python programming possible: Dean Jackson for his more-than-slightly awesome Alfred Workflow framework(Jetbrains(HumanFriendly(Python-DateUtil(PyPEG(ParseDateTime(Programming Praxis(MIT(http://opensource.org/licenses/MIT) one will do. :-)The MIT License (MIT) Copyright © 2014 MuppetGate Media Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  7. 1 point
  8. 1 point
    I had a few issues with Typinator myself in few apps. I found that sending them over to the developer behind the app (gue) had them solved in few days. He is very responsive.
  9. 1 point
    @Dasblatz including the Alfred theme switch. The workflow is a separate install as I prefer using a custom Aflred theme I didn't include the toggle as it was only changing the Alfred theme to light.
  10. 1 point
    tell application "Finder" make new Finder window set the target of the front Finder window to (POSIX file "/tmp") -- or -- set the target of the front Finder window to home end tell
  11. 1 point

    Dark Mojave

    A simple theme for Mojave DOWNLOAD
  12. 1 point
    No worries. Nobody ever reads the docs. They mostly exist so we don't have to repeat ourselves
  13. 1 point
    I guess the guys who let High Sierra through with the passwordless root login and password-in-the-reminder-field bugs got sent to work in the cafeteria. Seems a fair swap.
  14. 1 point
    Even when they do ask, it can already be bypassed. No surprises there; the whole system is a bloody mess. You can’t click to allow when using remote desktop (alright, I can see why) but you can use the same remote connection to open an AppleScript to do the clicking for you (what?); you can’t move a quarantined app to Applications automatically because it’ll be in Translocation Mode (argument being it needs to be moved with the cursor to prove intent) but you can disable quarantining with a single CLI command (are you kidding)? Seems like when Apple decided to gut the automation team, they also put the cafeteria interns in charge of the security team. Hey Apple, cancel or allow?
  15. 1 point

    Crash when quicklook-previewing URL

    But then I’m adding a new tool to manage without needing to. I have. I even started Haskell Programming from First Principles, which was supposed to be this holy grail book for Learning Haskell, but was unbelievably bored. I see that Lynda has a course in it. I might try it later. Because right now it’s what I want, but not what I need. Can’t justify the time commitment. As soon as I see an npm install command on a Workflow’s description, I close the page. No looking back. Yep. Summed it up perfectly.
  16. 1 point

    Crash when quicklook-previewing URL

    To each their own. I never bought the speed of install/uninstall argument regarding package managers. You’re not doing it all the time. I’d rather have correct than fast (and Nix might just be both). But even if you were doing it all the time, by far the biggest culprit of slow installs is the time it takes to download something, and that’s dictated by your connection, not the software. This is also achievable with Homebrew. brew-gem does it for ruby gems. No idea if there are others for Python/Node, but there’s no reason they aren’t feasible. Also, I’m wary of package managers that manage packages of others. They’ll either have outdated/abandoned packages without you knowing, or if they’re getting updated automatically they’re at the mercy of the originator, and I’d rather not have that. Some problems cannot be solved technically. I’ll add you haven’t addressed my point about proprietary/GUI apps. If Nix doesn’t have them, then it doesn’t have everything. And if it doesn’t have them, then it doesn’t address my needs. You say that like it’s a small thing. I have stuff to do. If I wanted to fight with my tools all day I’d have stayed in Linux. The measure of a tool isn’t just power. It doesn’t matter if a tool is the best thing since sliced bread if one can’t understand how to use properly, or if taking the time to understand it overshadows its advantages. I understand you (you personally) are always trying new tools are trying to optimise the smallest of things. There’s nothing inherently bad in it (quite the contrary!). I’m like that too but fight not to be. It’s the reason I learned vim (which I use to this day); the reason I used Linux in full CLI mode (I even got mplayer working); the reason I switched to Gentoo; the reason I did sometimes monthly, sometimes weekly, and sometimes multiple times a day clean installs of my system. All in the name of perfecting my install scripts and getting the perfect configuration right of the bat. I’ve managed to scale it down considerably. Now I only do yearly clean installs, and even those are starting to become a chore (good!). Sometimes I still fall off the wagon, like the time I switched to yarn after it was released (in my defence, npm does suck) and eventually went back (no real benefit). It’s the reason I tried the silver searcher (such a great name) and eventually switched to ripgrep. No real regrets there, as it didn’t take long and I use it frequently. The penny started dropping when I got into college and had to get a laptop, but realised (before I even installed anything) I wouldn’t have the time or patience to do the school work and manage the Linux system all day. So I scaled back to Debian (mild success). Maybe I should’ve joined Linux Admins Anonymous, or something. Eventually, optimisations start to become ricing. You just described two cryptic operations, and in one of them you needed a non-macOS-native tool as an intermediary between the tool and xargs. If those are typical, you either need to memorise those flags, have aliases for them, or constantly check the help. All those options are bad design. I’d like to see one. But the point doesn’t really hold anyway. Does this look like ruby? No. Remove the (quasi-)boilerplate first and last lines, and it doesn’t even look like runnable code. We get contributions from people who don’t even know how to code, let alone in Ruby, precisely because the DSL is simple. Again, point doesn’t hold. Last year (or was it the one before?) Homebrew Cask was the repository with the most contributions on Hacktoberfest. I know that because they told us. And it was a pretty typical month. We get dozens of daily contributions. So do we. If a PR is well done, it’s usually merged in a few minutes. brew tap. Except we are active on different mediums. We go where the users go. Most of our users prefer opening issues, so that’s where we are. Saying “this tool has a chat in the platform I want” only addressed your concern. I believe you. And I believe they have engineers that are way better than I am at both coding and application design. But I also believe they won’t solve the the proprietary/GUI apps problem while keeping true to their current methodology. They’re yet at the first mistake of thinking siloing apps and linking them to /Applications works. If they expand the amount of apps, they’ll soon find that doesn’t fly. To fix that they’ll need to either: Modify proprietary binaries. Yeah, no thank you, not taking that chance. Refuse apps that don’t behave well with that model. Prepare to not have a ton of useful and popular apps. Convince every developer to change their distribution model. Anyone doubts that’s impossible? Really solve the issue, in a way that keeps apps working smoothly without modification. I’ll be really impressed and concede! In and episode of Hypercritical (I think either 14: A Dark Age of Objective-C or 15: The Bridges of Siracusa County), John Siracusa commented on what made Rails so popular (and by extension Ruby), when it was so technically flawed, like the first web framework of an amateur. It was the idea of convention over configuration. It’s because the experience of using it was so much better. Technical merit isn’t everything (or else JavaScript wouldn’t have stuck around, let alone rise like it has). People need to get shit done. Documentation matters. Experience matters. Interface matters. See, I have no doubt Nix is great. If you tell me it’s amazing and academically proven to be the best way to build a package manager, I’ll believe you. I’m a huge fan of functional programming, and in particular would like to use Haskell. But so far all the advantages you’ve mentioned are either things Homebrew can do, or theoretical advantages that don’t (yet?) have demonstrable effects. You also did not address the impactful disadvantage of it not having proprietary/GUI apps. So for now Nix is an ostensibly superior package manager that doesn’t have the packages I need. Why should I switch? The answer is I shouldn’t. Not unless I want to enjoy messing with it, and in that case there are things that I’d both be rather be doing and would be more useful to everyone, like learning Haskell. Sure, but we can say that of tons of tools. And again, learning Haskell at this point would be a way better return on investment.
  17. 1 point

    Crash when quicklook-previewing URL

    I was thinking the same. I plan to upgrade to Mojave so this shouldn’t affect me much longer, but decided to open a bug report anyway in case it’s something deeper in Alfred. Because I always do a clean install when upgrading, but in High Sierra’s case life happened and I never got the opportunity. I also wanted to finish some CLI tools beforehand1 but never got around to it. At a certain point it started to make less sense to upgrade since I was going to have to repeat the process in a few months time. Doing an upgrade in place was also a bad option because I predict a higher than normal chance of data loss (new file system). Nope. I had a few with some of my ruby Workflows before High Sierra was released, but I fixed it temporarily by calling curl. Has been working well ever since. 1. One of them being a way to save/restore preferences. Kind of like mackup, but actually usable for my needs. Mackup moves your preference files, which is a terrible solution that continues to cause data loss for tons of people, and doesn’t work with Mac App Store apps. I have a quick and dirty solution that already works but isn’t ready to be shared yet.
  18. 1 point

    Use Alfred Clipboard to PowerPaste

    @Michael S @MIchiel H With workflows, you can create pretty much any clipboard history paste and dispatching of key combos to move to the next line, etc... Take a look at the documentation on Clipboard History dynamic placeholders here to get started with how to paste multiple clipboard items: https://www.alfredapp.com/help/features/clipboard/dynamic-placeholders/#clipboard Cheers, Vero
  19. 1 point

    Create new task in OmniFocus inbox

    Not until OF3 ships. I poked around in the SQL and the tag data isn’t being synced to OF2 even though it’s obviously there in the cloud. Until we can read the SQL there’s no way to tell what to look for.
  20. 1 point
    For (1), run the command open /private first (that opens /private in Finder). For (2), you can only (easily) send a single command to Terminal. What you need to do is join your commands with && or ;: sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist && sudo launchctl start com.apple.tftpd ... To close the terminal afterwards, add ; exit to the end of the command, or to close the entire application, run osascript -e 'tell application "Terminal" to quit') You shouldn't put your Mac password in workflows. Instead, edit sudoers to allow your user to run those commands without a password (you still need sudo, though).
  21. 1 point

    Undo deletion of Snippet collection

    This thread has made me take a fresh look at how Alfred deletes snippets, and I've made a change to now move to trash for both snippets / collections and workflows instead of removing them. This will make it into the next Alfred release
  22. 1 point

    Evernote Workflow 9 beta 3

    I've installed the most recent workflow and recent version of Evernote from the website (version 7). I'm having the same problem as described earlier in this thread. The search opens a google search instead of Evernote. I've tried to install an older version of Evernote (6) but I'm not able to run it as it is not compatible with my version 7 data. Any suggestions?
  23. 1 point

    The Minimalist

    Thanks, I love that cloudy theme
  24. 1 point

    The Minimalist

    These themes are top notch. Nice work, leefur. Appreciate you keeping them updated also!
  25. 1 point
    You are in fact setting a UID of '' in your XML... For Alfred to generate a random UID, you need to miss the UID field altogether... <item valid="no" autocomplete="Playlist▹spotify:user:trickyofficial:playlist:1u5vQfIxo8X1zoOInXxSGn▹"> This should fix the sorting issue you're seeing. The code / behaviour around this hasn't changed for quite some time, so it may have just been lucky that having all UIDs set to the same empty string would have sorted them arbitrarily correctly for you. Moving to [closed], but do let me know if this fixes your issue or not. Cheers, Andrew