Jump to content

paulw

Member
  • Posts

    158
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by paulw

  1. I’m not sure you should trust this to work. The option was removed because it was unreliable (i.e. it was removed because it did not work in the first place), so doing it via a terminal command is very unlikely to work either (if it did, Apple could simply have rerouted the Finder option to it), and is probably giving you nothing more than a false sense of security.

    Thanks for that info, Vitor. Interesting. Looks like keeping the volume encrypted with FileVault instead is the way to go, so emptying the trash normally is enough in that case.

  2. When you first start typing, it should tell you that there is no API key installed. Just press enter, and it will bring up an AppleScript dialog box that you can paste your API key into. After that, it's stored in the OS X Keychain, so you can either manipulate it there, or just delete it from there.

     

    Oh, ok. I think I must have still been using the non-API script. Works great, thank you!

  3. Here's a workflow that takes a twitter url from the clipboard and opens it in Tweetbot.

     

    If the url doesn't start with http(s)://twitter.com, the workflow doesn't go forward. So this won't work with short url's like t.co, is.gd, etc, but you could use an Alfred workflow that expands short urls to then open a resulting twitter link in Tweetbot.

     

    Suggestions welcome. Please bear in mind that I really don't know how to program, and just cobbled this together.

     

    Workflow is here:

     

    https://github.com/paulrudy/alfred-open-in-tweetbot

  4. This is a really well thought out and useful workflow. Thank you!

     

    I have a suggestion/request. Is there a way to set a view in nvAlt action by arrowing right from one of the filtered "ns" search results? Currently it seems the only way to open in nvAlt is to narrow the search results by typing until the one I want is the top result. I'd like to be able to select one of several filtered results, and even if it's not the top result, open it in nvAlt.

  5. Great!

     

    For those of us who like to keep our apps organized in folders, what about implementing a way to search for whether the app already exists in a subfolder in /Applications, and then moving the update to that same folder?

     

    Paul

  6. Big thanks to poritsky and paulw! Great workflow!

     

    But does autocomplete also work with German Umlauts like ü, ö, ä?

    I get results like fÃ1/4r instead of für.

     

    It looks like all that's required is to remove this line:

    $json = utf8_encode($json);
    

    It doesn't seem like removing it breaks anything.

     

    Here's the updated script filter:

    require_once('workflows.php');
    
    $wf = new Workflows();
    $orig = "{query}";
    
    $wf->result( 'ddgignoresuggest', $orig, 'Search DuckDuckGo for '.$orig, 'Search DuckDuckGo for '.$orig.' or search suggestions below', 'icon.png' );
    
    $json = $wf->request( "https://ac.duckduckgo.com/ac/?q=".urlencode($orig));
    $items = json_decode($json,true);
    $int = 1;
    foreach($items as $item):
    	foreach($item as $suggestion):
    		$wf->result( $int.'.'.time(), "$suggestion", "$suggestion", 'Search DuckDuckGo for '.$suggestion, 'icon.png'  );
    	endforeach;
    endforeach;
    
    echo $wf->toxml();
    
  7. Yep, that fixed it. Thanks, Shawn. I've been really looking forward to this workflow, as I'm kind of a workflow hoarder.

     

    Do you think there will be any way to scan non-Packal workflows and check for whether they are also hosted on Packal?

  8.  

    @Paulw: Can you help me out with where it is failing? Did you whitelist it with Gatekeeper (via the bundler dialogs)? Are you running Mavericks or Yosemite? Is it failing before opening? If you can, try to open the GUI via Alfred, and then — quickly — point a web browser to http://localhost:7893 and see if anything comes up. The temporary webserver will kill itself if it doesn't see any action within 30 seconds, hence the "quickly." Are there any errors in the workflow debug console?

     

    I continue to get "scptl is trying to allow an item to always run" dialogs even though I repeatedly authenticate. I'm not a programmer: what do these dialogs do? I'm assuming this is the whitelisting you're talking about. Running Mavericks. Fails before opening. It does work if I point my browser to the address you gave. Debugging, I get this error:

    [ERROR: alfred.workflow.action.script] Code 0: 134:141: syntax error: A identifier can’t go after this “"”. (-2740)
    36:87: execution error: System Events got an error: Can’t set process "Application Stub" to true. (-10006)
    [INFO: alfred.workflow.action.script] Processing output 'alfred.workflow.output.notification' with arg ''
    
  9. Thanks for this!

     

    I can't get the GUI to work.

     

    I believe the sending of information should be off by default, or at the very least make it a mandatory choice to use the workflow. This is mainly on principle, though, as I certainly trust your intentions on this.


    I’d also like an option to permanently deny Alfred Bundler — no means no. Currently, every action I try to do with this workflow calls it twice, just to install terminal-notifier, which it doesn’t need to do, since it is still being activated.

     

    I agree with these points.

×
×
  • Create New...