Jump to content

JJJJ

Member
  • Posts

    64
  • Joined

  • Last visited

Posts posted by JJJJ

  1. 9 hours ago, luciano said:

    A useful feature in Alfred is pressing the spacebar (which inserts an apostrophe) to find a file. Instead of typing text in Alfred, can I search for the file by selecting text and using a Text Action?

     

    There is already the action 'Use in Alfred' which nearly does what I want, but I cannot see a way of searching specifically for a file.

    You can put apostrophe(') prefix in "Show Alfred" hotkey trigger and it would go to file search automatically. It should look like this:
    image.thumb.png.a6d48da81e536ef6327a681b3556d5b4.png

  2. On 2/2/2024 at 3:04 PM, pseudometa said:

    @dfay

    Thank you!

     

    Regarding the first one, I think that occurs when there is an issue with the OpenAI API, either it times out or you hit the rate limit for your account or something like that. I added some error logging, you could try v1.0.4 and run the rephraser with the debugging log in Alfred open, then it should tell you what's going on.

     

    With the second one, I am not totally sure what you mean. There was an issue where it turns single quotes into double quotes that I have just fixed for 1.0.4 as well, in case that helps?

     

    https://github.com/chrisgrieser/alfred-writing-assistant/releases/download/1.0.4/alfred-writing-assistant.alfredworkflow

    Thanks for the very useful workflow!

     

    I could use the rephrase function in v1.0.3 but I got "ERROR: No response by OpenAI API." error in v.1.0.4.

     

    I just tried downloading and trying v1.0.3 and rephrasing works for me again.

  3. Hey @pseudometa, there used to be another inline google search workflow but it's not been working for a long time. So I was excited to find yours but it is not working for me. I get the error below in the debugger. could you please help me with the issue? thank you for the great workflow!

     

    [11:17:06.503] Hyper Seek[Script Filter] Queuing argument 'test'
    [11:17:07.730] Hyper Seek[Script Filter] Script with argv 'test' finished
    [11:17:07.737] ERROR: Hyper Seek[Script Filter] Code 1: Refreshing keyword cache…
    ./scripts/inline-results.js: execution error: Error: TypeError: undefined is not an object (evaluating 'workflowConfig.find(
                            (/** @type {{ variable: string; }} */ option) => option.variable === varName,
                        ).config') (-2700)

  4. 2 hours ago, Marlouis said:

    Dear Stephen_C, 

     

    thank tou very much for your kind response. I'm using universal actions for nearly everything in the Finder. Thanks to the link you posted I just discovered the Universal Action hot key. I'm just wondering if there would be any way to skip the hot key > Universal Action selection, during the process ? Such as : select a file in Finder > Alt+Cmd+K -> Open Universal Action "Move to..."

     

    Thanks, 

    Joseph 

    You can do it with a workflow. Just connect a hotkey to "Action in Alfred" and, set "Jump to" to "Move to". It should look something like below.

     

    image.jpeg.f22da902ef7bca743213f673514f09b1.jpeg

  5. On 1/24/2022 at 6:33 PM, Andrew said:

    The Alfred window has to hide to allow macOS to know which app the paste is intended for.

     

    If Alfred's window was "pinned" to remain on screen, macOS treats it as the focused responder, and therefore the target for a paste operation.

    What do you think about holding ⌥ to paste and keep the clipboard window open? There is no use for ⌥ in clipboard viewer now, and it can be Alfred's way for sequential paste if it pastes and selects the new item while keeping the window open.

  6. 20 hours ago, deanishe said:

     

    It's similar, but you don't have to (can't) explicitly pin/unpin the clipboard viewer. Alfred could also automatically select the next entry when you paste but don't close the clipboard viewer.

    Yes, then it could be even faster in that way because I can only press ⌥↩  and paste an item after an item since Alfred would paste and select the next result.

  7. Hello All,

     

    What I like about alfred clipboard history is I can paste any item quickly with cmd+1, cmd+2 etc.. However, sometimes I have to paste many items to a single window and I don't want to open clipboard viewer everytime. My feature suggestion is an option to pin the clipboard viewer to the screen. Then, I can turn that option on and I can use cmd+# to paste several items quickly without bothering opening the clipboard viewer each time. I would really like to hear opinions about this suggestion.

  8. 10 hours ago, deanishe said:

     

    First download and install the updated version of this workflow (I've added an External Trigger).

     

    Then open the Firefox workflow’s script directory (ffass > Open Scripts Directory) and use Script Editor to save this AppleScript in it (call it “Search Site” or similar):

     

    on run (argv)
    	set _url to first item of argv
    	tell application id "com.runningwithcrayons.Alfred" to run trigger "search-site" in workflow "net.deanishe.alfred.demo.universal-google" with argument _url
    end run

     

    Now you should have a new "Search Site" action available in the tab actions and bookmark/history search in the Firefox workflow. You can assign it a Hotkey by adding one to the workflow similar to the example ones.

    Thanks a lot, works exactly as you described!

  9. Hello,

     

    When I try to use move/copy to file action, I get the error below.

     

    It just started today. I installed the 4.5 Alfred beta and I thought beta caused the issue. But I installed the 4.3.4 version back and I still have the issue. I am on macOS 11.4 and I use the move to action regularly. Can you please help with what caused the issue and how to fix it?

     

    image.png.2caebde18d50ab21df83b5969aa8e8a4.png

     

    Many thanks in advance!

  10. 2 hours ago, deanishe said:

     

    You can assign the same keyword to multiple Script Filters and see results from both when you use the keyword. So you can use different workflows to provide results from different browsers.

     

    My Firefox Assistant workflow has a very fast Firefox bookmark and history search. However, it's rather high-maintenance and won't work if Firefox isn't running, so perhaps a poor choice.

    Thank you for the solution to use it for different browsers.

     

    I have tried your workflow first but it didn't work for me. We have discussed it on your topic and couldn't find a solution. I would like to try it again for Firefox history if you release an update.

     

     

  11. 38 minutes ago, Acidham said:

    yes I encountered the same and it seems that Firefox history is slowing it down. Once I disabled Firefox in settings history search is fast. 

     

    You can play around with sql_fire_limit which also speeds up history search but the fastest experience that you can get is by disabling Firefox from history search. 

     

    Yes it is fast when Firefox is disabled but how do I exclude it only from the history search? It seems like if I value it to False, then It doesn't search for bookmarks too. The main reason I use the workflow is to use it on Firefox. But I would like to know if I can use bm and bh for different browsers since bh is not really usable for FF.

  12. 2 hours ago, Acidham said:

    I seem that the workflow picks up python version 3.9 but it is expected to pick python version 3.7.3. I do not have version 3.9 installed on my computer therefore I cannot test. 

     

    Let's do the following: 

    1. open py3.sh in workflow directory

    2. change PREFER_LATEST to 0

    3. Delete directory ~/Library/Application Support/Alfred/Workflow Data/com.apple.alfred.workflow.chromium-hist

    4. exec workflow again

     

    I hope python 3.7.3 will be set as python3 version

    Thank you for your help and the workflow. It works very well now. BM search is very fast and seems reliable. But history search is pretty slow, it takes almost 10 sec to give some results. Is it expected? I think it uses python 3.8.2 this time as I understand from debugger output.

     

    [16:41:04.090] Logging Started...
    [16:41:35.225] Firefox&Chromium Bookmarks and History[Script Filter] Queuing argument 'test'
    [16:41:43.714] Firefox&Chromium Bookmarks and History[Script Filter] Script with argv 'test' finished
    [16:41:43.727] STDERR: Firefox&Chromium Bookmarks and History[Script Filter] PYTHON VERSION: 3.8.2 (default, Sep 24 2020, 19:37:08)
    [Clang 12.0.0 (clang-1200.0.32.21)]
    /Users/Ceyhun/Library/Application Support/Firefox/Profiles/xz1shlht.default-release/places.sqlite → found

                    select DISTINCT url, title, visit_count
                    FROM moz_places JOIN moz_historyvisits
                    WHERE title != '' order by last_visit_date DESC LIMIT 500;
    [16:41:43.732] Firefox&Chromium Bookmarks and History[Script Filter] {
        "items": [
            {
                "title": "Decentraleyes | Testing Utility",
                "subtitle": "(Visits: 61) https://decentraleyes.org/test/",
                "arg": "https://decentraleyes.org/test/",
                "quicklookurl": "https://decentraleyes.org/test/"
            },
            {
                "title": "LocalCDN",
                "subtitle": "(Visits: 5) https://www.localcdn.org/test/cspcheck",
                "arg": "https://www.localcdn.org/test/cspcheck",
                "quicklookurl": "https://www.localcdn.org/test/cspcheck"
            }
        ]
    }

  13. 42 minutes ago, Acidham said:

    FYI this is the new version supporting Brave next to other browsers: https://github.com/Acidham/chromium-hist-bookmarks

    Hello, Thank you for the workflow. It look very useful and supports many browsers. I would really like to use it for Firefox bookmarks and history but It doesn't work for me. Not only for Firefox but also for Chrome. I am on 10.15.7 Catalina and Alfred 4.2.1. You can find the debugger output below.

     

    [13:48:11.784] Chromium&Firefox Bookmarks and History[Script Filter] Queuing argument 'test'
    [13:48:11.960] Chromium&Firefox Bookmarks and History[Script Filter] Script with argv 'test' finished
    [13:48:11.965] ERROR: Chromium&Firefox Bookmarks and History[Script Filter] Code 1: Traceback (most recent call last):
      File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/chrom_bookmarks.py", line 12, in <module>
        from Alfred3 import Items as Items
      File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/Alfred3.py", line 7, in <module>
        from plistlib import readPlist, writePlist
    ImportError: cannot import name 'readPlist' from 'plistlib' (/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/plistlib.py)
    [13:48:19.497] Chromium&Firefox Bookmarks and History[Script Filter] Queuing argument 'test'
    [13:48:19.652] Chromium&Firefox Bookmarks and History[Script Filter] Script with argv 'test' finished
    [13:48:19.657] ERROR: Chromium&Firefox Bookmarks and History[Script Filter] Code 1: Traceback (most recent call last):
      File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/chrom_history.py", line 12, in <module>
        from Alfred3 import Items as Items
      File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/Alfred3.py", line 7, in <module>
        from plistlib import readPlist, writePlist
    ImportError: cannot import name 'readPlist' from 'plistlib' (/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/plistlib.py)

  14. Thank you for the detailed explanation. I just wanted to be sure if it works as expected or not. :)

     

    I gave full disk access to python as you said by drag and drop python into the full disk access window in Security&Privacy in System Preferences. I tried it for python3 for the first time but the error was about python 2.7 so tried it with 2.7 and then it worked. You can find the path of the file below.

     

    /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

×
×
  • Create New...