Jump to content

s95hc8

Member
  • Posts

    23
  • Joined

  • Last visited

Reputation Activity

  1. Like
    s95hc8 reacted to vitor in Prefer “with input as argv” For Running Scripts   
    When running a script from Alfred, be it a Run Script Action or Script Filter Input, always prefer with input as argv over with input as {query}.

    The former allows you to forego escaping the input so you can be confident whatever the user typed will be faithfully transmitted to the script. If you’re unsure how to pass your argument, see the placeholder text Alfred presents when switching languages: it teaches how to assign the input to a query variable. You do not have to do it specifically in that manner, acting on the input without assigning to a variable first works just as well.
  2. Like
    s95hc8 got a reaction from chrislemke in ChatFred: OpenAI's GPT-model workflow   
    Thanks so much.
    The troubleshooting is very useful. It is just difficult for non programmers to deal with any issues during installation of Xcode, home-brew and python as they appear if attempted through terminal without automatic package installers.

    Thank you very much for the clear answers and tips. It helped a lot!
  3. Like
    s95hc8 reacted to chrislemke in ChatFred: OpenAI's GPT-model workflow   
    Hey @s95hc8!
    Sorry that the troubleshooting section was not helpful. If you need any further help please let me know. 
     
    Here are the answers to your question:
    1) Unfortunately there is no way to speed up the workflow. It seems that OpenAI gives higher priority to their WebUI than to the API. I hope this will improve soon.
     
    2) If you want to change the size of the text you can change it in the workflow. Check the screenshot to see where to find it.
     
    3) There are multiple ways to archive this. By default, ChatFred pastes ChatGPT's response automatically to Alfred's clipboard history. You can also set the Paste response to frontmost app in the workflow's configuration so that ChatFred will not show the response in the dissipating window but will paste it to the frontmost app.
     
    4) I'm not really sure what are you talking about but the response from the OpenAI API is usually just plain text. 
     
    5) You actually don't have to wait for the response of ChatFred. Since it will automatically copy the response to Alfred's clipboard history you can continue working with Alfred and come back to ChatFred's response whenever needed. Just open the clipboard history and find the response.
     
    You may want to have a look at the documentation. It may be a bit long and confusing but maybe you find some help. 
     
    I hope this was somehow helpful. 

  4. Like
    s95hc8 reacted to chrislemke in ChatFred: OpenAI's GPT-model workflow   
    Cool! Let me know if you need any more help.
  5. Thanks
    s95hc8 reacted to chrislemke in ChatFred: OpenAI's GPT-model workflow   
    Hey @s95hc8!
    Did you have a look at the troubleshooting section? Otherwise, I would need a bit more information like the debugger printout to help you effectively. 
  6. Thanks
    s95hc8 reacted to Vero in How to add "SEARCH in FINDER" option to fallback searches?   
    @s95hc8 There's an even simpler way to search using Finder (Spotlight's Finder search); Go to Alfred's Advanced preferences, and have a look at the three options below the Action Modifier in the right column.
     
    Alt + Return should be set to "Search with Spotlight" by default, but you can use any of these modifiers, so that you can simply hit Alt + Return on your query to launch Finder with the relevant search.
     

     
    Cheers,
    Vero
  7. Thanks
    s95hc8 reacted to Jasondm007 in How to add "SEARCH in FINDER" option to fallback searches?   
    @s95hc8 Are you still looking for a way to run a Finder fallback search?
     
    I came across your post today when searching for some help with something else, and I thought you might find the following workflow helpful: 
     
    https://gofile.io/d/dqJ7fx
     
    It's a simplified version of a workflow that I use to run Finder searches. In the past, I used to rely on a hacky GUI based approach, but this one works a lot better. It uses the Spotlight service; so, assuming you haven't deleted it, you should be in good shape. If you're curious, it's the service that pops up when you highlight text and select Spotlight from the context menu. It also doesn't matter what the actual hotkey is for it (System Preferences > Keyboard > Shortcuts > Services > Searching > Spotlight).
     
    Here's the basic setup (fallback search trigger + run script action):
     

     
    And, here's the key AppleScript:
     
    use AppleScript version "2.4" use framework "Foundation" use framework "AppKit" use scripting additions on run argv set theQuery to argv as string set pb to current application's NSPasteboard's pasteboardWithUniqueName() pb's clearContents() pb's writeObjects:{theQuery} set theResult to current application's NSPerformService("SEARCH_WITH_SPOTLIGHT", pb) pb's types() set theArray to pb's readObjectsForClasses:{current application's NSString} options:(missing value) set theString to theArray's firstObject() as text end run # Adapted From: https://forum.latenightsw.com/t/nsperformservice-in-applescript/836  
    Cheers!
  8. Thanks
    s95hc8 reacted to vitor in How to add "SEARCH in FINDER" option to fallback searches?   
    Nice share @Jasondm007. Do you have the workflow published somewhere to receive contributions? The code can be shorter, some of the lines aren’t doing anything:
     
    use framework "Foundation" on run argv set theQuery to argv as string set pb to current application's NSPasteboard's pasteboardWithUniqueName() pb's clearContents() pb's writeObjects:{theQuery} set theResult to current application's NSPerformService("SEARCH_WITH_SPOTLIGHT", pb) end run  
  9. Like
    s95hc8 reacted to deanishe in Download Media — Download video and audio from web pages   
    This should be the previous, Alfred 3-compatible version.
  10. Like
    s95hc8 reacted to vitor in Download Media — Download video and audio from web pages   
    Welcome @mgris, and thank you for the kind words.
     
    Long story short, this will self fix if you wait a few days. If you want it fixed now (and why not), open a terminal and run:
    "${HOME}/Library/Application Support/Alfred 3/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update && exit After the command finishes (it should take under a minute), you may close the terminal widow and the issue should be fixed.
  11. Like
    s95hc8 reacted to Vero in Alfred does not find anything you haven't searched with Spotlight first   
    @s95hc8 Take a look at the troubleshooting steps on the Indexing page here:
    https://www.alfredapp.com/help/troubleshooting/indexing/
     
    If results aren't being returned from file searches, there's likely some corruption to your Mac's metadata index (even if Spotlight appears to return some results). Follow the steps to rebuild your Mac's index, and let it run until it's done, which can take up to an hour.
     
    [Edited to add: I notice that in a previous thread, you stated that you were using Onyx on a regular basis to manage your metadata index, so I would ensure that Onyx is not being run or used for a while, to ensure that this isn't having an unexpected impact on your index.]
     
    Once it's completed, type "reload" into Alfred to clear the application cache (which only affects apps, not general files, as the latter are not cached) and let us know how it goes.
     
    Cheers,
    Vero
×
×
  • Create New...