Jump to content

40-02

Member
  • Posts

    120
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    40-02 reacted to deanishe in Fakeum — Generate fake test datasets in Alfred   
    It sounds like a re-occurence of the Sierra bug. I did change that section of the code in the latest release of Alfred-Workflow (which Fakeum uses).
     
    I haven't had any issues on El Cap or Sierra, but I don't have High Sierra to test it on (and I'm not going to install it, as it's still rotten with bugs).
     
    At this point, I'd like to wait and see if anybody else is having the same issue (which should soon become apparent, as Fixum—the workflow that fixes the Sierra bug—also installs the latest version of Alfred-Workflow). If they are, I'll back out the changes to the forking code.
  2. Like
    40-02 reacted to deanishe in Fakeum — Generate fake test datasets in Alfred   
    Big update to version 2.0.
    Many new locales Update Alfred-Workflow Number of sentences per paragraph now configurable Add useful links to fakeconf Make keyword configurable via configuration sheet
  3. Like
    40-02 reacted to Vookimedlo in alfred-ffprobe   
    I have rewritten it from scratch. This is my first Alfred 3 workflow, so I use it to investigate what is possible in the amazing Alfred.
     
    Github
     
    alfred-ffprobe
    Alfred 3 workflow to display an information about various video files.
    Installation
    Install the ffprobe to your MacOS.
    You could do it for example by using Homebrew and installing ffmpeg package. brew install ffmpeg Install alfred-ffprobe wokflow.
    All further updates are handled automatically.
    Usage
    Select a video file or more video files in finder and invoke the alfred file actions ⌃⌘\.

    Choose the Analyze media file... in displayed menu and select appropriate action.

    Then, the information about selected videos will be shown. The full ffprobe output could be retrieved by selecting the option Full output.

    From time to time, full results could be annoying, so there is another option just showing the results describing inner streams. Just select the option Just streams. Output is much more well-arranged.

  4. Like
    40-02 reacted to surrealroad in Reminders   
    FYI the latest version (v73) now includes an external trigger. I just tested it with the "this" keyword, and it seems to work correctly:


     
     
     
  5. Like
    40-02 reacted to deanishe in Alfred Edit Files   
    You can't save the CSV file in the workflow. Any changes the user makes will be overwritten by a workflow update. User data goes in the workflow's data directory.
     
    Also, don't set variables with names like PATH or HOME. They're critically important system variables. Overwriting PATH with a meaningless value, like you're doing, is a fantastic way to break the world.
     
  6. Like
    40-02 reacted to Benzi in (faster) Menu Search   
    I have re-implemented ctwise's excellent implementation of the Menu Search workflow in Swift.
     
    This version is ever so slightly faster (at least on my machine ) - YMMV.
     
    Requires OSX 10.7+
     
    ↓ Download

    Refer Github README page for up-to-date information.
    Usage
    Type m in Alfred to list menu bar items for front most application You can filter menu items by name, or do a fuzzy search.
    E.g
    m new tab will match the menu item New Tab m cw will match the menu item Close Window  
    Setup
    Note that Accessibility must be enabled for Alfred in order for this to work correctly.
     
    For example, in macOS Sierra, this is configured using the Security and Privacy preference pane, under the Privacy tab with the Accessibility section selected. Alfred must be included in the list of apps allowed to control your computer. This step is required for the workflow to generate the list of menu items, and also click on a specific menu item. 
     
    Here's a snapshot of what the preference pane might look like in macOS Sierra.
     

     
  7. Like
    40-02 reacted to surrealroad in Notes   
    This just creates a new note in notes.app. To keep it simple, it just uses the first folder in the first account it finds. You can change this behaviour by editing providing the respective names in the "properties" in the applescript.
     
    Usage
     
    To search existing notes, type "n search_term" into Alfred. E.g. "n something I wrote yesterday" (not working in macOS High Sierra)
    To create a new note, just type "n note_text" into Alfred. E.g. "n something very important I will probably forget"
    To create a note from the clipboard, type "nclip optional_note_name"
    Hold option to open the note in a new window after creating it.
     

     
    iCloud Notes on OS 10.11+
     
    As of Mac OS El Capitan, you are given the option to upgrade iCloud notes accounts. Once you do this, with the normal Notes workflow you'll start seeing duplicate lines in notes. The reason for this is that prior to the upgrade the "Title" of the note and the "Body" of the note were displayed separately. After the upgrade, Notes assumes the title is *not* also included in the body, which is different behaviour, and led to the apparent duplication.
     
    Sadly there's no reliable way for the workflow to detect whether your Notes account has been upgraded or not, so fixing it would entail breaking it on installs that have not undergone this upgrade. Therefore I have opted to make a separate Workflow which is to be used by anyone who has upgraded to the new iCloud version of Notes. You will find that download link below.
     
    Changelog:
    Tuesday, 5th July 2016 - Fixed a regression where "nclip" would not work if a custom title was provided
    Thursday, 30 June 2016 – Compatibility for users who did not previously have Alfred v2 installed
    Wednesday, 27 January 2016 – Fixed an issue with notes from clipboard not working; existing iCloud notes are now searched too (thanks, Vero!)
    Friday, 16 October 2015 – Added a new Workflow for iCloud upgraded notes in OS 10.11+ (Thanks Nikita!)
    Monday, 27 October 2014 – workaround for apple bug #18734006 on OS 10.10
    Monday, 13 October 2014 – Hold option to open note window after creation
    Tuesday, 17 September 2013 – Updated q_workflow module to latest version
    Thursday, 18 April 2013 – Only first line is used as a title when using "nclip" with no arguments
    Sunday, 7 April 2013 – Properly escape illegal characters in query
    Friday, 5 April 2013 – Fixed an issue where a temporary file was getting written to the wrong place, sorry about that! Thursday, 4 April 2013 – Combined into single workflow; renamed to "Notes"; fixed an issue with clip keyword; nclip now pastes HTML if possible; workflow will notify if updates are available Saturday, 16 March 2013 – First version  
    Download (Alfred v3 and iCloud)
    http://bit.ly/2w2mILX
     
    Note: this workflow will notify you if a newer version is available. To disable this functionality, change the property "shouldCheckForUpdates" to "false"
     
    Alfred v2
    It's not currently known whether the latest release will be backward-compatible with Alfred v2.
    If you are using Mac OS 10.11+ and have "upgraded" your iCloud notes, you should use this workflow:
    Notes for Alfred v2 (iCloud)
     
    In all other cases, this is the one to use:
    Notes for Alfred v2 (non-iCloud)
     
    Source: https://github.com/surrealroad/alfred-notes
     
    Issues
    Please raise issues on GitHub, as it's easier for me to keep track of them there.
  8. Like
    40-02 reacted to jeffsui in Progress Bar   
    I created a sample workflow to demonstrate how one could implement a progress bar.


     
    This workflow requires Alfred 3.2 and takes advantage of the `rerun` feature.  
     
    https://github.com/jeeftor/ProgressBar
  9. Like
    40-02 reacted to deanishe in Pandoctor: An Alfred GUI for Pandoc   
    FYP.
  10. Like
    40-02 reacted to deanishe in Pandoctor: An Alfred GUI for Pandoc   
    We all have our dumb moments. The main thing is, spending a few minutes trying to figure it out for yourself is always the best first step because you'll often have to wait for a few hours to get an answer on the forum.
  11. Like
    40-02 reacted to deanishe in Pandoctor: An Alfred GUI for Pandoc   
    Tell a lie. I did post it here, just in another thread. Follow the instructions there (they're a bit clearer):
     
    http://www.alfredforum.com/topic/5463-pandoctor-not-putting-but-no-error-messages/?do=findComment&comment=40217
     
  12. Like
    40-02 reacted to deanishe in How to start a new line in text for Large Type function   
    Oh right. I don't think that's possible, no.
     
    I guess what you could do is use something else as a placeholder, say two spaces or |, and put a script between the input and your large type element that replaces your placeholder with a newline.
     
  13. Like
    40-02 reacted to deanishe in OneUpdater — Update workflows with a single node   
    Shawn (like Smargh) got a job—they were both students before—and doesn't have the time for Packal any more. I'm  pretty sure Packal is a zombie now, and v2 will probably never see the light of day.
     
    Would you be interested in working on a next-gen solution for updating workflows?
  14. Like
    40-02 reacted to mcskrzypczak in [1.11] Install App   
    Download
    get Install App workflow from Packal get Install App workflow direct download
    Introduction

    The Install App workflow speeds installation process (or rather copy) of applications downloaded outside of Mac App Store. The workflow is completely written using Bash Script.

    How it works?

    There are two ways to invoke that workflow:
    through keyword — install — which shows all eligible files/packages (.app package, .zip archive, .dmg image and .pkg installer) found in specified folder (default is ~/Downloads) and copy, run, mount or extract them dependably of what kind of file/package we choose; you can also use install name so Alfred will narrow results;


    through File Action Install App which behave in similar way as above.

    The Install App workflow behaves as follow:
    if you choose .app package it will be copied to /Applications folder; if you choose .pkg file it will be opened; if you choose .dmg file it will be mounted and searched for .app or .pkg to copy or run them; at the end the image will be unmounted; if you choose .zip file it will be unzipped into folder which will be searched for .app, .pkg or .dmg to copy, run or mount them; at the end the temp folder will be deleted; at the end of whole process you will be asked if you want to remove the source file.
    Tips
    to change folder to search for mentioned files you need to edit Script Filter element of workflow → uncomment SEARCHDIR variable and edit its value
    Release info
     
    1.11:
    improve mounting dmg files – now works with images with EULA  
    1.10:
    displays app icon if user has that app already (eligible for app updates files)  
    1.9:
    bug fixes dramatically reduces workflow size (from ~700 KB to 150 KB) workflow now searches in subdirectories of main directory if workflow finds .app package it will display that app's real icon (not a placeholder) 1.8:
    bug fixes following last update the workflow will open installed application if it was opened
    1.7:
    workflow checks now if app is already running and if so it asks to quit it
    1.6:
    fixed file matching fixed post-install notifications
    1.5:
    unmount .dmg image after copying/installing app, remove temporary .zip folder after copying/installing app, ability to remove source files after copying/installing app (the dialog window will appear).
    1.3
    initial public release.
    Thanks

    I would like to thank Franz Greiling who inspired me to make this workflow with his own version.
  15. Like
    40-02 reacted to pawelgrzybek in Div — simple windows manager   
    Div — simple windows manager

    This is simple Alfred workflow to help you manage opened windows. It is simple (50 lines of applescript) but powerful tool. It allows you to create your own layouts, custom sizes and custom proportion.

    Requirements

    Some of the mac OS apps are non-scriptable which means they are not working very well with applescript. Fortunately "SystemEvents" can handle them really well. Few simple steps are required to enable Alfred's access to Accessibility tools.

    1. Open System Preferences
    2. Go to Security & Privacy
    3. Go to last Privacy tab
    4. On the left panel choose Accessibility
    5. Unlock access to preferences by clicking lock in bottom left corner and pass your password
    5. Click small `+` icon and add Alfred from the list.
    6. Done

    Other windows managers requires similar procedure. It is not related with Div only. If you use older operating system than El Capitan, have a look at great instruction on [Mizage website](http://mizage.com/help/accessibility.html).
     
    Download

    Download Div from Packal

    How to use
     
    I published a detailed instruction on my personal website. Have a look if you are keen to understand a full potential of Div.

    Choose predefined layout

    Simply type `div` in Alfred window and choose layout from predefined list.

    Custom bounds

    Choose custom bounds by passing 4 space separated values. For example `div 20 20 80 80` will place top left corner of an app 20% from top and 20% from left edge of a screen, and bottom right corner 80% from top and 80% from left edge of a screen.

    Custom size

    Choose custom size by passing 2 space separated values. For example `div 800 600` will resize your window to 800px width and 600px height and place the window on the middle of a screen.

    Hotkeys

    Use predefined settings and bind custom hotkeys to them to place window in common locations:

    - ⌃ ⌥ 1  Full
    - ⌃ ⌥ 2  Medium
    - ⌃ ⌥ 3  Small
    - ⌃ ⌥ ←  Left
    - ⌃ ⌥ →  Right
    - ⌃ ⌥ ↑  Top
    - ⌃ ⌥ ↓  Bottom
     

     

     

     

  16. Like
    40-02 reacted to reorx in Emoji searcher (the best & simplest ever)   
    Hello there,
     
    I would like to share my emoji workflow with you:
     
    Download link: https://www.dropbox.com/s/z1iipjr1qvykphm/Emoji.alfredworkflow?dl=0

     
    ---
     
    Update 2016-09-01:
    Release a different version with two more functions
    Download link: https://www.dropbox.com/s/wipxjgrtec0vwlt/Emoji%20Full.alfredworkflow?dl=0
    emj: copy emoji character emjimg: copy emoji image emjcode: copy emoji unicode sequence
     
    ---
     
    The difference between this one and any other workflows that also search emoji is that, this one includes all the description and keywords in http://unicode.org/emoji/charts/full-emoji-list.html for search, make it the easiest to get the emoji you want, you don't need to remember the actual name of the emoji character, just type the word in your mind intuitively. As far as I tried, it's really smooth!
     
    And the making of this workflow is also very simple, it just a List Filter -> Copy to Clipboard , the data filled in List Filter is a csv generated from Emoji One's developer toolkit (download here). The code to generate is also simple (it's Python):
    # coding: utf-8 import json import csv with open('emoji.json', 'r') as f: s = f.read() emojis = json.loads(s) toutf8 = lambda x: x.encode('utf8') with open('emoji.csv', 'wb') as csvf: writer = csv.writer(csvf, delimiter=',') for i in emojis: name = i['name'].split('\n')[0] writer.writerow([ toutf8(u'{} ({})'.format(name.lower(), i['keywords'])), toutf8(i['char']), toutf8(i['char']) ]) Whenever new emojis come out in the future, you can get the emoji.json from emojione, run this code, and drag the emoji.csv into this workflow's List Filter.
     
    Hope it helps!
  17. Like
    40-02 reacted to emamuna in A simple Windows Switcher   
    Windows switcher
     
    Description
    The workflow can be used to switch between the many windows in the current desktop.
    It's really easy to use, you can switch to a specific named window using the keyword swin <name of the process or name of the window>.
    Then a list with the following informations about the results will appear:
    Process Application name  
    When you open one result, by pressing Enter on it, the selected window should be opened.
    In real the workflow opens all the windows of the process, but it puts in foreground just the selected window.
    With the ⌥ modifier all the windows belonging to an other processes will be hidden.
    ----------------------------------------------
    State
    Author Emanuele Munafò
    Version 1.1
    Last release 02/08/2016
    Email ema.muna95@gmail.com
    Compatibility: Alfred v3 ( or higher)
                            Alfred 2 NOT supported. 
    ----------------------------------------------
    Changelog and update
    v1.1Now the results are filtered by both the name of the window and the name of the process. [02/08/2016] 
    Thanks to: Jean-Claude Jung
    First release [01/08/2016] ----------------------------------------------
    Screenshots


     
    ----------------------------------------------
    Download
    Click here to download from Packal
     
    ----------------------------------------------
    Bug
    You can contact me here or by email if there is something wrong with the workflow.
    I had never programmed with Applescript until now, so be kindly if the structure of the script is not so good.
    Known:
    All the windows of the process will be opened, not the best way. If a process has many windows in different desktop some issues can be revealed. ----------------------------------------------
    Todo
    Open just the selected window. Add caching system for icon path/appname (It should improve the performance of about 1 sec)
  18. Like
    40-02 reacted to Vero in Expand snippets for Full Words only   
    Snippet keywords allow for spaces, so if you set a space before and after your keyword, as far as I understand, you'll get exactly the result you want?
     
    Cheers,
    Vero
  19. Like
    40-02 reacted to kopepasah in Google URL Shortener   
    Download or Learn More:
    http://kopepasah.com/alfred/google-url-shortener/
     
    Although not the first workflow I have created, this is the first that I have shared.
     
    This Workflow allows you to use Google's URL Shortener to quickly shorten a URL.
     
    Enjoy!
  20. Like
    40-02 reacted to harvey in Flush DNS 10.6 -> 12.0   
    A simple command to Flush DNS cache. Compatible with 10.6 through to 12.0. Takes no arguments but asks for system password to run the task as an admin user.
     
    Available on packal.org
     
    Any issues, please let me know.
     
    Update 04/08/2021: Added support for macOS Monterey 12.0. Commands remain the same based on early Betas.
    Update 12/12/2020: Bug Fix
    Update 06/12/2020: Support for macOS Big Sur 11.0 - Re-written code. Also allowed future to use the current command if it remains valid without future release 
    Update 22/12/2019: Support for macOS Catalina 10.15
    Update 20/1/2019: Support for macOS Mojave 10.14
    Update 20/4/2018: Updated icon
    Update 24/1/2018: Support for macOS High Sierra 10.13
    Update 12/1/2017: Support for macOS Sierra 10.12
     

     
  21. Like
    40-02 reacted to deanishe in LP Vault Manager: A Workflow for LastPass   
    FWIW, I was looking into the security of Lastpass (and others) last night.
     
    It seems that the password used to log into the online service is derived from your master password in such a stupid way as to make your master password hundreds of times easier to crack than an offline-only copy of your database would be.
     
    They also do some rather questionable things, like storing known, encrypted text in the database, which also makes cracking your master password much simpler than it would otherwise be. And ironically, the known text in question is "lastpass rocks"…
  22. Like
    40-02 reacted to deanishe in Alfred2 Hasher   
    That's bad Vítor. Terrible, in fact.
     
    I like it.
  23. Like
    40-02 reacted to vitor in Open file in Finder workflow   
    This can already be accomplished natively by pressing ⌘↩ on the results list.
  24. Like
    40-02 reacted to deanishe in Pandoctor: An Alfred GUI for Pandoc   
    You need to change line 225 of the pandoctor.py file in the workflow.
     
    Change the URL to http://pandoc.org/README.html.
  25. Like
    40-02 reacted to Florian in Demo your workflows in a beautiful way   
    Hey guys,
     
    I just made a very simple framework to enable people to demo their alfred workflows in a prettier way than a gif. It's a mockup of alfred all in javascript and CSS, with fake osx notifications and pretend key display. Scripting is very easy and all in json and there is all the callback, timing and looping you might want.
     
    Here is the live demo; it should be fully operational. More is coming but feel free to fork it on github already ! 
     
    To all those who have somewhat complex workflows, now you can explain in a very simple way. I'm also thinking Packal could integrate this Detailed instructions on github.
     
     

×
×
  • Create New...