How can I create a hotkey for the "Encrypt" file action? #30
Unanswered
Subsonic-Modal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm hoping to create a hotkey that will directly trigger the encryption file action so I can use other automation applications to trigger the workflow.
When I add a "Hotkey" trigger and connect it to the "Enter a password" input, nothing seems to happen. Accessing the file action through the universal file action hotkey works as expected.
What am I missing?
Thanks for your help on this!
Debugger Output
[09:52:16.890] Logging Started...
[09:52:19.833] Alfred PDF Tools[Hotkey] Processing complete
[09:52:19.838] Alfred PDF Tools[Hotkey] Passing output '' to Arg and Vars
[09:52:19.840] Alfred PDF Tools[Arg and Vars] Processing complete
[09:52:19.842] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword
[09:52:21.184] Alfred PDF Tools[Keyword] Processing complete
[09:52:21.191] Alfred PDF Tools[Keyword] Passing output 'test' to Run Script
[09:52:21.372] ERROR: Alfred PDF Tools[Run Script] .
09:52:21 workflow.py:2332 DEBUG ---------- Alfred PDF Tools (5.0.0) ----------
09:52:21 workflow.py:1692 DEBUG reading settings from /Users/x/Library/Application Support/Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/settings.json
09:52:21 workflow.py:2737 DEBUG update check not due
09:52:21 workflow.py:2352 ERROR [Errno 2] No such file or directory: ''
Traceback (most recent call last):
File "/Users/lwr/Sync/Alfred Preferences/Alfred.alfredpreferences/workflows/user.workflow.05CD536F-3A4C-4A2D-8822-582C966BEB42/workflow/workflow.py", line 2346, in run
func(self)
File "/Users/lwr/Sync/Alfred Preferences/Alfred.alfredpreferences/workflows/user.workflow.05CD536F-3A4C-4A2D-8822-582C966BEB42/alfred_pdf_tools.py", line 588, in main
encrypt(query, pdf_paths)
File "/Users/lwr/Sync/Alfred Preferences/Alfred.alfredpreferences/workflows/user.workflow.05CD536F-3A4C-4A2D-8822-582C966BEB42/alfred_pdf_tools.py", line 78, in wrapper
func(*args, **kwargs)
File "/Users/lwr/Sync/Alfred Preferences/Alfred.alfredpreferences/workflows/user.workflow.05CD536F-3A4C-4A2D-8822-582C966BEB42/alfred_pdf_tools.py", line 226, in encrypt
reader = PdfReader(pdf_path)
File "/Users/lwr/Sync/Alfred Preferences/Alfred.alfredpreferences/workflows/user.workflow.05CD536F-3A4C-4A2D-8822-582C966BEB42/pypdf/_reader.py", line 125, in init
with open(stream, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: ''
09:52:21 workflow.py:2355 INFO for assistance, see: https://github.com/xilopaint/alfred-pdf-tools
09:52:21 workflow.py:2376 DEBUG ---------- finished in 0.012s ----------
Diagnostic Info
Workflow version
5.0
Alfred version
5.5
Python version
3.9.6
PyCryptodome version
Not Installed
Rosetta installation status
Installed
macOS version
13.6.7
Architecture
arm64
Beta Was this translation helpful? Give feedback.
All reactions