Jump to content

juliosecco

Member
  • Content Count

    114
  • Joined

  • Last visited

  • Days Won

    3

Reputation Activity

  1. Like
    juliosecco reacted to dfay in Fuzzy, self-updating list filter workflow template   
    # 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
  2. Like
    juliosecco got a reaction from MarcG in [SOLVED] Screenshots to preview. Is this possible?   
    just for curiosity and trying to understand,
     
    could you try this?
     
    snapshot2
     
     
     
  3. Like
    juliosecco reacted to vitor in [SOLVED] Screenshots to preview. Is this possible?   
    screencapture, which comes with macOS, is surprisingly capable (man screencapture) and can do it in a single command:
    screencapture -iP "$(mktemp).png" i is to capture interactively (i.e., the same as ⌘⇧4). P is to open the image in Preview after it’s done. "$(mktemp).png" is a temporary file to store the screenshot, which screencapture needs.  
    Add that in a Run Script Action connect by a Hotkey Trigger, and you’re set. Here’s a ready-made Workflow.
  4. Thanks
    juliosecco reacted to isaacpz in Word Search: A workflow to make you a better writer   
    Word Search is an Alfred 2/3 workflow which exposes powerful word searching utilities. Ultimately, the workflow can be leveraged to widen your vocabulary and make you a better writer.
    Quick Reference
    syn [word] - Broadly searches for words related to a word/phrase. dsyn [word] - Searches for a word’s exact synonyms. ant [word] - Searches for a word’s antonyms. rhyme [word] - Searches a word’s rhymes. describing [word] - Searches for words that describe another word Usage
    Simply type in a command. Selecting a result will copy that word to your clipboard and automatically paste it in the front most app.
    Installation
    Simply download the latest .alfredworkflow file and double click it to import it to Alfred. Word Search will update on its own.
    Demonstration
    Searching for words that describe “dog” 

     
    This forum doesn't like many images. If you want to see more screenshots, checkout the github page.
  5. Like
    juliosecco reacted to Carlos-Sz in Recent Items 4.2 for Alfred 3: Docs, Folders, Apps + Custom Categories + Favorites + Interaction with Open/Save Dialogs and more...   
    Overview

    Workflow to display recent Finder files and folders featuring:
    5 default categories 2 custom categories Favorites, including a file action Keywords and hotkeys for Favorites and all categories apart Interaction with Open/Save dialogs and Finder Go To Folder Preview, reveal, open or use Alfred file actions Usage

    Show Alfred and type the keyword rec:



    You can also use the category keyword if you prefer to access the recent files directly, without an initial menu:
    Now: keyword now Folders: keyword fol Applications: keyword apps Documents: keyword docs Downloads: keyword dow Custom Category 1: keyword c1 Custom Category 2: keyword c2 Favorites: keyword fav In addition, there is a hotkey for the keyword rec, Favorites and all categories apart.

    Note that all keywords, as well as the hotkeys, can be changed (go to Alfred Preferences > Workflows).

    Finally, once inside a category you have the following actions:
    Return key: open the file or folder Command key: reveal the file or folder in Finder Option key: pass the file/older path to an open/save dialog or Finder window Control key: add/remove an item to/from Favorites Shift key: preview (Quick Look) the file or folder Custom Categories

    You can set up to two custom categories:
    Show Alfred and type the keyword recpref Select a category to configure and press return key Type an unique category name with at least 3 characters Type one or more (separated by comma) file types e.g.: com.adobe.pdf,public.plain-text To find a file type you can use Alfred Metadata Analyzer.

    To remove a custom category press command key while highlighting one of them in recpref.

    Favorites

    All files or folders set as a favorite item will remain in the list no matter how old they are.

    To add an item to Favorites just highlight a file or folder, hold control key and press return key.

    To remove an item go to Favorites, highlight an item, hold control key and press return key.

    You can also add items utilizing Alfred File Action (accepts multiple files).

    Note that Favorites has also its own keyword (fav) and hotkey.

    Interacting with Open/Save Dialog or Finder

    You can pass a recent file or folder path, or an item in Favorites, to an open/save dialog or even the current Finder window to go to that folder:
    when an open/save dialog is displayed type the keyword rec or any other category keyword find an item (a file or folder or an item from Favorites), highlight it, hold option key and press return key wait a bit so the workflow can load and paste the item path Default Folder

    The workflow remembers the last path used per application. To use the feature just type the keyword df when an open/save dialog is displayed.

    If the workflow was never used for the application, or the path does not exist anymore, then the keyword rec will be automatically triggered so you can select a path from a file or folder.

    There is also a hotkey to make things even faster.

    Make sure to give the feature time to process because e.g. if you hold keyboard keys way too long then the feature may not work as expected.

    What’s new
    Up to 2 custom categories (keyword recpref) Downloads category Keyword for each category Hotkey for each category Multiple files in Add to Favorites file action Changed Auto-path to Default Folder (keyworod df) Changed Just Now category to Now Added Help (keyword rechelp) Update to Alfred 2.3 features Several internal improvements  
    Download
    Version 4.2 Release date: 19 Jun 2016 Requires Alfred 3 Download  
  6. Thanks
    juliosecco got a reaction from CincyTriGuy in List and change sound output device?   
    Hi,
    I'm using audioswitch
     
    http://www.packal.org/search/site/audioswitch
  7. Like
    juliosecco got a reaction from Empyreal in Alfred snippets with trailing space or tab.   
    OK,
    please forgive me,
    but you know, I'm italian,
    and some kind of a respectful chatting is in my DNA,
     
    I'll shut up now  
  8. Like
    juliosecco got a reaction from Empyreal in Alfred snippets with trailing space or tab.   
    well, at least a little sign of  appreciation...
     
    In have seen Vero and Andrew answering you like two little Gandhi...
     
    please, try to be 'amazing' a little you too, just some little 'thanks' or 'regards' or 'cheers' or 'hi' or 'thanks' while you are posting your questions would be appreciated ( from me at least, but maybe I'm  too much sentimental )
     
        Giulio
  9. Like
    juliosecco reacted to deanishe in [PYTHON FIX] How to fix Python workflows hanging Alfred on Sierra   
    There is a bug in my (unofficial) Alfred-Workflow library that causes very many workflows using it to hang quite dramatically on Sierra.
     
    If you are affected (i.e. you see Alfred's CPU usage spike to 100%), Activity Monitor will show two Python processes like this (choose View > All Processes, Hierarchically), with the bottom one at ~99% CPU (this screenshot is actually of a non-misbehaving workflow):
     

     
    Download and run this workflow, which will update any old versions of Alfred-Workflow in your installed workflows.
     
    That should get your workflows working again until the workflow developers can push official fixes.
     
  10. Like
    juliosecco got a reaction from vitor in send-url workflow replacement?   
    works just fine...
     
    added activate to bring Safari in front, and it's exactly what I needed...
     
    thank you so much Vitor!
     
         Giulio
     
     
  11. Like
    juliosecco reacted to vitor in send-url workflow replacement?   
    Easy enough. Connect a Keyword to a Run Script (/usr/bin/osascript (AS)) with

    tell application "Google Chrome" to set theUrl to URL of active tab of front window tell application "Safari" to open location theUrl
  12. Like
    juliosecco got a reaction from deanishe in translate a word   
    I am very happy using  Glosbe translation workflow
     
    http://www.packal.org/workflow/glosbe-translation
     
    out of the box, it is ready for english/german translation
     
    ende word  - will translate from english to german
    deen word - will translate from german to english
     
    but it was very easy to customize the workflow to add new languages, so now I have also
     
    enit word - english to italian
    iten word - italian to english
     
    and more...
     
    hope it helps,
     
         Giulio
     
  13. Like
    juliosecco got a reaction from Bryan in translate a word   
    I am very happy using  Glosbe translation workflow
     
    http://www.packal.org/workflow/glosbe-translation
     
    out of the box, it is ready for english/german translation
     
    ende word  - will translate from english to german
    deen word - will translate from german to english
     
    but it was very easy to customize the workflow to add new languages, so now I have also
     
    enit word - english to italian
    iten word - italian to english
     
    and more...
     
    hope it helps,
     
         Giulio
     
  14. Like
    juliosecco got a reaction from nikivi in Is there an URL Scheme to go from Alfred Contacts Notes to Contacts profile?   
    Yes,
    somewhere on the help page
     
    https://www.alfredapp.com/help/features/contacts/
     
         Giulio
  15. Like
    juliosecco got a reaction from nikivi in Is there an URL Scheme to go from Alfred Contacts Notes to Contacts profile?   
    could simply Cmd-o be useful?
  16. Like
    juliosecco got a reaction from jlmendezbonini in Disable cmd+option+/ shortcut   
    Hi,
     
    in Alfred preferences go to File System -> Navigation
     

     
  17. Like
    juliosecco got a reaction from robstarbuck in Splitting a query into two variables   
    Solved    (well, it seems to...)
     
    here you have the workflow:
     

     
    since a way to set multiple variables seems to be the 'JSON Config' object, I have simply setup a script that outputs a 'JSON config' object, after handling the input and splitting the query as desired...
     
    so my working workflow now has;
     
    1) a keyword object for the input, so you launch it calling on alfred something like prova2 idproj^^projectName;
    2) a script tha handles {query}, splits it with ^^ delimiter and then outputs the JSON to set the variables:
     
    sorry, it is php at the moment, it is the language I find more quick along with javascript, here the code:
     
    <?php $query = $argv[1]; $vars=explode('^^',$query); echo '{   "alfredworkflow" : {     "arg" : "{query}",     "config" : {     },     "variables" : {       "idp": "'.$vars[0].'",       "name": "'.$vars[1].'"     }   } }' ?>   the code simply sets $query to the input, then puts the splitted values on an array $vars then echo ( outputs ) the JSON setting the variables   3) the large type shows the variables, outputting {var:idp}-{var:name}   I'm sure it can be easily rearranged in phyton       obviously it should be refined, for example to correctly escape single quotes on project name, or other things that doesn't come in mind at this hour, but it works...   now the question is: am I doing something that works for casuality, or is it a good and stable approach?   regards,        Giulio
  18. Like
    juliosecco got a reaction from nikivi in have order of websites opening with low delay   
    It's something that is arriving.
     
    is already in Alfred 3.1 pre-release.
     
    from the change log:
     
    Update "Delay" workflow utility to accept fractional seconds e.g. 0.5
  19. Like
    juliosecco 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)
  20. Like
    juliosecco reacted to deanishe in Avoid result actioning   
    EDIT: For anyone reading this post, it's wrong! This is what Alfred-Workflow does, not Alfred. You must set valid=false to make a result item unactionable!
     

    I think that the incorrect assumption is that an empty arg is equivalent to no arg. It's not.

    If you do not specify arg in your JSON (or XML), then you have an unactionable result. If you set arg to an empty string, then you just set arg to an empty string… The item is actionable, and Alfred will dutifully pass along the empty string to the next action.

    The same goes for autocomplete (if it's an empty string, TABbing deletes the query back to the keyword).
     

    Setting valid to false should do the trick, but as noted, ensuring arg is not set at all (as opposed to set to an empty string) gives you an unactionable result.
     
    So, if any authors of Go libraries for Alfred are reading this: Yup, you've done the JSON wrong, and you'll have to rewrite using pointers to strings
  21. Like
    juliosecco reacted to Andrew in decimal point for delay object duration   
    I'll update the delay object to accept double values for the next release
  22. Like
    juliosecco got a reaction from deanishe in [HOW TO] Workflow/environment variables   
    Hi,
    I would like to share a thing I just discovered about environment variables and php:
     
    today I have changed my php.ini.default in php.ini to test a workflow with a 'developer' php warning level, and I was not more able to read environment variables using $_ENV['name'].
    I have discovered that in the php.ini there was a directive variables_order, its comment is:
     
    " This directive determines which super global arrays are registered when PHP starts up ... There is a performance penalty paid for the registration of these arrays and because ENV is not as commonly used as the others, ENV is not recommended on productions servers. Yo can still get access to the environment variables through getenv() should you need to."
     
    it was set to "GPCS" where the letters mean GET, POST, COOKIE, ENV and SERVER, and in its default value the E for ENV was missing, for that the $_ENV was not working anymore.
     
    Setting it to  "GPCSE" made everything work again, but what I have learned is that using $_ENV and getenv() is not equivalent, being the latter better to be sure to correctly read the variable with every php.ini setting, so from now I will always use getenv().
     
    hope this helps,
     
        Giulio
  23. Like
    juliosecco reacted to ramiro.araujo in Transmit 4 Favorites Workflow, FAST   
    Transmit 4 Workflow for Alfred app
    Workflow for searching and opening Favorites in Transmit 4 App. It's really fast, because it reads the SQLite Database or XML datasource in latests releases of Transmit 4.
    There are already at least 2 Transmit workflows, but one is incompatible with latests Transmit 4 and the other, although very good, uses AppleScript to do the searching, and thus you need to wait for Transmit to open to get feedback. This is particulary slow on non SSD machines.
     
    Usage
    Type the keyword (default ftp) and start typing the name of the favorite to search; dead simple.

     
    Installation
    For OS X 10.9 Mavericks, Download the alfred-transmit.alfredworkflow and import to Alfred 2.
    For Previous OS X Versions, Download the alfred-transmit.alfredworkflow and import to Alfred 2.
     
    Source Code
    Clone or Fork the Workflow: https://github.com/ramiroaraujo/alfred-transmit-workflow
     
    Changelog
    2013-12-16 - Released 2014-01-02 - Added support for previous OS versions, using System Ruby 1.8, tested up to Lion 2014-01-03 - Search in both Favorite name and host 2014-01-20 - Added support for Favorites.xml 2014-01-30 - Rebuilt XML search to use different Ruby xml parser Note: I updated the original description to match the project readme file
  24. Like
    juliosecco reacted to deanishe in Multilingual translation dictionary with Glosbe.com   
    Translate between hundreds of languages with Glosbe.com.
     

    By default, the workflow is set up to translate between German and English:
    .ende English query — show German translations of English query. .deen German query — show English translations of German query. ENTER — copy selected translation to the clipboard. CMD+ENTER — open translation in browser. glosbehelp — open the included help file in your browser. glosbelang [query] — view and search supported languages. To use other language pairs, you will have to edit the workflow, either changing the included English <-> German Script Filters or adding your own using them as a template.  
    For more information and to download the workflow, see the Packal page or grab it from GitHub.
  25. Like
    juliosecco reacted to Sampayo in Switch Between audio input and output   
    Audio Switch
    ==================================================================================
     
    Switch between your input sources and output devices.
     
    To install just download (or my github) and doble click the .alfredworkflow file.*
     
    To change your input source type input (it could take a little bit to load your sources), then select the one you desire
     

     
    The same for the output device, just type output then select your choice
     

     
    Since I don't have any audio device or source connected to my laptop only 1 (the default) device and source are shown.
×
×
  • Create New...