Jump to content

DJay

Member
  • Posts

    204
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    DJay reacted to Kaihao in [1.6] Get App Icon   
    To fix this, you can add this after line11 of file acshell.sh
    LIST+=$(find /System/Applications -maxdepth 2 | egrep -i "\.app$" | grep -i "$QUERY") Then it works for most of system apps.
     
    But Catalyst Apps, like Podcast.app,  still doesn't work. As their internal structures(Info.plist and icns files) are different from the AppKit apps.
    I don't know how to fix this.
  2. Like
    DJay reacted to Kaihao in [1.6] Get App Icon   
    A simple Fix for Alfred 4.0.
    Right click the workflow, select "open in Finder".
    Open file acshell.sh.
     
    Then Change all the
    tell application "Alfred 2" to
    tell application "Alfred 4" Done!
  3. Like
    DJay reacted to foogywoo in Homekit workflow   
    A workflow to trigger Homekit scenes and accessories. 
     

     
    https://twitter.com/foogywoo/status/1121606023679229953/photo/1
     
    Download: https://github.com/foogywoo/HKAlfred/raw/master/distribution/HomeKit.alfredworkflow
    Github: https://github.com/foogywoo/HKAlfred
     
    Downside: Homekit still being a private framework on macos SIP needs to be disabled for it to work.
  4. Like
    DJay reacted to gammawert in Leo Translate Workflow - Timeout occured   
    Please check your PMs
  5. Like
    DJay got a reaction from patowod in Dict.cc offline translator   
    Alfred DeepL Translation Workflow ⭐️⭐️⭐️⭐️⭐️
  6. Like
    DJay got a reaction from Diegobit in Dict.cc offline translator   
    Alfred DeepL Translation Workflow ⭐️⭐️⭐️⭐️⭐️
  7. Like
    DJay reacted to paulsri in AirPods Audio Source Selector   
    Thanks for the update, DJay. I haven't upgraded to 10.13 yet, so I can't say for sure. You could try upgrading the switchaudio-osx package via brew:
     
    https://github.com/deweller/switchaudio-osx
     
    Though I'm not sure if that has been tested with 10.13 yet. 
  8. Like
    DJay reacted to widmr in openthesaurus.de - v2/3 Workflow   
    The workflow is working again.
     
    Updated the workflow and moved to other github repo!
  9. Like
    DJay reacted to mklement0 in speak.awf - a TTS (Text-to-Speech) workflow for multilingual scenarios   
    The workflow comes with two distinct feature groups:   Speak the active application's text with a specific voice; useful for multilingual setups where you want to have text spoken in one of several languages on demand. For instance, you could have one global keyboard shortcut for speaking text in English, and another one for Spanish. Speak specified text with one or more voices, selectable by name(s) or language(s); useful for interactive experimentation with multiple voices, such as to contrast regional accents.   For details, see the repo.   Here's the direct download link to the most recent stable version (this link will remain current).
      However, I suggest installing via the npm registry, if you have Node.js installed - if not, consider installing it just to benefit from its great package manager, npm; try curl -L http://git.io/n-install | bash  ):     [sudo] npm install -g speak.awf The advantage of this installation method is twofold:
     
    Remembering only the package name is sufficient to install the workflow (again). More importantly: It's easy to update the workflow to its latest version: [sudo] npm update -g speak.awf If the latest version is already installed, no action is performed.
     
  10. Like
    DJay reacted to mcskrzypczak in VNC Workflow   
    Inspired by Don Southard's Screen Sharing Workflow for Alfred v1 I have made VNC workflow using Alfred 2 dynamic list feature.
     

    First of all here is the download → link
     
    To add machines simply write vnc setup and after space insert machine name, its IP address and optionally port, exactly like that:
     
    Name-IP_address:port
     
    for example:
     
    Living Room-192.168.1.1:5901
     

     
    To delete machines write vlc delete and choose from list which machine you would like to delete.
     


     
    Please, feel free to comment, to give some hints, etc.
  11. Like
    DJay reacted to wkoffel in Workflow: Amazon Affiliate Link Generator   
    Alfred 2 Amazon Affiliate Links Workflow
     
    Quick Start: Download Here
      An Alfred workflow for generating simple Amazon Affiliate links with your own tag.  Designed for anyone who generates a lot of custom links from URLs.  This workflow will clean up all the parameters from an amazon.com URL, and then append the configured tag to it.  
     
    Setting Your Affiliate Code
     
    The keyword trigger alink code <your-affiliate-tag> will set a new affiliate code, which all subsequent calls to alink will use.
     

     
     
     
    Generating Links
     
    The keyword trigger alink <an-amazon-product-url> will strip extra junk from the URL (all the query params, which aren't necessary for Amazon product links), and append "tag=your-affiliate-tag" to it, copying the result to the clipboard.
     

    You will get an error message if you haven't set an affiliate code yet (see above), or if the target link is not a valid Amazon link.
     
    Install Notes
    Download the compiled workflow directly, or visit the repository for the full source code
     
    I'm happy to take feedback on the installation process.  In theory, I've bundled all the necessary ruby gems in the workflow package proper, so it should be a simple double-click install.  If you do need to install manually, please let me know.  To install manual dependencies, you would run just "sudo gem install addressable", and that should suffice.
     
    This has been tested on OS X 10.13 High Sierra and above, and may work on earlier versions of macOS.  It requires Alfred 3+   Credits
     
    Thanks to Bryan McKelvey for the simple Alfredo Ruby Gem (no longer used directly, but code inspired by)
    Thanks to phyllisstein for Alleyoop
     
    Release Notes
    v1.0 (Feb 24, 2014) - Initial release v1.1 (Mar 24, 2018) - Alfred 3 and High Sierra 10.13 support  v1.2 (Oct 27, 2019) - Update for Alfred preferred JSON format, support for macOS 10.15 Catalina  
    Feedback Wanted: I'd love to hear feedback.  Are you using this workflow?  How?  What improvements would you like?
  12. Like
    DJay got a reaction from ssent1 in Uni Call [v6.031]: The missing universal audio, video call and text workflow for Alfred   
    Great workflow. Thanks a lot.
    And also thanks for the hint to Phone Amego . This App is awesome. Didn't know this all was possible with a connected iPhone. WOW.
    Tried it. Bought it. 
  13. Like
    DJay got a reaction from 40-02 in Remote Media Buttons Template   
    I did a few darker Media Buttons and a blank psd Template to customize. Feel free.
    Maybe it's helpful for somebody.   http://cl.ly/3v3I0G1U3u3j  
  14. Like
    DJay reacted to matias in AlfredBullet: Send links or text to your devices via PushBullet   
    I didn't really like any of the existing Pushbullet workflows, so I made my own. Say hello to AlfredBullet:
     

     
    Pushbullet is an app and service that lets you send links, text and other content between your devices (iOS, Android, Mac, Windows, etc).
     
    The workflow is available for download on GitHub and (experimentally) Packal:
     
    Github (matiaskorhonen/alfred-bullet) Packal: AlfredBullet  
  15. Like
    DJay reacted to Andrew in Yosemite-esque Cards   
    I have some pretty special ideas for the future of Alfred and how things are displayed, so stay tuned
  16. Like
    DJay reacted to deanishe in Searchio! Auto-suggestion from search engines in different languages   
    Searchio! workflow for Alfred
    Auto-suggest search results from multiple search engines and languages.
     
    There are a few existing workflows that provide auto-suggest results from one or the other search engine, but this includes not only multiple search engines, but also allows you to specify multiple languages/regions for your results.

    Supports the following search engines/websites:
    Google Google Images Google Maps YouTube Wikipedia Wiktionary Amazon eBay DuckDuckGo Bing Yahoo! Ask.com Yandex.ru Naver.com Wikia.com  
    Download and installation
    Download the latest version from the GitHub releases page or Packal.
    Usage
    There are several searches pre-configured. Only some have keywords (i.e. can be used as-is):
    g — Search Google in system (i.e. default) language m — Search Google Maps in system (i.e. default) language gi — Search Google Images in system (i.e. default) language w — Search Wikipedia in system (i.e. default) language wn — Search Wiktionary in system (i.e. default) language a — Search Amazon in system (i.e. default) language. If your system language is English, this will search Amazon.com. Use -l uk in the Script Filter to search Amazon.co.uk or -l ca to search Amazon.ca. yt — Search YouTube in system (i.e. default) language searchio [<query>] — Show settings and list of supported search engines. Currently, the only setting is a toggle to also show the <query> in the results list (default: No). searchiohelp — Open help file in your browser You can add a keyword to (and edit) one of the existing examples or add your own searches. For details on how to do that, see the GitHub page.
     
    Licensing, thanks
    The code in this workflow is released under the MIT Licence.
    The icons belong to the respective search engines.
    This workflow uses the Alfred-Workflow library and docopt (both MIT-licensed).
  17. Like
    DJay reacted to targumanu in iTunes Store Search   
    Search the iTunes store and view search results with artwork previews right in Alfred.
    Open search results in iTunes.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 — itprefs) allow you to set the maximum search results limit and preferred store country, as well as clear the artwork cache.   You can restrict your searches to the following categories using corresponding keywords: Albums (ital) iOS apps (itapp) Audiobooks (itau) Movies (itmo) Music videos (itmv) Podcasts (itpo) Songs (its) TV shows episodes (itep), and TV shows (ittv) However, you don't have to remember all those keywords. Just use the generic keyword (“it” by default) add “-” after it, and the workflow will show you the list of available categories to choose from (see the second screenshot).   Download  
  18. Like
    DJay reacted to MuppetGate in 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.
  19. Like
    DJay reacted to Tyler Eich in Duration Calculator — Add and subtract durations of time   
    This workflow extends Alfred's built-in calculator function. It recognizes durations as input and allows them to be added / subtracted. For example, if you type "8:00:18 - 4:19:23" into Alfred, you'll get "3:40:55".
     
    You may add or subtract as many durations as you like (e.g. "3:32:55 - 5:57 + 4:50:14").
     
    Download
     
    Preview:

  20. Like
    DJay reacted to schleifer in Viscosity.app workflow   
    Howdy All,
     
    I've written a workflow that works with Viscosity, which you can use to start or stop OpenVPN connections.
     
    The configured keyword is 'vpn'. That will show all of your configured networks:
     

     
    And autocomplete (case-insensitively) on the argument, if one is provided:
     

     
    You can inspect the source on Github.
     
    Here's some commands you can run in Terminal that will import it into Alfred:
    cd ~/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows curl https://nodeload.github.com/andrewschleifer/viscosity-alfredworkflow/zip/master > \ viscosity-alfredworkflow.zip unzip viscosity-alfredworkflow.zip rm viscosity-alfredworkflow.zip  
    New Feature Update:
     
    1. The subtitle now tells you if actioning that selection will connect or disconnect from that network.
    2. There are Connect All/Disconnect All operations that will act on all VPN connections you've defined.
     

  21. Like
    DJay reacted to Benzi in Control Radium 3 from Alfred   
    This is a simple workflow that allows you to control Radium 3 from Alfred. (Latest update is version 4)
     
    Version 2
    A mini-version, which shows track and station info, and lets you quickly toggle the playing state.
     

     
    Download from here.
     
    Version 3
    Same as version 2, but the classic icons.

    Download from here.
     
    The first Radium icon courtesy myBaco - http://mybaco.deviantart.com/
     
     
    Version 4
     
    Oh well, another update, another icon set for Radium   

    Download
  22. Like
    DJay reacted to paulelms in speedtest.net workflow   
    Measure internet speed with speedtest.net service
     
    Usage:
    speedserv 10 – show 10 nearest servers, press enter to test speed speedtest – test speed with nearest server speedtest 232 – test speed with server id 232 Results displayed in notification.
    Server list is cached and periodically updated automatically.
    Speedtest-cli included.
     
    Download on packal
    direct link
     


    Update log
    24.03.2014 – fixed bug with cache 25.03.2014 – changed cache from 5 days to 10 min
  23. Like
    DJay reacted to gxfred in Apple Account Switcher   
    This workflow allows you to switch between multiple Apple accounts quickly and easily in iTunes, App Store and iBooks. 
    Also it can automatically turn on iTunes Match (iCloud Music Library) for you after switching (when available).
    Passwords will only be stored in Keychain. 
     
    Keywords
    switch - Switch between Apple accounts in iTunes, App Store and iBooks fill - Autofill the password of your Apple account to the current input area  
    Download
    v1.5: http://cl.ly/cFsl
    v1.4: http://cl.ly/YC2k
    v1.3: http://cl.ly/Xqnl
    v1.2: http://cl.ly/U5YK
    v1.1: http://cl.ly/U4Aw
    v1.0: http://cl.ly/U4KK
     
    What’s new
    Version 1.5 (2015-08-16) - Compatible with iTunes 12.2. - For users who use multiple input languages, now it can change input language to English before switching and autofilling to prevent entering non-ASCII characters, and switch back to previous input language when done. (Thanks to https://github.com/ybian/smartim) - Support non-email Apple ID. Version 1.4 (2014-10-23) - Update to OS X Yosemite's icons and fix some small bugs on Yosemite. Version 1.3 (2014-10-02) - Fix an issue that account and password would be entered into wrong fields in Mac App Store on OS X 10.10 Yosemite. Version 1.2 (2014-02-24) - New keyword "fill" to type in Apple account passwords for you automatically. Version 1.1 (2014-02-23) - Fix a mistake that passwords are stored in the configuration file.  
    Packal address
    http://www.packal.org/workflow/apple-account-switcher
     
     

     

     

     
    Note: Technically, it should be able to support all system languages. But if it doesn't work with your system language, please contact me.
  24. Like
    DJay reacted to ClintonStrong in QuickCalc [Updated Apr 17]   
    An alternative calculator for Alfred 2, supporting custom functions and variables, automatic parentheses matching, and percentages. It also supports k, m, and b (or thousand, million, and billion) as suffixes on a number.

    It's essentially a wrapper around bc with a few extras added in.

    Installation

    Simply download the workflow and open the file. You'll need to have the Powerpack to install workflows.
    Default functions

    I've tried to add support for most of the functions from Alfred's advanced calculator.

    Supported functions: sin, cos, tan, log, log2, ln, exp, abs, sqrt, asin, acos, atan, sinh, cosh,tanh, asinh, acosh, atanh, ceil, floor, round, trunc, rint, near, dtor, rtod, pow, logx, mod, min, max.

    Most of these should be similar to the implementation of Alfred's advanced calculator, but there are a few additions:
    pow(x, y) can be used to raise x to the power of y, without the integer limitations of the ^ operator in bc. logx(base, x) lets you get the log of a number with a defined base (log calculates with a base of 10 and log2 with a base of 2). mod(x, y) performs the modulo operation. dtor(d) and rtod® converts between degrees and radians (this is part of Alfred's calculator, but I'm documenting them here since googling them doesn't turn up useful results). Defining custom functions and variables

    After using the workflow at least once, you can find the custom functions/variables file at "~/Library/Application Support/Alfred 2/Workflow Data/com.clintonstrong.QuickCalc/custom.txt"

    Here's an example custom.txt file:
    define f2c(q) { return (q - 32) / 1.8}define c2f(q) { return 1.8 * q + 32}tax = 8.25%vat = 20% In this case, I just defined some functions to convert between celsius and fahrenheit, and set up some variables to use in calculations. It uses the syntax of GNU bc.

    Known bugs and limitations

    When using functions that take multiple arguments, use both a comma and a space to separate the arugments. This is necessary since commas and spaces can be used as thousands separators. For example, use min(5, 10) instead of min(5,10).

    Because percent signs % are used for percentages, you'll need to use the mod function for modulo. For example: mod(10, 3)evaluates to 1.

    Due to limitations with bc, the exponentiation operator (^ or **) doesn't allow numbers to be raised to the power of a float (a number with digits after the decimal place). To get around this, you can use the pow function. For example, pow(2, 2.5) evaluates to 5.6568.

    Percentages don't work as expected within functions. They still get converted (by dividing by 100), but it doesn't work correctly with addition and subtraction (100 + 10% evaluates to 100.10 rather than 110). Percentages should still work fine outside of functions.

    The workflow currently doesn't have support for detecting locales. It expects a period . to be used as a decimal point, with commas, underscores, or spaces as optional thousands separators.

    More info
    bc OS X Manual Page bc programming language on Wikipedia phodd's collection of functions, some of which are used here.  
    Changelog
     
    Apr 17, 2013: Added 'x' for multiplication. Bugfixes. Fix for Ruby 2.0.0/Mavericks.
  25. Like
    DJay reacted to ClintonStrong in Google Calculator Percentage xxx% of xxx   
    Hey there. I created a workflow that does this (and a few other things), called QuickCalc. It still needs some work (there are a few bugs lingering around), but it should be able to accomplish what you're asking for.   It doesn't automatically detect locales, so you'll need to manually set the thousands/decimal separators. In Alfred's preferences, find QuickCalc, double click the "qc" script filter, and set the script to the following:   export THOUSANDS_SEPARATOR='.' export DECIMAL_SEPARATOR=',' /usr/bin/ruby main.rb "{query}" I just added support for those separators today, so let me know if you find any issues with it.
     
    Oh, and one downside to setting the separators like this is that you'll have to re-enter them when you update the workflow. I'll try to find a better solution for that.
×
×
  • Create New...