Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to Reload Zotero Database? #67

Open
kzssc opened this issue Oct 21, 2021 · 1 comment
Open

Script to Reload Zotero Database? #67

kzssc opened this issue Oct 21, 2021 · 1 comment

Comments

@kzssc
Copy link

kzssc commented Oct 21, 2021

Thanks for this amazing workflow, I use it on a daily basis - no, more like hourly basis. Most grateful for this fantastic tool!

Assuming that "Reload Zotero Database" is triggered manually (for I have not had any success for entries be automatically updated in Zothero at all), is there any chance that I can know the script for this so that I can trigger this with automation? (e.g. ControlPlane)

Thanks again, and have a great day.

@martinmts
Copy link

martinmts commented Sep 14, 2023

I believe you may have the same problem as I do.
I don't know why, but I have to reload zotero database often for it to work.

I've just found a solution.
Right click the ZotHero workflow in the Alfred Preference window and click the Open in Finder option (see below).
image

It will take you to the workflow file. Get the zh.py file path.
image

For instance, mine is like:
~/Library/CloudStorage/Dropbox/[subfolder name]/Alfred.alfredpreferences/workflows/user.workflow.E606C03E-E73A-4A47-BF39-A109BCB8D3D1/zh.py
(I put the workflow files in Dropbox).

Now, you can run the command in Shell like this:
python ~/Library/CloudStorage/Dropbox/[subfolder name]/Alfred.alfredpreferences/workflows/user.workflow.E606C03E-E73A-4A47-BF39-A109BCB8D3D1/zh.py clear

I got this command as shown below:
image

Now, you can set the shell command to run periodically with which ever way you want.

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants