Jump to content

Cedric

Member
  • Posts

    42
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Thanks
    Cedric reacted to vitor in send csv filter to list filter within the workflow   
    You can’t send multiple arguments with a List Filter (you can with a Script Filter), but you can do something like "git command","Long explanation","Long explanation|git command". Note the pipe character in the argument, you can use that to split.
  2. Like
    Cedric got a reaction from deanishe in SmartFolders: Browse and search the contents of your Saved Searches   
    Hey,
     
    Just wanted to say that it works perfectly for me.
    Thanks so much for the workflow and its beautiful documentation.
     
    Best,
     
    OSX 10.11.5 El Capitan
    Macbook Air mid-2011
    Alfred 3
  3. Like
    Cedric got a reaction from deanishe in Help with Alfred + Automator/AppleScript   
    I have completely rewritten my workflow to make it work even if the project name contains one or more space.
    The code doesn't care, and simply checks that a section number is correctly entered.
    I did as you said as well, and got the .sh script on a dedicated file, using /bin myscript.sh {query} to set the positional parameters.
     
    This workflow now works exactly as intended, thank you for your help!
    #!/bin/bash #code under MIT licence, modified from Stack Overflow, Unix.com and Ask Ubuntu answers, from the users below: #bashist http://stackoverflow.com/a/6968547 #Ignacio Vazquez-Abrams http://stackoverflow.com/a/2210386 #robotronic http://www.unix.com/shell-programming-and-scripting/42417-what-does-mean-double-pipe.html #geirha http://askubuntu.com/a/29596 #the positional parameters are set from Alfred's script filter #test if the last parameter is a valid integer. if [[ ${@: -1} =~ ^[0-9]+$ ]]; then #run the automator workflow. ${@:1:($#-1)} = All parameters but the last; {@: -1} = last parameter automator -D project_name="${@:1:($#-1)}" -D section_number="${@: -1}" folder_cleanup.workflow #If the last parameter was not a valid integer, send a notification else echo 'Incorrect section number? Try again' fi
  4. Like
    Cedric reacted to ramiro.araujo in ImageOptim Workflow   
    ImageOptim Workflow for Alfred app
    This is a wrapper Alfred workflow around the great ImageOptim-CLI library from Jamie Mason. Mason's library uses three image optimization applications to automate optimization of JPEGs and PNGs. It uses the open source ImageAlpha and ImageOptim apps, and the JPEGmini app, which is not free, but highly recommended. Together they shrink images like a beast.
    My own addition to this image processing is that if JPEGmini is unavailable, it uses ImageMagik's mogrify to compress JPEGs to quality 75, if they're actually higher than 75. To do this, I'm also bundling ImageMagik'smogrify and identify. A quality of 75 is usually pretty safe and it still has a way smaller size and usual JPEGs saved from Photoshop without optimization. That being said, JPEGmini does way better job and it's recommended.
     
    Requirements
    ImageOptim, installed in /Applications folder. ImageAlpha, installed in /Applications folder. JPEGmini, optional but recommended, installed in /Applications folder. If using JPEGmini, you need to add Alfred 2 to the allowed apps in the accesibility list. Go to Preferences, Security and Privacy, Privacy tab, click the lock to allow changes, and drag the Alfred 2 app into the list. Usage
     
    1. find or select one or more images or folders, show the file actions in Alfred, and select "Optimize Images". Note that any Alfred's way of selecting files work, such us:
    select one or multiple files/folder in finder and press ⌘ alt \ browsing or finding files in Alfred, and triggering actions for the file saving files in Alfred's file buffer, and then ⌘ → to action buffered files.
     
    2. You'll see a notification indicating the number of files to process. The work is done partially with AppleScript, so even if it's happening in the background, the apps are actually laoded and you can focus on them to check the status. Depending on the number and size of images, it could take a while.

     
    3. When the optimization is completed, you'll see another notification, indicating the original Kilobytes, the current Kilobytes, total savings and savings percent.

     
    Caveats
    You shouldn't run optimizations in parallel. Tecnically you could if the batch already jumped to the next app (from JPEGmini to ImageOptim for example), but it's looking for trouble. I'll consider adding a check in the future to prevent parallel process from happening, but I'm affraid this could add other complications, as in how to clear the processing flag if optimization process is interrumpted earlier.
     
    Installation
    For OS X 10.9 Mavericks, Download the alfred-image-optim-workflow.alfredworkflow and import to Alfred 2.
    For Previous OS X Versions, Download the alfred-image-optim-workflow.alfredworkflow and import to Alfred 2.
     
    Source Code
    Clone or Fork the Workflow: https://github.com/ramiroaraujo/alfred-image-optim-workflow
     
    Changelog
    2014-01-06 - Released 2014-01-23 - Added folder support, and correctly counting number of files inside folders
  5. Like
    Cedric reacted to dfay in [Request] Academic databases search workflow   
    How would this work?  Would you want the top hit for the search term(s) from each database?  Or multiple results from each? 
  6. Like
    Cedric reacted to dansherman in YouTube to VLC   
    Keyword: y2v
     
    This basic workflow sends the URL of the open tab of the topmost window of Chrome or Safari to VLC. 
    It doesn't do any checking to see if it actually a YouTube link, or adjust the desired resolution.
    It does try to resize the window to the bottom right corner of the screen, but sometimes the video will resize after loading on its own.
     
    http://is.gd/8kE3an
     
    Edit: Hosted download from my dropbox.
  7. Like
    Cedric reacted to ctwise in PLEASE VOTE: Your favourite workflows   
    Colors - Tyler Eich - http://www.alfredforum.com/topic/805-colors—a-css-color-conversion-workflow
  8. Like
    Cedric reacted to rice.shawn in PLEASE VOTE: Your favourite workflows   
    Show/Hide Hidden Files (http://www.alfredforum.com/topic/315-hidden-files-toggle/) from MorseCode
  9. Like
    Cedric reacted to Benzi in Comic strip viewer workflow   
    Added. Just try redownloading the workflow from the original download link and see if it works.
  10. Like
    Cedric reacted to Benzi in Comic strip viewer workflow   
    An experimental workflow in Python. Displays a list of comics that you can read straight off of Alfred.

    Download: from here  (always the latest version)
    Developer side note: The experimental part comes in the form of - it is very easy to extend this workflow if you know a little bit of Python / intermediate programming skills and have a solid RSS feed of a comic you like. Add the code for the new comic in the plugins folder, and as long as it follows the method signature the sample code provided has, you have a new feedback item and comic to read.
    Source Code Repo: GitHub
     
    Version History
    v0.1 - Initial version
    v0.2 - Added search support for the list of comics. So typing "comics dilb" will just list Dilbert strip option. Searches are performed against the title and subtitle of each strip. Added a couple more comics to the list based on requests, and two courtesy Jefferson).
     
     
    Have fun.
  11. Like
    Cedric reacted to Tyler Eich in Colors—convert color formats & access the OS X color panel   
    Colors v2.0.0
     
    Get it from Packal (Recommended)
     
    Quick Summary:
    This workflow can process and convert all CSS color formats and several Objective-C formats, namely NSColor (calibrated and device) and UIColor. It also provides an interface to the OS X color panel for easier color manipulations.
     
    It's written in native code (i.e. it's really fast).
     
    Quick Preview:

    You can find a full description on Packal.
     
    Direct download • source code on Github
  12. Like
    Cedric reacted to Miko in Trello Workflow 1.6.1 [Updated 16/07/18]   
    Trello Workflow for Alfred App v.1.6.1
    Create cards in Trello using Alfred App https://www.alfredapp.com/
    Download Trello WorkFlow 1.6.1
    Install
    Double click on the "Trello Workflow for Alfred v.1.6.1" workflow that you have just downloaded.
    More info: https://www.alfredapp.com/help/workflows/
    Note: if you have version 1.5 installed, remove it before installing the new version.
    Setup
    Generate your Trello Developer API Key
    Use the keyword "get trello key" to generate your Trello Developer API Key.
    More information: https://developers.trello.com/docs/api-introduction.
    Note: Make sure to be logged in Trello in your default browser before generating your API Key.

    Copy your API Key
    Authorize Trello Workflow
    Use the keyword "get trello token" plus your "API Key" to authorize the Trello Workflow to use your Trello account
    Example: get trello token 00000000000000000000
    More information: https://developers.trello.com/docs/api-introduction

    Allow Trello Workflow to use your account

    Copy your Token
    Your Trello board id
    Choose the Trello board that you wish to use with Trello Workflow and copy the board id
    You can get the board id by simply going to your board and add .json at the end of the URL.
    Example: Go to the Trello developmemt Roadmap Board https://trello.com/b/nC8QJJoZ/trello-development-roadmap. To view the board id add .json at the end of the URL https://trello.com/b/nC8QJJoZ/trello-development-roadmap.json. You should now see the full JSON
    The board id in the example is: 4d5ea62fd76aa1136000000c
    Open the Trello Workflow for Alfred in Alfred app. Use the Keyword Alfred to Show Alfred Preferences. Navigate to Workflows and select Trello Workflow for Alfred v1.6 from the side column.

    Double click on the /bin/bash script and enter your API Key, Your Token and your board id here:
    Make sure that each preference in the bash file is within single quotes:
    Click Save

    Usage
    General usage trello {field} separate fields using ;
    You can choose to have spaces or not between fields. For example {field1}; {field2} and {field1};{field2} will work.
    Available fields: {Card Title}; {Card Description}; {Labels}; {Due Date}; {List Name}; {Card Position} 
    Basic Usage
    Card Title
    trello make dinner reservation will create a card on your board on the first list with the title "make dinner reservation"


    Card Description
    trello make dinner reservation; table for 10 people at around 7:30pm will create a card on your board on the first list with the title "make dinner reservation" and description "table for 10 people at around 7:30pm"


    Labels
    trello make dinner reservation; table for 10 people at around 7:30pm; blue will create a card on your board on the first list with the title "make dinner reservation" and description "table for 10 people at around 7:30pm" with a "blue" label
    Available Labels
    all (will add green, yellow, orange, red, purple and blue) green yellow orange red purple blue You can add more than one label by comma separating them.
    trello make dinner reservation; table for 10 people at around 7:30pm; blue,red,yellow Please note: Make sure not to have spaces between comma separated labels.
    Custom labels are not supported. If you find a way let me know



    Due Date
    trello make dinner reservation; table for 10 people at around 7:30pm; blue; 04/26/2018 will create a card on your board on the first list with the title "make dinner reservation" and description "table for 10 people at around 7:30pm" with a "blue" label. The due date will be set as 04/26/2018


    List Name
    trello make dinner reservation; table for 10 people at around 7:30pm; blue; 04/26/2018; Today will create a card on your board on the list Today with the title "make dinner reservation" and description "table for 10 people at around 7:30pm" with a "blue" label. The due date will be set as 04/26/2018.
    Please note: List name are case sensitive today will not work if your list is named Today.
    The example will only work if you have a list named Today, otherwise the card will be created on your first list.


    Card Position
    trello make dinner reservation; table for 10 people at around 7:30pm; blue; 04/26/2018; Today; top will create a card on your board on the list Today with the title "make dinner reservation" and description "table for 10 people at around 7:30pm" with a "blue" label. The due date will be set as 04/26/2018.
    Note: If you don't specify a card position, your new card will automatically be placed at the end of the list.
    Available options (case sensitive)
    top bottom
    bottom

    top

    Advanced Usage
    You can skip any of the available fields by simply adding ;  
    {Card Title}; {Card Description}; {Labels}; {Due Date}; {List Name}; {Card Position}
    For example if I wanted to post a card with Title, Label and a Due date i would use this syntax
    {Card Title}; ; {Labels}; {Due Date}
    trello Clean my car; ; red; 04/29/2018

    Or a card with title only but on a different list
    {Card Title}; ; ; ; {List Name}
    trello Clean my car; ; ; ; Upcoming

    Environment Variables by @gamell
    Given that some might want always to create the cards on the same list, or with the same label, or same due date, or same position by default, I added the ability to set those defaults via the environment variables trello.list_name, trello.label, trello.due and trello.position.
    One can conveniently add or edit those environment variables without programming knowledge through the Alfred Workflow editor, clicking on the [x] button on the top right (see screenshot below).
    Note: If you don't set the variable, the workflow will behave as it did before.


    FAQ
    Coming soon
    License
    MIT © Miko Magni
  13. Like
    Cedric reacted to shmuel in Say (text-to-speech) with option of voices.   
    Cedric,
     
    Sorry for the confusion. If you can't tell I'm pretty new to this. Anyway, I think I fixed. Could you download it again and try once more? This time don't wrap the phrase in quotes or double quotes. It should work without being quoted.
  14. Like
    Cedric reacted to shmuel in Say (text-to-speech) with option of voices.   
    OK Cedric,
     
    I've updated the workflow. It now works correctly with single quotes / apostrophes. It does not work with double quotes. In fact a double quote will still cause it to fail but I think that is preferable to the way it was perviously. Let me know if it works for you now.
  15. Like
    Cedric reacted to michelb in [Workflow]Shorten URL (support goo.gl/ bit.ly/ t.cn/ j.mp/ is.gd/ v.gd/)   
    Thank you.
     
    I just changed the API Key and the Login so I see my shortened URLs at bit.y
×
×
  • Create New...