GithubHelp home page GithubHelp logo

Comments (15)

sballin avatar sballin commented on July 29, 2024 1

So you have several files from the workflow, but you're missing the binary for some reason, and when Alfred doesn't find it in the folder where it's supposed to be, it looks in ~/Library/Caches/.... That's why the original error message you started this issue with shows that directory.

One of the options when first running an unsigned binary is "Move to Trash". Can you check if "search_notes" is anywhere in the trash? I verified that the binary is included in the workflow downloads on Packal and Github releases... If you cloned/downloaded the repo, the binary would not have been included, but you also wouldn't have been able to "allow" it to run either.

from alfred-search-notes-app.

sergeyzwezdin avatar sergeyzwezdin commented on July 29, 2024 1

Yeah, seems you're right. I might accidentally remove the bin file.
So, these steps helped me to make it working:

  1. Remove the workflow.
  2. Download & install it again.
  3. Right click on workflow, find it in Finder.
  4. Find search_notes bin file. Right click on it and select "Open" and confirm that it should be run.
  5. Approve the app in the system.
  6. Close everything.

And now it's working.

Thank you for your help. Much appreciated! πŸ‘

from alfred-search-notes-app.

sballin avatar sballin commented on July 29, 2024

It's working for me and others on Big Sur... Are you able to see the binary in the Finder and execute it? In the terminal you can try

cd /Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/6F8AAE28-930C-467C-A257-7A123A3DBE88/search_notes
./search_notes title blah

from alfred-search-notes-app.

sergeyzwezdin avatar sergeyzwezdin commented on July 29, 2024

No, there is no 6F8AAE28-930C-467C-A257-7A123A3DBE88 in Workflow Scropts.

from alfred-search-notes-app.

sballin avatar sballin commented on July 29, 2024

Can you try deleting the workflow from Alfred, restart your computer, then install the workflow again?

from alfred-search-notes-app.

sergeyzwezdin avatar sergeyzwezdin commented on July 29, 2024

I've removed the workflow, restarted OS, and installed the workflow again. The same result.

Logs:

/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D427525A-76FB-41FF-B309-AEC9247517D3: line 1: search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/75961C70-E065-44E9-8668-583B9ED9EA04: line 1: search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/C2694D8C-DFB9-4228-86EE-0D3387D0FBBE: line 1: search_notes/search_notes: No such file or directory

I also do not see anything in /Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/:

image

from alfred-search-notes-app.

sballin avatar sballin commented on July 29, 2024

That's strange...

  • What version of Alfred are you using?
  • Do you have the power pack?
  • Are you using Dropbox sync for the Alfred preferences folder?
  • Do you have any other workflows that are working? Can you find their Finder location?

from alfred-search-notes-app.

sergeyzwezdin avatar sergeyzwezdin commented on July 29, 2024
  1. 4.2.1 [1187]
  2. Yes
  3. No
  4. Yes, I do. They are located at /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows

from alfred-search-notes-app.

sballin avatar sballin commented on July 29, 2024

Can you try replacing the contents of the "n" script filter with this and see if it works?

wfd=$alfred_preferences/workflows/$alfred_workflow_uid
"$wfd/search_notes/search_notes" title "$@" 2>> "$wfd/error_log.txt"
if [[ $? != 0 ]]; then
    osascript "$wfd/handle_error.scpt"
fi

from alfred-search-notes-app.

sergeyzwezdin avatar sergeyzwezdin commented on July 29, 2024

No, it doesn't work. The same as before.

w/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D427525A-76FB-41FF-B309-AEC9247517D3: line 1: search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/75961C70-E065-44E9-8668-583B9ED9EA04: line 1: search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/C2694D8C-DFB9-4228-86EE-0D3387D0FBBE: line 1: search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/7427F7F6-D58A-4A07-B1F3-08AEDF3FC858: line 2: /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37/search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/E00A9C33-2F75-478A-9CDA-7827894530CB: line 2: /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37/search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/6270E1D5-E7EF-4998-8E7D-9CFC77514130: line 2: /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37/search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/017F804A-BB74-4377-8DC8-350EA5AFDC5D: line 2: /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37/search_notes/search_notes: No such file or directory
/Users/sergey/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D31758D9-4FFB-4708-80A0-C325BA66DEA3: line 2: /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37/search_notes/search_notes: No such file or directory

from alfred-search-notes-app.

sballin avatar sballin commented on July 29, 2024

Does the directory /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37 exist? What directory do you get taken to after right-clicking on the workflow and doing "Open in Finder"?

from alfred-search-notes-app.

sergeyzwezdin avatar sergeyzwezdin commented on July 29, 2024

Does the directory /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37 exist?

Yes

What directory do you get taken to after right-clicking on the workflow and doing "Open in Finder"?

/Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37

from alfred-search-notes-app.

sballin avatar sballin commented on July 29, 2024

And that has all the right files in it? If so, does searching work in the terminal?

cd /Users/sergey/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.E45AD698-9643-47FC-A365-0B75579A3C37/search_notes
./search_notes title blah

If that works, then to get it working in Alfred, I recommend going to System Preferences > Security & Privacy > Privacy and making sure that Alfred has

  • Checkmarks in the Automation category including for Finder, System Events, and Notes
  • Checkmark in the Accessibility category
  • Checkmark in the Full Disk Access category
  • Full disk access in the Files and Folders category

If you have verified all those and it's still not working, you could try some of these ideas: https://www.alfredapp.com/help/troubleshooting/preferences. I think creating a new user and trying it there might be the best one to try first.

from alfred-search-notes-app.

sergeyzwezdin avatar sergeyzwezdin commented on July 29, 2024

And that has all the right files in it? If so, does searching work in the terminal?

image

from alfred-search-notes-app.

sballin avatar sballin commented on July 29, 2024

If you have Go installed you can try doing make inside the search_notes folder, and if it works you'll have a self-signed binary and the workflow should run.

from alfred-search-notes-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.