Jump to content

ramiro.araujo

Member
  • Posts

    84
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by ramiro.araujo

  1. I know it's a dumb question, but did you by any chance restart after (if applies) installing path finder and/or setting it to the default file browser? I had this issue, come right to the forum to let it know, restarted, and everything is working fine ever since :S

     

    I'm on OSX 10.8.3, Alfred 2.0.2, Path Finder 6.1.4 (1527) and can't replicate what you're seeing.

     

    btw, I'm not from alfred's crew, just trying to help :D

  2. Thanks David, great workflow!!

    I took the liberty of modifying it a bit, to have an optional argument in the script filter, in order to be able to filter the results.

     

    Here is the code of the script filer, comments around my additions:

    require('workflows.php');
    $w = new Workflows( 'jdfwarrior.faves' );
    
    $list = $w->data().'/favorites.json';
    
    //-- Ramiro's filter --
    $filter = "{query}";
    //-- end Ramiro's filter --
    
    if ( file_exists( $list ) ):
    	$favs = $w->read( $list, true );
    	if ( count( $favs ) > 0 ):
    		foreach( $favs as $fav ):
                            //-- Ramiro's filter --
    			if ($filter && strpos(strtolower($fav),strtolower($filter)) === false) continue;
                            //-- end Ramiro's filter --
    			$w->result( $fav, $fav, basename( $fav ), $fav, 'fileicon:'.$fav, 'yes', '', 'file' );
    		endforeach;
    	else:
    		$w->result( 'na', 'na', 'No favorites', 'No favorites were found. Try adding some new favs', 'icon.png', 'no' );
    	endif;
    else:
    	$w->result( 'na', 'na', 'No favorites', 'No favorites were found. Try adding some new favs', 'icon.png', 'no' );
    endif;
    
    echo $w->toxml();
    

     

    Hope you like it!

     

    ps: would you consider uploading your Workflows to Github or similar facilitate contribution?

  3. Hi all!

    This is my first public workflow!

    It basically solves me a problem of selectively deleting files in the Downloads folder without emptying it completaly.

     

    Usage:

    1. type the keyword, wait for the list of files. The files come ordered by Date Added, just like the Downloads icon in the Dock.

    2. select the file to delete, type to filter files by name

    3. optionally shift select the file to delete all newer files up to selected one

     

    Everything you delete goes to the trash, so there's no much danger involved.

     

    Download:

    http://bit.ly/Z7IrNB

     

    Contribute:

    https://github.com/ramiroaraujo/AlfredWorkflows/

     

    Hope you like it!

    Ramiro

  4. I'm finishing a "delete downloads files" workflow, and I'm working hard on ordering the files the same way as you see them on the Dock's Downloads icon. I have the files correctly ordered, but Alfred is showing them in the following order (0 indexed): 2, 10, 0, 1, 3, 4, 5, 6... everything is perfectly order after the first glitch.

     

    Let me know if you need a demo or something

  5. I use Path Finder instead of Finder for file browsing, and it has an option to set itself as the default file browser for the OS, causing the Reveal in Finder command for almost all application to open Path Finder instead of Finder. This also works in Alfred v1, but sadly it doesn't en Alfred v2.

     

    Hope you can solve this soon! :(

     

    Thanks

    Ramiro

  6. I find that whenever a workflow has a hotkey associated, the selected file's path is copied to the clipboard. Is this by design? It would be great to keep the current clipboard text available. If this is necessary for Alfred's workflow implementation, then could be possible to internally save the current clipboard information and restore it after the workflow is finished?

    If I actually need the path in the clipboard, I could easily set an additional output to save it to the clipboard :)

     

    Hope it makes sense

     

    Cheers!

  7. ahah, ok. I'm a little lost here. I found that I cannot receive the string content 100% sure, since I need to parse it in, say, Ruby, and the backslash character might escape my last single quote, and thus break the syntax. It's like chicken and egg. How can I parse the string and escape the backslash character if it breaks the syntax of the parser? :D

     

    Btw, I'm into PHP, Ruby and Python, but not much sh, so there might be ways of receiving that string information and escaping it that I might not know.

    Thanks

×
×
  • Create New...