Jump to content

sr_navarre

Member
  • Posts

    68
  • Joined

  • Last visited

Posts posted by sr_navarre

  1. Thank you for getting back to me. I'm pasting the results from the debugger below. The first is from running btd, the second is btsetfavorite.

     

    [21:51:52.387] Logging Started...

    [21:52:01.294] Bluetooth Controller[Script Filter] Queuing argument '(null)'

    [21:52:01.513] Bluetooth Controller[Script Filter] Script with argv '(null)' finished

    [21:52:01.516] ERROR: Bluetooth Controller[Script Filter] Code 1: Traceback (most recent call last):

      File "./return_device_json.py", line 41, in <module>

        device['address'], device_name) + "},")

    AttributeError: 'NoneType' object has no attribute 'lower'

    ___________________________________________________________________________________________________

    [21:52:40.137] Bluetooth Controller[Script Filter] Queuing argument '(null)'

    [21:52:40.320] Bluetooth Controller[Script Filter] Script with argv '(null)' finished

    [21:52:40.322] ERROR: Bluetooth Controller[Script Filter] Code 1: Traceback (most recent call last):

      File "./return_device_json.py", line 41, in <module>

        device['address'], device_name) + "},")

    AttributeError: 'NoneType' object has no attribute 'lower'

  2. Hi,

     

    This looks like a workflow that I'll get a lot of use out of. I'm having a bit of trouble with it, though. Specifically when I use btd + devicename, or try to configure btsetfavorite, it only gives me the option to search Google for "btd devicename" etc. 

     

    I tried following your instructions to install blueutil and python, so I don't think the problem is there. 

     

    I'm using all the latest stable versions of all software on an MBP, if that matters.

  3. Hi,

     

    This is probably my most used workflow, so thanks! Recently I've been having some trouble with it, though. Instead of presenting me with a list of search suggestions, I just get the top line "Search IMDB for {my query}" and the second line displays the last name I searched for when the workflow was still working normally. I'm attaching a picture to demonstrate what happens when I search for "the godfather."

     

    1566457277_ScreenShot2019-04-09at5_57_49PM.thumb.png.d1347eba9a4d49b0aa755de947cb6824.png

     

    I'm using the latest stable version of the Mac OS , and nothing has changed as far as I know. Do you have any ideas?

     

    Thanks!

  4. A while back, a user named Claui created a workflow for me that randomly selects a specified number of files from one folder and copies them into another. I would be so grateful if anyone could make this work with subfolders.

     

    That is, say I have a folder called Folder. It's got subfolders called 1, 2, and 3. Each of those has files called 1a, 1b, 2a, 2b, 3a, 3b, etc. This workflow, when pointed at "Folder" would ideally choose randomly from files in all of the subfolders, so it might choose 1a and 3b.

     

    Here is the GitHub link for Claui's version: https://github.com/claui/alfred-random_file_picker

     

    I know some of you will remember this request from before, and I apologize if it's annoying. It's just that this would make my workflow unbelievably more efficient, and I have no idea how to do it myself. 

     

    Thanks for taking the time.

  5. A while back, a user named Claui created this workflow for me. I absolutely appreciate her attempt, but it never quite did what I needed and now it doesn't seem to work at all. Could some kind soul who knows how to do this kind of thing take another stab at it, maybe using Claui's work as a jumping-off point? 

     

    Here's what I need to do.

     

    Say I have a folder with 1,534 files. Some are videos, some are pictures, some might be other formats. I want a workflow where I can activate it (either through a keyword or a file action) and have it ask me how many of each file type I want. 

     

    So, let's say I want 12 videos and 45 images. I pop these numbers into the workflow and it copies 12 random videos and 45 random images into another folder. Then, I can run the workflow again with totally different numbers and get a whole different set of files.

     

    A big caveat here is that this workflow must support subfolders. So the files it selects could come from the top-level folder or any one of however many subfolders there may be.

     

    Can anyone build this for me? I'll owe you something. I can't code, but if there's anything I can do in return,  I'm your guy.

     

    Thanks so much.

  6. A couple of months ago, user Claui created a workflow for me called Random File Picker. It randomly chooses a specified number of files from a specified folder and copies them somewhere else. 

     

    It does not, however, include files within subfolders of the specified folder. If anyone could edit it to add this functionality, I would be in your debt!

  7. I would like to create a workflow that will take a folder of, say, 1000 files and choose a certain number of them at random, which it will then copy into a second folder. Could someone point me in the right direction?

     

    To make things more complicated... what if I wanted to select two different numbers of two different file types? For example, I might want to point Alfred to a folder containing 3,000 files of all different types and have it randomly choose 10 videos and 100 pictures, which it would then copy to another folder.

     

    Is any of this possible?

  8. Does anyone who uses this workflow look at this topic? If so, did it stop working for you in the last few days? I reached out to the developer but he supposedly hasn't used this site in years. Can anyone take a crack at fixing it? I would, but I have no idea how to code.

  9. Thanks for all your work on this. Here's the debug info for v2.0.1; I attached the image I searched for this time.

     

    Starting debug for 'Google Similar Images'

    [2017-09-28 13:13:52][ERROR: action.script] uploading u'/Users/MYNAME/Pictures/Backgrounds/kgm58S7.jpg' to Google ...
    cmd=['/usr/bin/curl', '--include', '--silent', '--user-agent', 'alfred-similiar-image-search 0.1 ()', '--form', 'image_url=', '--form', 'filename=', '--form', 'h1=en', '--form', 'bih=179', '--form', 'biw=1600', '--form', 'encoded_image=@/Users/MYNAME/Pictures/Backgrounds/kgm58S7.jpg', 'https://www.google.com/searchbyimage/upload']
    [response] HTTP/2 302 
    [response] location: https://www.google.com/search?tbs=sbi:AMhZZiuf4HqV0Q8qcUIY7HIlG5icYpS2sk04vgdcuPnoutrZz0Ya2xHH-mU1Krau_1irKW5Z6wEiXLB9r_1hgxdBdWbMLN4cKDwEUIG4-Ic32omifoEcE8Kiznh46SszXdq-RhB0RNVYjWAFnEAnALR1hqpGD3koYlz8y9oIetKGIBNHQyL814ekwJTLvUEM748_1DGDcVC2qIu6V2NIvwcleg4OWLPfmQilnWHu6l3ul1hjqISh3r8M5wXpgqOO-QqsR23aTxJTSOqTREz5ySs4WUrL3rXexQ8Rdss7JrMIF-vpfSJjUkXEVK5BGo0Tqij3xhz9BQmgQCCCqD9EgWiqF4eeYwr9zS4Tg&h1=en&bih=179&biw=1600
    [response] cache-control: public, max-age=21600
    [response] date: Thu, 28 Sep 2017 17:13:58 GMT
    [response] expires: Thu, 28 Sep 2017 23:13:58 GMT
    [response] content-type: text/html; charset=UTF-8
    [response] x-content-type-options: nosniff
    [response] server: quimby_frontend
    [response] content-length: 627
    [response] x-xss-protection: 1; mode=block
    [response] x-frame-options: SAMEORIGIN
    [response] alt-svc: quic=":443"; ma=2592000; v="39,38,37,35"
    [response] 
    [response] <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
    [response] <TITLE>302 Moved</TITLE></HEAD><BODY>
    [response] <H1>302 Moved</H1>
    [response] The document has moved
    [response] <A HREF="https://www.google.com/search?tbs=sbi:AMhZZiuf4HqV0Q8qcUIY7HIlG5icYpS2sk04vgdcuPnoutrZz0Ya2xHH-mU1Krau_1irKW5Z6wEiXLB9r_1hgxdBdWbMLN4cKDwEUIG4-Ic32omifoEcE8Kiznh46SszXdq-RhB0RNVYjWAFnEAnALR1hqpGD3koYlz8y9oIetKGIBNHQyL814ekwJTLvUEM748_1DGDcVC2qIu6V2NIvwcleg4OWLPfmQilnWHu6l3ul1hjqISh3r8M5wXpgqOO-QqsR23aTxJTSOqTREz5ySs4WUrL3rXexQ8Rdss7JrMIF-vpfSJjUkXEVK5BGo0Tqij3xhz9BQmgQCCCqD9EgWiqF4eeYwr9zS4Tg&amp;h1=en&amp;bih=179&amp;biw=1600">here</A>.
    [response] </BODY></HTML>
    [response] 
    Traceback (most recent call last):
      File "url_for_image.py", line 95, in <module>
        sys.exit(main())
      File "url_for_image.py", line 90, in main
        raise ValueError("Couldn't understand server response")
    ValueError: Couldn't understand server response

     

    kgm58S7.thumb.jpg.56f33ff2783a0fdaf4415182434ddc5c.jpg

     

    Hope that helps.

  10. I've just tried again with v2.0, and I'm still getting the same response (opening the finder to the folder I mentioned above). This time I tried to search for the image I attached to this reply, and I got the following message in the debugger:

     

    [2017-09-28 11:23:24][ERROR: action.script] Traceback (most recent call last):
      File "url_for_image.py", line 85, in <module>
        sys.exit(main())
      File "url_for_image.py", line 80, in main
        raise ValueError("Couldn't understand server response")
    ValueError: Couldn't understand server response

     

     

    caramelo.thumb.jpg.5623aecbf9d9e9301cd1d5bde63676bb.jpg

  11. Here's what the debugger puts out when I run the workflow:

     

    [2017-09-28 08:42:44][ERROR: action.script] Traceback (most recent call last):
      File "url_for_image.py", line 85, in <module>
        sys.exit(main())
      File "url_for_image.py", line 80, in main
        raise ValueError("Couldn't understand server response")
    ValueError: Couldn't understand server response

     

     

    When I double-tap 'command' with an image selected in finder, and select 'Search For Similar Images' in the file action list, instead of searching Google the workflow opens '/Users/MY_NAME/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.4DEF597C-7E7E-4A83-B859-E1627D4C7939' in finder.

     

    Is there any other useful information I could provide? Thanks for looking at this.

×
×
  • Create New...