Jump to content

Weaselboy

Member
  • Content Count

    56
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Weaselboy


  1. Ever since updating to Sierra 10.12.4 when I use this extension it launches two Python processes in Activity Monitor that peg CPU usage at 99% and they just hang there. Eventually the MacBook gets hot and the fans race until I quit those two processes in Activity Monitor.


  2. How can I make Alfred 3 to use efficiently new wider window? I could only create wider margins.

     

    You mean make the whole search window wider? In the Appearance tab once you have selected your theme, put the mouse cursor exactly where the tip of the red arrow is in my screenshot, then hold down the mouse button and drag up and down and that will make the window wider or narrower.

     

    fHB39Vd.png


  3. Once you're editing a theme of your own (not one of the defaults), you'll see "Window width" in the subtext at the bottom as you hover over the very bottom or very top of your theme :)

     

    Thanks for this. I was having a tough time finding this also.


  4. tell application "Finder" to activate
    tell application "System Events"
        tell application process "Finder"
            tell menu bar 1
                click menu item "Hide Others" of menu of menu bar item "Finder"
                click menu item "Minimize All" of menu of menu bar item "Window"
            end tell
        end tell
    end tell
     

    I have this in a workflow and it works every time.

     

     


  5. Great to see you added tag support!!

     

    I tried installing, but I can’t seem to get tags to filter. From your notes on GitHub you mentioned using “#" to indicate a tag. This seems to do nothing for me. Could be user error?

     

    Is the Mac Pocket required? There was an upgrade today to the Mac app, and I am not sure if that broke something.

     

    It seems to work for me by just typing in the tag. That shows only bookmarks with that tag.


  6. Just updated to 299 and afterwards noticed all my custom web searches were gone and the Alfred theme was reset to default and most of Alfred prefs were reset back to default.

     

    I quit Alfred and restored a previous version of ~/Dropbox/Alfred/Alfred.alfredpreferences and still my custom web searches were gone.

     

    I noticed when I set prefs. back like I wanted them the settings did not stick.

     

    Based on a Alfred tech support page I found I did a permissions repair and restart and that seemed to allow settings to stick, but my custom searches were all still gone. All my custom workflows and snippets are still there and fine.

     

    Tried restoring ~/Dropbox/Alfred/Alfred.alfredpreferences again from backup and this time (after the permissions repair) all my custom web searches and old settings are back.

     

    To make a long story short, the fix was a permissions repair followed by a restore of ~/Dropbox/Alfred/Alfred.alfredpreferences.

     

    No idea why this happened. I did a permissions repair just for drill a few days ago and am not otherwise having any issues, so I don't think it is a sign of any impending problem on my end.

     

    I'm on a 2014 13" rMBP on 10.9.5.

     

    I'm all fixed up at this point, but thought I would bring this to your attention in case others have the issue.

     


  7. would love to have a workflow that can be easily used to run things like repair disk permissions, verify/repair disk, etc.. Can somebody smarter than me be able to pull this off?!

     

    https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/man8/diskutil.8.html

     

    Take a look at the man page for the diskutil Terminal command. I believe you could make workflows to do what you want using this command.

     

    For example "diskutil verifyDisk device" would verify the device you name.

     

    Hopefully this will get you started.


  8.  

    Unfortunately, Pocket's API documentation hasn't been touched since November 7, 2012.

    But I've changed the sorting once more.

     

    You should be able to update the workflow by typing in the following command:

    pocket workflow:update

     

    That did it. Now matches the web site sort perfectly.

     

    Thanks for the update.


  9.  

     

    Just check if your sorting matches the one you can see on Pocket's website: http://getpocket.com/

    Thanks!

     

    I have the web site set to sort by newest first, and just bringing up the workflow with no search entered sorts by those numbers, but that does not at all match the web site (either newest or oldest).  For example that #107 entry is about halfway down the web page when sorted by newest.

     

    e6odhKR.png


  10. The sorting problem should be fixed now. Can someone confirm this?

     

    I'm not sure what the sorting problem was. If you explain, I would be glad to check for you.

     

    I just updated to the new version and now see these numbers next to each entry that were not there with the previous version?

     

    s8BEw55.png


  11. When pressing command-c you are copying the item's argument which is passed to the pocket_launcher.py.

    The weird number is the item's ID.

     

    I'm not sure what you are asking? I just bring up the workflow then in this example type L O C which highlights the URL I want... then command-c to copy the link. That gets me the link with the numbers appended in the clipboard.

     

    (Sorry if I am being dense)

     

    q3Mnj26.png


  12. I have a tweak request Fabio.

     

    I often use your extension with Pocket to copy a URL for later posting in news forums. I have figured out I can copy by hitting command-c, but for some reason that appends a string of numbers after the link.

    http://support.apple.com/kb/HT1379 137984712

    Here is an example of an Apple support link and note the 137984712 appended when I copy the link. This happens with every URL I try.

     

    Is there a KB combo I am  missing to copy a link maybe?


  13. Hey Weaselboy, thanks for the debug info. That helped a lot!

    I've updated the workflow and improved the authentication process.

     

    Could you give it another try? And could you open your keychain and check if there is an entry 'com.fniephaus.pocket'.

     

    Thanks!

     

    That fixed it!   :)

     

    I deleted the Keychain entry and installed the updated workflow and it works perfectly. Nice work on this and thanks.


  14. Ed3KO9p.png

     

    Fabio-- I'm getting this error after installing your workflow and the first attempt at running. The debug info from Alfred is below. I just edited out my username. I have a valid Pocket account and can login to it with no problem in Safari. Any suggestions?

     

    Thanks

    Starting debug for 'Pocket for Alfred'
    
    [ERROR: alfred.workflow.input.scriptfilter] Code 1: 08:53:53 workflow.py:967 DEBUG    get_password : com.fniephaus.pocket:pocket_access_token
    08:53:53 workflow.py:967 DEBUG    get_password : com.fniephaus.pocket:pocket_access_token
    08:53:53 workflow.py:967 DEBUG    get_password : com.fniephaus.pocket:pocket_access_token
    08:53:53 connectionpool.py:635 INFO     Starting new HTTPS connection (1): getpocket.com
    08:53:53 connectionpool.py:344 DEBUG    "POST /v3/get HTTP/1.1" 401 16
    08:53:53 workflow.py:843 ERROR    Problem authenticating the user. A valid access token is required to access the requested API endpoint.
    Traceback (most recent call last):
      File "/Users/edit/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.9AFC12F4-2304-40BB-9DBC-427C3585C487/workflow/workflow.py", line 841, in run
        func(self)
      File "pocket_alfred.py", line 20, in main
        'pocket_list', data_func=get_list, max_age=1)
      File "/Users/edit/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.9AFC12F4-2304-40BB-9DBC-427C3585C487/workflow/workflow.py", line 602, in cached_data
        data = data_func()
      File "pocket_alfred.py", line 42, in get_list
        get = pocket_instance.get()
      File "/Users/edit/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.9AFC12F4-2304-40BB-9DBC-427C3585C487/pocket.py", line 57, in wrapped
        return self.make_request(url, payload)
      File "/Users/edit/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.9AFC12F4-2304-40BB-9DBC-427C3585C487/pocket.py", line 154, in make_request
        return cls._make_request(url, payload, headers)
      File "/Users/edit/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.9AFC12F4-2304-40BB-9DBC-427C3585C487/pocket.py", line 147, in _make_request
        '%s. %s' % (error_msg, extra_info)
    AuthException: Problem authenticating the user. A valid access token is required to access the requested API endpoint.
    
×
×
  • Create New...