itsmevictor Posted October 26, 2022 Share Posted October 26, 2022 (edited) For some reason, I am unable to merge pdf documents although Alfred's debugger does not indicate any problem. Below is the output. Would you be able to help? Many thanks in advance. [9:49:31.225 PM] Logging Started... [9:49:33.863 PM] Alfred PDF Tools[File Action] Processing complete [9:49:33.870 PM] Alfred PDF Tools[File Action] Passing output '( "/Users/victorkreitmann/Downloads/23.pdf", "/Users/victorkreitmann/Downloads/22.pdf" )' to Arg and Vars [9:49:33.873 PM] Alfred PDF Tools[Arg and Vars] Processing complete [9:49:33.874 PM] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword Edited October 26, 2022 by itsmevictor Link to comment
xilopaint Posted October 26, 2022 Author Share Posted October 26, 2022 2 hours ago, itsmevictor said: For some reason, I am unable to merge pdf documents although Alfred's debugger does not indicate any problem. Below is the output. Would you be able to help? Many thanks in advance. [9:49:31.225 PM] Logging Started... [9:49:33.863 PM] Alfred PDF Tools[File Action] Processing complete [9:49:33.870 PM] Alfred PDF Tools[File Action] Passing output '( "/Users/victorkreitmann/Downloads/23.pdf", "/Users/victorkreitmann/Downloads/22.pdf" )' to Arg and Vars [9:49:33.873 PM] Alfred PDF Tools[Arg and Vars] Processing complete [9:49:33.874 PM] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword It seems you are not entering the filename for the output PDF file. Link to comment
itsmevictor Posted October 27, 2022 Share Posted October 27, 2022 @xilopaintIndeed, you're right, I posted the wrong error message. The problem remains however. Sorry! [7:23:37.516 AM] Logging Started... [7:23:40.517 AM] Alfred PDF Tools[File Action] Processing complete [7:23:40.525 AM] Alfred PDF Tools[File Action] Passing output '( "/Users/victorkreitmann/Downloads/6.pdf", "/Users/victorkreitmann/Downloads/1.pdf", "/Users/victorkreitmann/Downloads/2.pdf", "/Users/victorkreitmann/Downloads/3.pdf", "/Users/victorkreitmann/Downloads/4.pdf", "/Users/victorkreitmann/Downloads/5.pdf" )' to Arg and Vars [7:23:40.527 AM] Alfred PDF Tools[Arg and Vars] Processing complete [7:23:40.528 AM] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword [7:23:42.126 AM] Alfred PDF Tools[Keyword] Processing complete [7:23:42.134 AM] Alfred PDF Tools[Keyword] Passing output 'test' to Run Script [7:23:42.346 AM] ERROR: Alfred PDF Tools[Run Script] . 07:23:42 workflow.py:2278 DEBUG ---------- Alfred PDF Tools (4.2.0) ---------- 07:23:42 workflow.py:1681 DEBUG reading settings from /Users/victorkreitmann/Library/Application Support/Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/settings.json 07:23:42 workflow.py:1681 DEBUG reading settings from /Users/victorkreitmann/Library/Application Support/Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/settings.json 07:23:42 workflow.py:2679 INFO checking for update ... 07:23:42 background.py:214 DEBUG [__workflow_update_check] command cached: /Users/victorkreitmann/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/__workflow_update_check.argcache 07:23:42 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 07:23:42 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/victorkreitmann/Desktop/synced/life/synced preferences/alfred preferences/Alfred.alfredpreferences/workflows/user.workflow.567A3465-F532-4A1E-AC22-43BA6A656C6C/workflow/workflow.py", line 2289, in run self.check_update() File "/Users/victorkreitmann/Desktop/synced/life/synced preferences/alfred preferences/Alfred.alfredpreferences/workflows/user.workflow.567A3465-F532-4A1E-AC22-43BA6A656C6C/workflow/workflow.py", line 2681, in check_update run_in_background("__workflow_update_check", cmd) File "/Users/victorkreitmann/Desktop/synced/life/synced preferences/alfred preferences/Alfred.alfredpreferences/workflows/user.workflow.567A3465-F532-4A1E-AC22-43BA6A656C6C/workflow/background.py", line 219, in run_in_background retcode = subprocess.run(cmd, check=True).returncode File "/opt/homebrew/Cellar/python@3.10/3.10.6_2/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. 07:23:42 workflow.py:2301 INFO for assistance, see: https://github.com/xilopaint/alfred-pdf-tools 07:23:42 workflow.py:2322 DEBUG ---------- finished in 0.021s ---------- Link to comment
xilopaint Posted October 27, 2022 Author Share Posted October 27, 2022 @vitordo you know why I'm getting this sign above the notification icon on macOS Ventura? I'm using Notificator with the library and facing the same problem with notifications from iStat Menus app. Link to comment
vitor Posted October 28, 2022 Share Posted October 28, 2022 Some more Apple weirdness, no doubt. I was getting the same, even after trashing, rebuilding, and signing the Notificatior app. What solved it was to go into System Settings → Notifications, then right-click → Reset Notifications… After that, every Notificator worked as usual. Link to comment
xilopaint Posted October 28, 2022 Author Share Posted October 28, 2022 28 minutes ago, vitor said: Some more Apple weirdness, no doubt. I was getting the same, even after trashing, rebuilding, and signing the Notificatior app. What solved it was to go into System Settings → Notifications, then right-click → Reset Notifications… After that, every Notificator worked as usual. It worked, thanks! Maybe you can help me with another issue. I don't see the option to share an iCloud file by a link anymore. Link to comment
vitor Posted October 28, 2022 Share Posted October 28, 2022 17 hours ago, xilopaint said: I don't see the option to share an iCloud file by a link anymore. Hadn’t noticed that one, but it’s the same for me. I don’t know of a fix, but do have a workaround. There is a Shortcut action which allows copying the URL from an iCloud file. You can pass it a path from Alfred with a Universal Action, I’ve done it before. Link to comment
xilopaint Posted October 28, 2022 Author Share Posted October 28, 2022 (edited) 2 hours ago, vitor said: Hadn’t noticed that one, but it’s the same for me. Happy to know I'm not alone with this issue. Edited October 28, 2022 by xilopaint Link to comment
xilopaint Posted October 29, 2022 Author Share Posted October 29, 2022 7 hours ago, vitor said: There is a Shortcut action which allows copying the URL from an iCloud file. You can pass it a path from Alfred with a Universal Action, I’ve done it before. I can't find this shortcut. Is this in Shortcut's Gallery? Link to comment
vitor Posted October 29, 2022 Share Posted October 29, 2022 It’s an action, make a new Shortcut and add it. Link to comment
xilopaint Posted October 29, 2022 Author Share Posted October 29, 2022 @vitorI just found out that you can still access the old UI for sharing the iCloud link via touchbar. Very weird. How can people without touchbar Macs can access that? Link to comment
xilopaint Posted October 29, 2022 Author Share Posted October 29, 2022 @itsmevictorplease, try this build and tell me if it works. Link to comment
DimonK27 Posted November 3, 2022 Share Posted November 3, 2022 Hi! Don't scold me strictly, I'm new to working with Alfred. Added WorkFlows, installed all the necessary libraries, but WorkFlow does not work. Perform File Actions are not added. OS X 13.0 Ventura If additional information is needed, I will write. Maybe I'm doing something wrong. The other workflows that I added are working fine. Link to comment
Stephen_C Posted November 3, 2022 Share Posted November 3, 2022 @DimonK27 when you have some problem like that it's always helpful to post here the output of the debugger obtained when you use the workflow. That will assist the developer in identifying the problem. Stephen Link to comment
DimonK27 Posted November 3, 2022 Share Posted November 3, 2022 (edited) I understand, but nothing happens when the debugger is turned on. When you enter the !progress commands, the following is displayed. When entering other commands, for example Merge, nothing happens. There is no information in the debugger. I can't even start the process Edited November 3, 2022 by DimonK27 Link to comment
xilopaint Posted November 3, 2022 Author Share Posted November 3, 2022 2 hours ago, DimonK27 said: I understand, but nothing happens when the debugger is turned on. When you enter the !progress commands, the following is displayed. When entering other commands, for example Merge, nothing happens. There is no information in the debugger. I can't even start the process This is how you perform keywords, not file actions. Link to comment
DimonK27 Posted November 3, 2022 Share Posted November 3, 2022 (edited) file actions nothing is added either Edited November 3, 2022 by DimonK27 Link to comment
DimonK27 Posted November 3, 2022 Share Posted November 3, 2022 Thank you all so much for the answers, I figured it out. Inattentively studied the documentation. Link to comment
itsmevictor Posted November 7, 2022 Share Posted November 7, 2022 (edited) On 10/29/2022 at 7:04 AM, xilopaint said: @itsmevictorplease, try this build and tell me if it works. @xilopaint Would you mind sharing it again? It is not accessible anymore. Edited November 7, 2022 by itsmevictor Link to comment
itsmevictor Posted November 9, 2022 Share Posted November 9, 2022 @xilopaint It works! Many thanks. 23 hours ago, xilopaint said: It’s here. Tell me if it works for you, please Link to comment
Sabry Posted December 1, 2022 Share Posted December 1, 2022 For some reason, I am unable to optimize pdf documents although Alfred's debugger does not indicate any problem. Below is the output. Would you be able to help? Many thanks in advance. [08:27:55.823] Alfred PDF Tools[File Action] Passing output '/Users/sabryeldeeb/Downloads/MBL Abha SEVEN/DESIGN REPORT/6ABHA09-ABHA-FC-DAE-GE-DEC-00001-B-ABHA IFC REPORT copy.pdf' to Arg and Vars [08:27:55.825] Alfred PDF Tools[Arg and Vars] Processing complete [08:27:55.826] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword [08:27:59.478] Alfred PDF Tools[Keyword] Processing complete [08:27:59.484] Alfred PDF Tools[Keyword] Passing output '100' to Replace [08:27:59.486] Alfred PDF Tools[Replace] Processing complete [08:27:59.487] Alfred PDF Tools[Replace] Passing output '100' to Run Script Link to comment
xilopaint Posted December 17, 2022 Author Share Posted December 17, 2022 On 12/1/2022 at 3:37 AM, Sabry said: For some reason, I am unable to optimize pdf documents although Alfred's debugger does not indicate any problem. Below is the output. Would you be able to help? Many thanks in advance. [08:27:55.823] Alfred PDF Tools[File Action] Passing output '/Users/sabryeldeeb/Downloads/MBL Abha SEVEN/DESIGN REPORT/6ABHA09-ABHA-FC-DAE-GE-DEC-00001-B-ABHA IFC REPORT copy.pdf' to Arg and Vars [08:27:55.825] Alfred PDF Tools[Arg and Vars] Processing complete [08:27:55.826] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword [08:27:59.478] Alfred PDF Tools[Keyword] Processing complete [08:27:59.484] Alfred PDF Tools[Keyword] Passing output '100' to Replace [08:27:59.486] Alfred PDF Tools[Replace] Processing complete [08:27:59.487] Alfred PDF Tools[Replace] Passing output '100' to Run Script Sorry for the late response. Could you share the PDF file via PM? I don't have any issues with Optimize file action. Link to comment
TomBenz Posted January 2, 2023 Share Posted January 2, 2023 @xilopaint Two questions on Alfred's PDF workflow: 1. Can 'Optimize' option lead to pdf files with size bigger than original? I have used default resolution (i.e no input which leads to a file size bigger than the original). I will test it more if this is not accepted behaviour. 2. Is it possible to add 'extract bookmarks' from the selected pdf file into text file? Request you to consider this feature. Are there other workflows that can address this? Link to comment
xilopaint Posted January 5, 2023 Author Share Posted January 5, 2023 (edited) On 1/2/2023 at 8:32 AM, TomBenz said: @xilopaint Two questions on Alfred's PDF workflow: 1. Can 'Optimize' option lead to pdf files with size bigger than original? I have used default resolution (i.e no input which leads to a file size bigger than the original). I will test it more if this is not accepted behaviour. It’s possible. The Optimize file action is intended to improve the appearance of low quality PDF files that are made from images (e.g. scanned documents). But I would say if the input PDF file has a higher resolution in comparison to the selected resolution it’s more likely that the output PDF will have a smaller size. On 1/2/2023 at 8:32 AM, TomBenz said: 2. Is it possible to add 'extract bookmarks' from the selected pdf file into text file? Request you to consider this feature. Are there other workflows that can address this? Could you explain further how the feature would work and why you need it? Would the text file be a simple .txt file? Edited January 5, 2023 by xilopaint Link to comment
2pilvic Posted January 5, 2023 Share Posted January 5, 2023 The flow stopped working for me and I don't know what could have happened. I reinstalled macOs and it hasn't worked since. The mistake is: ERROR: Alfred PDF Tools[Run Script] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun The /Library/Developer/CommandLineTools/usr/ folder only contains the “share” and “lib” folders I'd appreciate your help 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