Jump to content

Alfred-Chris

Member
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Alfred-Chris

  1. Thanks for all the explanations and teaching me. Unfortunately this is not helping my workflow though and it's also not what I tried to achieve and asked for. There are about 80 files inside this folder, constantly being maintained. I can unfortunately not just open the "most recent file" to get the one I want. Edit: Of these 8 files I have a direct link as described above to 8 of them. If I wouldn't need to constantly renew the link that would have helped me. I can't change the way how the filing is done. It's not in my hands. I guess if you wouldn't know how it works (judging from your status 😉 ), then probably Alfred can't do this specific thing I hoped for.
  2. Hi I have a 2 items in the workflow. Input: Keyword: "file1" Action: Open File: "Path to file1" So I do "apple-space" type "filename" and it opens. file1 will be called something like "Projectname-projectgroup-subgroup-date-revnumber.pdf" The Revision of this file changes constantly but old revisions are moved into an archive and only the most recent file is placed inside the folder. So I would like to simply "cut" the path to the filename like this, or what is possible: //folder/subfolder/Projectname-projectgroup-subgroup* This would then always open the latest PDF in this folder, no requirement to rename it for date-revision I hope that explains it better
  3. Hi I don't know the right expressions for this, so it's hard for me to search for a solution. Example: In terminal, if I want to execute a file named 111-222-333.py, I could simply type 111* to execute it, if it's the only file with "111" in the beginning. I would like to use the same in a workflow in Alfred for the "Open File" command. What would be the equivalent to open for example a file called 111-222-333.pdf simply with something like 111* ? Thanks a lot for your help, Chris
  4. Hi Stephen Thanks a lot for taking the time. Unfortunately I added the incorrect link to my post above (now corrected). I installed the "Recent" workflow from https://alfred.app/workflows/jygh/recent-files/ After being guided by you in the right direction, I can now also see the statement on the site to install fd. 🤦‍♂️🙈 Thanks and sorry, Chris
  5. Hi I would like to use the "Recent Documents" workflow. I get the following error message when I execute the workflow and can't find a match on google or here in the forum to solve it. Can someone guide me into the correct direction? Thanks a lot in advance, Chris [09:59:50.358] Logging Started... [09:59:54.027] Recent Files[Script Filter] Queuing argument '(null)' [09:59:54.190] Recent Files[Script Filter] Script with argv '(null)' finished [09:59:54.192] ERROR: Recent Files[Script Filter] Code 1: Error: the fd command does not exist or is not executable! fd [09:59:54.193] ERROR: Recent Files[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON: Error: the fd command does not exist or is not executable! fd EDIT: I corrected the link
  6. Hi Forum I would like to create the following workflow and I have no clue how to do this. I have Projects and the files and folders are always named with a dedicated Project number system. What I would like to do is to move folders containing all sorts of files into a specific folder based on the "Item Number" (253 in this case) inside the Project P001 file system. For example: Move the folder "P001-253-001-11-01-File Name" and its contents ... ... to the Folder "253 - Subcategory 3", which is located inside a P001 Project folder. In case the folder "253 - Subcategory 3" doesn't exist, it would be great if I could create it and name the subcategory within the workflow. I hope this is easy to understand. I got helped here in so great ways already. I hope this is not too much to ask for and I hope this is possible 🙂 Thanks in advance for any help, Christoph
  7. Ok, sorry. That is a bit embarrassing start. The Example files are in the bottom left corner. 🙄
  8. Hi Forum I received great help here already where forum members created a workflow for me. Thanks again for that. Since Alfred 5 I understand that lots of workflows that required programming before, now can be done with these Automations. So I got really interested and really would like to teach this to myself, since learning how to program was always a too big step for me. This will be for sure a step by step process and I would probably ask questions here from time to time when I have an issue. Thanks in advance for any help already 🙂 At the moment I am going through the "Getting Started" and online help files. And my first issue is that I am not sure where the sample files in Alfred 5 are. https://www.alfredapp.com/help/workflows/getting-started/alternative-actions/ On this site the text refers to the example "Simple-To-Do-List". But I can't find this in my Alfred 5. There is no "Get Started --> Workflow Variables" and no "Examples" section. Is this deleted in Alfred 5 and is there a way to find the example workflow somewhere? I only have these: Thanks a lot in advance for your help.
  9. Dear Stephen I thought I followed the installation instructions but thanks for highlighting this again, because I apparently didn't do this correctly. Now I actually have the workflow working in my Alfred. And that is fantastic, because I can now try and understand what the different elements in the workflow mean and I can try and understand this a bit better for myself and maybe create some complex ones like these myself. So thanks to both of you, especially to Vito again for helping and teaching me at the same time Chris
  10. If I compare the python scripts, then it seems that the main change is where the workflow gets cocoa from from Foundation import NSURL changed to from Cocoa import NSURL Could I not just change this back? How can I pack an Alfred workflow?
  11. In the workflow it states "task missing". Thank you Vitor This is really very much appreciated! I installed the workflow. Please see the screenshot below though that shows "Task missing". Is this the expected behaviour?
  12. EDIT: Please ignore the message below. Thank you Vitor This is really very much appreciated Somehow the workflows can't be added to my system, I think. I don't see them in my drop down list of the universal actions. So, if I double click the workflow - I am not sure this (or the previous one from before) gets installed...
  13. Hi, me again 🙂 I am trying to reinstall this script on Alfred 5 and it gives an error message: [12:24:08.932] Y722 - Approval[Universal Action] Processing complete [12:24:08.933] Y722 - Approval[Universal Action] Passing output '/Users/ck/Library/Group Containers/3L68KQB4HG.group.com.readdle.smartemail/databases/messagesData/11/317190/Y722-381-001-11-01-E-Railing Arrangement.pdf' to Run Script [12:24:09.046] ERROR: Y722 - Approval[Run Script] Traceback (most recent call last): File "/Users/ck/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CC51F820-FB28-45B0-863F-82CEBC738D11/save_attachment.py", line 14, in <module> from Cocoa import NSURL ModuleNotFoundError: No module named 'Cocoa' Is this something where Alfred 5 causes an issue?
  14. I found this thread, and I wonder of this is somehow related to my issue: https://groups.google.com/g/pymacadmin/c/9mxMerTHdBg
  15. Unfortunately that didn't fix it yet. I got the same error message. I am not sure how to address this issue.
  16. Ok, I guess this means that it doesn't find the right Python (python3) installation. If someone knows what to do to make it work, that would be cool, elsewise I will need to google my way through it. Talk later 🙂
  17. I get this error message in the log. I will try and look at the .py file myself a bit later.
  18. Hi Giovanni - thanks a lot for converting the workflow. At the moment I can't get it to work unfortunately. It doesn;t even show up in the drop down menu when I use the shortcut on the file. But I will try again when I have more time. Thanks again and more later, Chris
  19. Hi, sorry to ask again. Is it possible somehow for me to convert the workflow that Deanishe once created from Python 2 to Python 3? Is there maybe a manual for that? I would like to try it instead if frickeling with MacOS (now and in the future). Thanks for any tip 🙂
  20. Thanks a lot for the explanation, Vito! Very much appreciated. yes, I am on Monterey 12.3.
  21. This script always worked perfect. But (it seems) since the latest MacOS update I get the error message Reason: Couldn't posix_spawn: error 2 The external script may not exist, or doesn't have execute (+x) permissions. I saw @deanishe explanation on the link below, but I am not siure how to fix this. I tried to remove and then add Alfred from "Accessibility" inside the privacy settings menu. But it didn;t help to solve the issue. Does it require to rewrite the script for Alfred?
×
×
  • Create New...