Dylzzz Posted September 6, 2022 Share Posted September 6, 2022 Hi @xilopaint, looks like you have a great workflow here. I am fairly new so I'm not sure whats possible. As per my first post: I would love to know if its possible to do text extraction from PDF's Link to comment
xilopaint Posted September 6, 2022 Author Share Posted September 6, 2022 1 hour ago, Dylzzz said: Hi @xilopaint, looks like you have a great workflow here. I am fairly new so I'm not sure whats possible. As per my first post: I would love to know if its possible to do text extraction from PDF's It’s something I can add in the near future, although text extraction can be unreliable for a number of reasons. Link to comment
Dylzzz Posted September 7, 2022 Share Posted September 7, 2022 Ah I see, I had a look at that link can see it becoming quite a tricky task and I think my expectations would be too much. It would essentially need to copy a date, invoice number and all the line items and their cost into a csv format for it to be worth the time to develop because otherwise, I will still need to copy and paste and manipulate the data which would take me just as long as probably manually entering the invoices. Thanks for your quick reply. Link to comment
Stephen_C Posted September 7, 2022 Share Posted September 7, 2022 Although a little off-topic, you might look at using Hazel for that. Stephen Link to comment
Dylzzz Posted September 12, 2022 Share Posted September 12, 2022 I just bought hazel too. I’ll look into this more with hazel and see if it’s what I need Link to comment
giovanni Posted September 12, 2022 Share Posted September 12, 2022 On 8/18/2022 at 7:14 PM, xilopaint said: Hey @giovanni, could you help us here? Sorry @xilopaint I was out. I just tried again both versions 4.1 and 4.2 and I am able to encrypt and decrypt PDF files on my M1 MacBook Pro. Let me know if you need me to test anything else. Link to comment
xilopaint Posted October 23, 2022 Author Share Posted October 23, 2022 On 9/12/2022 at 10:42 AM, giovanni said: Sorry @xilopaint I was out. I just tried again both versions 4.1 and 4.2 and I am able to encrypt and decrypt PDF files on my M1 MacBook Pro. Let me know if you need me to test anything else. Do you have Rosetta installed? Link to comment
xilopaint Posted October 23, 2022 Author Share Posted October 23, 2022 Hey @zeitlings and @TomBenz, now I have a M2 Mac. Could you guys help me with a test? Link to comment
TomBenz Posted October 24, 2022 Share Posted October 24, 2022 12 hours ago, xilopaint said: Hey @zeitlings and @TomBenz, now I have a M2 Mac. Could you guys help me with a test? sure @xilopaint I am on M1 max and Ventura 13.0 (released today). Link to comment
xilopaint Posted October 24, 2022 Author Share Posted October 24, 2022 1 hour ago, TomBenz said: sure @xilopaint I am on M1 max and Ventura 13.0 (released today). Please, install this build and post the output of the !diagnostic keyword. Link to comment
TomBenz Posted October 24, 2022 Share Posted October 24, 2022 41 minutes ago, xilopaint said: Please, install this build and post the output of the !diagnostic keyword. ### Workflow version 4.2 ### Alfred version 5.0.3 ### Python version 3.10.7 ### PyCryptodome version Not Installed ### Rosetta installation status Installed ### macOS version 13.0 ### Architecture arm64 Link to comment
xilopaint Posted October 24, 2022 Author Share Posted October 24, 2022 15 minutes ago, TomBenz said: ### Workflow version 4.2 ### Alfred version 5.0.3 ### Python version 3.10.7 ### PyCryptodome version Not Installed ### Rosetta installation status Installed ### macOS version 13.0 ### Architecture arm64 Please, try to decrypt this file using the password asdfzxcv and tell me if it works. You will be prompted to install PyCryptodome. You can accept it. Link to comment
TomBenz Posted October 24, 2022 Share Posted October 24, 2022 3 hours ago, xilopaint said: Please, try to decrypt this file using the password asdfzxcv and tell me if it works. You will be prompted to install PyCryptodome. You can accept it. Worked well and created encb [decrypted].pdf file successfully Link to comment
xilopaint Posted October 24, 2022 Author Share Posted October 24, 2022 (edited) 14 hours ago, TomBenz said: Worked well and created encb [decrypted].pdf file successfully Do you remember if you installed Rosetta after or before the last time we tested the workflow? Edited October 24, 2022 by xilopaint Link to comment
TomBenz Posted October 24, 2022 Share Posted October 24, 2022 2 hours ago, xilopaint said: Do you remember if you installed Rosetta after or before the last time we tested? Sorry, I don't remember any specific action to install Rosetta. Link to comment
Shahrukh Posted October 25, 2022 Share Posted October 25, 2022 is this workflow not compatible with macOS Ventura yet? Link to comment
xilopaint Posted October 25, 2022 Author Share Posted October 25, 2022 16 minutes ago, Shahrukh said: is this workflow not compatible with macOS Ventura yet? It works for me. If you're facing any issues, please post the output of Alfred Debugger. Link to comment
Shahrukh Posted October 25, 2022 Share Posted October 25, 2022 I was trying to merge two files. Workflow just didn't returned any results. here is the !diagnostic data. ### Workflow version 4.2 ### Alfred version 5.0.3 ### Python version 3.10.7 ### PyCryptodome version 3.15.0 ### macOS version 13.0 ### Architecture i386 I am also providing the screenshot of Progress command. Link to comment
xilopaint Posted October 25, 2022 Author Share Posted October 25, 2022 @Shahrukhyou should post the content of Alfred Debugger. Link to comment
Shahrukh Posted October 25, 2022 Share Posted October 25, 2022 [17:12:03.411] Logging Started... [17:12:14.560] Alfred PDF Tools[File Action] Processing complete [17:12:14.572] Alfred PDF Tools[File Action] Passing output '( "/Users/shahrukhkamal/Desktop/TRIPLEW DIGITAL SOLUTIONS PRIVATE LIMITED.pdf", "/Users/shahrukhkamal/Desktop/Path-Enterprises.pdf" )' to Arg and Vars [17:12:14.575] Alfred PDF Tools[Arg and Vars] Processing complete [17:12:14.578] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword [17:12:16.041] Alfred PDF Tools[Keyword] Processing complete [17:12:16.049] Alfred PDF Tools[Keyword] Passing output 'fs' to Run Script [17:12:16.397] ERROR: Alfred PDF Tools[Run Script] . 17:12:16 workflow.py:2278 DEBUG ---------- Alfred PDF Tools (4.2.0) ---------- 17:12:16 workflow.py:1681 DEBUG reading settings from /Users/shahrukhkamal/Library/Application Support/Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/settings.json 17:12:16 workflow.py:2679 INFO checking for update ... 17:12:16 background.py:214 DEBUG [__workflow_update_check] command cached: /Users/shahrukhkamal/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/__workflow_update_check.argcache 17:12:16 background.py:218 DEBUG [__workflow_update_check] passing job to background runner: ['/usr/bin/python3', '-m', 'workflow.background', '__workflow_update_check'] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 17:12:16 workflow.py:2298 ERROR Command '['/usr/bin/python3', '-m', 'workflow.background', '__workflow_update_check']' returned non-zero exit status 1. Traceback (most recent call last): File "/Users/shahrukhkamal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D6CC8F42-EEE0-4BF8-9F9B-726975D98C06/workflow/workflow.py", line 2289, in run self.check_update() File "/Users/shahrukhkamal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D6CC8F42-EEE0-4BF8-9F9B-726975D98C06/workflow/workflow.py", line 2681, in check_update run_in_background("__workflow_update_check", cmd) File "/Users/shahrukhkamal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D6CC8F42-EEE0-4BF8-9F9B-726975D98C06/workflow/background.py", line 219, in run_in_background retcode = subprocess.run(cmd, check=True).returncode File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'workflow.background', '__workflow_update_check']' returned non-zero exit status 1. 17:12:16 workflow.py:2301 INFO for assistance, see: https://github.com/xilopaint/alfred-pdf-tools 17:12:16 workflow.py:2322 DEBUG ---------- finished in 0.048s ---------- I hope that I am doing this right Link to comment
Shahrukh Posted October 25, 2022 Share Posted October 25, 2022 9 minutes ago, Shahrukh said: [17:12:03.411] Logging Started... [17:12:14.560] Alfred PDF Tools[File Action] Processing complete [17:12:14.572] Alfred PDF Tools[File Action] Passing output '( "/Users/shahrukhkamal/Desktop/TRIPLEW DIGITAL SOLUTIONS PRIVATE LIMITED.pdf", "/Users/shahrukhkamal/Desktop/Path-Enterprises.pdf" )' to Arg and Vars [17:12:14.575] Alfred PDF Tools[Arg and Vars] Processing complete [17:12:14.578] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword [17:12:16.041] Alfred PDF Tools[Keyword] Processing complete [17:12:16.049] Alfred PDF Tools[Keyword] Passing output 'fs' to Run Script [17:12:16.397] ERROR: Alfred PDF Tools[Run Script] . 17:12:16 workflow.py:2278 DEBUG ---------- Alfred PDF Tools (4.2.0) ---------- 17:12:16 workflow.py:1681 DEBUG reading settings from /Users/shahrukhkamal/Library/Application Support/Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/settings.json 17:12:16 workflow.py:2679 INFO checking for update ... 17:12:16 background.py:214 DEBUG [__workflow_update_check] command cached: /Users/shahrukhkamal/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/__workflow_update_check.argcache 17:12:16 background.py:218 DEBUG [__workflow_update_check] passing job to background runner: ['/usr/bin/python3', '-m', 'workflow.background', '__workflow_update_check'] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 17:12:16 workflow.py:2298 ERROR Command '['/usr/bin/python3', '-m', 'workflow.background', '__workflow_update_check']' returned non-zero exit status 1. Traceback (most recent call last): File "/Users/shahrukhkamal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D6CC8F42-EEE0-4BF8-9F9B-726975D98C06/workflow/workflow.py", line 2289, in run self.check_update() File "/Users/shahrukhkamal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D6CC8F42-EEE0-4BF8-9F9B-726975D98C06/workflow/workflow.py", line 2681, in check_update run_in_background("__workflow_update_check", cmd) File "/Users/shahrukhkamal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D6CC8F42-EEE0-4BF8-9F9B-726975D98C06/workflow/background.py", line 219, in run_in_background retcode = subprocess.run(cmd, check=True).returncode File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'workflow.background', '__workflow_update_check']' returned non-zero exit status 1. 17:12:16 workflow.py:2301 INFO for assistance, see: https://github.com/xilopaint/alfred-pdf-tools 17:12:16 workflow.py:2322 DEBUG ---------- finished in 0.048s ---------- I hope that I am doing this right It was all working fine before I updated to Ventura last night. Now any function of this workflow is not working Link to comment
xilopaint Posted October 25, 2022 Author Share Posted October 25, 2022 @ShahrukhIt seems you don’t have Developer Tools installed or it was deleted with macOS Ventura upgrade. Do you get any output for xcode-select -p in Terminal? Link to comment
Shahrukh Posted October 25, 2022 Share Posted October 25, 2022 3 minutes ago, xilopaint said: @ShahrukhIt seems you don’t have Developer Tools installed or it was deleted with macOS Ventura upgrade. Do you get any output for xcode-select -p in Terminal? this is what I get on running this command Link to comment
xilopaint Posted October 25, 2022 Author Share Posted October 25, 2022 (edited) 11 minutes ago, Shahrukh said: this is what I get on running this command Try to reinstall Command Line Tools. Run sudo rm -rf /Library/Developer/CommandLineTools and after that xcode-select --install . Edited October 25, 2022 by xilopaint Link to comment
Shahrukh Posted October 25, 2022 Share Posted October 25, 2022 17 minutes ago, xilopaint said: Try to reinstall Command Line Tools. Run sudo rm -rf /Library/Developer/CommandLineTools and after that xcode-select --install . Started working now. Thanks!! xilopaint 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now