Jump to content

paulw

Member
  • Posts

    158
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by paulw

  1. Could you please try the new version and tell me, if the problem still exists?

     

    The new version does work with .zip files now. However, I had a couple of apps that were packaged as .dmg files inside .zip files, with the extension .dmg.zip. The workflow doesn't recognize those, even when I rename them just to have a .zip extension.

     

    As for the search, I can see how that would make sense, need to try and find an efficient way to do that. I'll try around and see if i find an elegant solution.

     

    That would be cool! Thanks!

  2. Ok, I debugged it under 2.2 (that's exciting, nice update). I don't get any options for cloud. Only the default search engine options. Debugging showed this:

    [ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last):
      File "filter_config.py", line 3, in <module>
        import alp
    ImportError: No module named alp
    
  3. I'm trying to add an Alfred hotkey shortcut for the save to Instapaper bookmarklet. Using your workflow as an example, I can't get it to run. I think it may have something to do with html encoding in the javascript.

     

    The bookmarklet is:

    javascript:function%20iprl5()%7Bvar%20d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;try%7Bif(!b)throw(0);d.title='(Saving...)%20'+d.title;z.setAttribute('src',l.protocol+'//www.instapaper.com/j/p2s8OpRKevt0?a=read-later&u='+encodeURIComponent(l.href)+'&t='+(new%20Date().getTime()));b.appendChild(z);%7Dcatch(e)%7Balert('Please%20wait%20until%20the%20page%20has%20loaded.');%7D%7Diprl5();void(0)

    And the osascript I'm trying to use for Alfred is:

    tell application "Safari" to do JavaScript "javascript:function iprl5(){var d=document,z=d.createElement('scr' 'ipt'),b=d.body,l=d.location;try{if(!b)throw(0);d.title='(Saving...)+'+d.title;z.setAttribute('src',l.protocol '//www.instapaper.com/j/p2s8OpRKevt0?a=read-later&u='+encodeURIComponent(l.href)+'&t='+(new Date().getTime()));b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}}iprl5();void(0)" in the current tab of the front window

    I decoded the html with an online app, then replaced spaces with "+" in the places I thought were required. I'm unfamiliar with this stuff, though.

     

    Any ideas on making this work?

×
×
  • Create New...