Jump to content

sr_navarre

Member
  • Posts

    68
  • Joined

  • Last visited

Everything posted by sr_navarre

  1. It seems to work just fine now. Thanks! It's awesome when a developer is so responsive.
  2. 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'
  3. 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.
  4. Thank you so much. I've wanted this functionality back ever since the old one stopped working, but I don't know how to code. It's easily my most-used workflow, and it just wasn't the same without the integration. Thank you!
  5. 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." 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!
  6. Apologies to everyone for going about this the wrong way. I’ll get back to this post sometime soon and try to address some of the issues that need addressing.
  7. Sorry, vitor. I really didn’t mean to be a pest. I’ll go back through the old posts and see if I can clarify anything. 

    1. vitor

      vitor

      No problem. No harm done. Let’s focus on having your issue fixed, but to do it the right way.

  8. 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.
  9. Thanks for all of your good tips. I will try asking Claudia again and I will incorporate the information you requested in a future post.
  10. 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.
  11. 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!
  12. Hey claui, This is fantastic. Thanks so much for tackling this. This stuff is obviously way over my head, but I think this will be a very useful workflow. Is there a way to make it work with subfolders? Thanks again for the work.
  13. 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?
  14. @xilopaint Thanks so much. I did not upgrade Alfred recently, so I'm not sure what the problem was, but the workflow at your link works perfectly.
  15. @vitor You're right, it's the network I'm on that's blocking Github. Oh, well. I'll try it when I get home. Thanks!
  16. @vitor Thanks, but when I click any of the Github links I get "Failed to open page."
  17. Does anyone have a working download link for this workflow?
  18. 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.
  19. 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 Hope that helps.
  20. 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
  21. 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.
  22. I use this workflow all the time, but since I updated to the new version of Alfred and High Sierra, it pulls up the workflow folder in Finder instead of searching Google. Is there any chance you could update the workflow? Thanks!
×
×
  • Create New...