Jump to content

privateName

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by privateName

  1. I have resolved the issue. For anyone who might encounter a similar problem in the future, you will need to instruct Alfred to reload the workflow. Unfortunately, this information is not documented anywhere; I discovered the method name by examining the python alfred-workflow library. Here is the snippet:

     

    ObjC.import("stdlib");
    
    function run(argv) {
    	let query = argv[0];
    	let app = Application("com.runningwithcrayons.Alfred");
    	let bundleid = $.getenv("alfred_workflow_bundleid");
    
    	app.setConfiguration('variable', {
        		toValue: query,
        		inWorkflow: bundleid,
        		exportable: false
    	});
    
    	app.reloadWorkflow(bundleid);
    }

     

  2. Not sure that author will respond since 8 years passed but it's worth a shot :)

     

    Could you please help me with the error? 

     

    [23:33:56.323] ERROR: Tmux[Script Filter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- alfred (LoadError)
    	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    	from feedback.rb:5:in `<main>'

     

    I'm not a ruby guy. Errors tells that cannot find the 'alfred' library but apparently it's part of Alfred package and it shouldn't be a problem.

     

    Thanks in advance.

  3. Hi Vitor.

     

    It seems like not working on latest Monterey 12.3.1. Getting the following error:

     

    [11:40:34.724] ERROR: Window Switcher[Script Filter] Code 1: /Users/privateName/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/8D2673B3-AA22-4E41-A8BE-863A4D2FE4B8: execution error: Error: Error: osascript is not allowed assistive access. (-25211)

     

    Alfred and osascript have the accessibility permissions. Have any ideas on how to fix?

     

    Thanks.

×
×
  • Create New...