Jump to content

mazerunner

Member
  • Posts

    17
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

mazerunner's Achievements

Helping Hand

Helping Hand (3/5)

1

Reputation

  1. Okay, it seems, that there is a problem with my pdf's that caused this issue. With all other pdf's it's working properly. Thank you very much!
  2. Unfortunately, even after the Update I still encounter this issue (with your mentioned way via the most recently added path it's working properly).
  3. Hello everyone, I'm currently working on an Alfred workflow designed to merge several selected PDF files into one. This part of the process is functioning correctly—the selected PDFs are being merged, and the resulting file is saved to the Desktop. My next goal is to automatically move this newly created merged PDF file to a specific location of my choosing. However, I've encountered a stumbling block: the automation task that merges the PDFs doesn't provide me with the file path of the new merged PDF file. This occurs despite indications that the file path would be part of the output: . There is even this STDERR as you can see below, which I do not understand. I am thankful for every helpful advices.
  4. Hello Vitor! Perfect, that worked fine! Thank you very much. Best regards
  5. Hello everyone, I'm currently working on an Alfred workflow that involves moving multiple files. My workflow starts with a Universal Action, followed by Arg and Vars as well as a Script Filter, and ends with an Automation Task to move the files. The workflow works perfectly when I connect the Universal Action directly to the Automation Task. However, things go awry when I introduce a Script Filter between the two. My Script Filter is written in Python, and here's a simplified version of the code: import os import json old_paths_str = os.environ.get('old_paths') old_paths_lst = old_paths_str.split(', ') data_to_send = { "items": [ { "title": "Test Title", "arg": old_paths_lst } ] } print(json.dumps(data_to_send)) Despite several attempts to modify the "arg" in the JSON output to match what the Universal Action produces, I haven't been successful. Questions: 1. How can I correctly pass multiple file paths from the Script Filter to the Automation Task? 2. Is there a specific format or data type that the Automation Task expects for multiple inputs? Any help or insights would be greatly appreciated. Thank you!
  6. Good morning Vitor! Perfect, the external Trigger in combination with the Call external Trigger output was exactly what I was looking for. Thank you for this!! The Rename Action solution would work as well - but I just do not know how to implement the directory searching inside the script filter (I'm not a programmer and just got started). But still - I got a solution that works quite well. Best regards!
  7. Hello everybody! I'm working on an Alfred workflow to move a file from one directory to another. The basic functionality is straightforward: Use Universal Action connected to a File Filter (to choose the destination directory) and a simple Bash-Script for moving the file. However, I've run into challenges when trying to add error-handling to the workflow. Specifics: Error-Handling: I want to implement error-handling to ensure that the user (me) doesn't select a destination where the file already exists. I managed to create a Script Filter that issues a warning message ("That path already exists. Choose another one") if the destination file already exists. But then I just can offer a limited number of following queries with the File Filter after that. Loop-Like Behavior: Ideally, I would like to keep the user in the File Filter interface until they select a valid directory, mimicking a while loop's behavior. However, I can't figure out how to implement this loop-like behavior using Alfred's existing utilities. Questions: How can I implement a loop-like interaction that allows the user to keep selecting directories until a valid one is chosen? Is there a way to implement folder search functionality within a Script Filter similar to what the File Filter offers, so that I can keep the user within the Script Filter for better error-handling? Any guidance or suggestions would be greatly appreciated!
  8. @Vero Thank you so much! It worked. Thank you all for your effort and have a nice day!
  9. Okay, I will do it. But nevertheless: thank you very much for your effort!
  10. Unfortunately yes... 😕 With the workflow it works, but it is in that way not convenient, since they are documents that I still need.
  11. @vitor: The files are all located in ~/... (stored in the icloud). But even when I removed that from the search scope, it doesn't change anything. First troubleshooting: Starting Diagnostics... File: 'Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf' Path: '/Users/maxkrischeu/Documents/[1] Universität/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus' ----------------------------------------------------------- Check file cache database... ✅ File cache integrity is ok ----------------------------------------------------------- Check if file is readable... ✅ Alfred has permissions to read this file. Unix Permissions: 420 Underlying Type: NSFileTypeRegular Extended Attributes: ( "com.apple.lastuseddate#PS", "com.apple.macl", "com.apple.metadata:_kMDItemUserTags", "com.apple.quarantine" ) ----------------------------------------------------------- Check if volume '/' is indexed by macOS... ✅ Indexing is enabled on this drive ----------------------------------------------------------- Check direct file metadata... ✅ Direct metadata available Display Name: Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf Other Names: Content Type: com.adobe.pdf Last Used: 2023-08-28 12:48:20 +0000 ----------------------------------------------------------- Check mdls file metadata... ✅ Metadata contains required items _kMDItemDisplayNameWithExtensions = "Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf" kMDItemContentCreationDate = 2023-08-28 12:47:47 +0000 kMDItemContentCreationDate_Ranking = 2023-08-28 00:00:00 +0000 kMDItemContentModificationDate = 2023-08-28 12:47:47 +0000 kMDItemContentType = "com.adobe.pdf" kMDItemContentTypeTree = ( "com.adobe.pdf", "public.data", "public.item", "public.composite-content", "public.content" ) kMDItemDateAdded = 2023-09-06 07:02:02 +0000 kMDItemDisplayName = "Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf" kMDItemDocumentIdentifier = 16902 kMDItemEncodingApplications = ( "iOS Version 16.6 (Build 20G75) Quartz PDFContext" ) kMDItemFSContentChangeDate = 2023-08-28 12:47:47 +0000 kMDItemFSCreationDate = 2023-08-28 12:47:47 +0000 kMDItemFSCreatorCode = "" kMDItemFSFinderFlags = 0 kMDItemFSHasCustomIcon = (null) kMDItemFSInvisible = 0 kMDItemFSIsExtensionHidden = 0 kMDItemFSIsStationery = (null) kMDItemFSLabel = 0 kMDItemFSName = "Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf" kMDItemFSNodeCount = (null) kMDItemFSOwnerGroupID = 20 kMDItemFSOwnerUserID = 501 kMDItemFSSize = 378151 kMDItemFSTypeCode = "" kMDItemInterestingDate_Ranking = 2023-08-28 00:00:00 +0000 kMDItemKind = "PDF document" kMDItemLastUsedDate = 2023-08-28 12:48:20 +0000 kMDItemLastUsedDate_Ranking = 2023-08-28 00:00:00 +0000 kMDItemLogicalSize = 378151 kMDItemNumberOfPages = 1 kMDItemPageHeight = 866.6434 kMDItemPageWidth = 612 kMDItemPhysicalSize = 380928 kMDItemSecurityMethod = "None" kMDItemUseCount = 7 kMDItemUsedDates = ( "2023-08-27 22:00:00 +0000" ) kMDItemVersion = "1.4" ----------------------------------------------------------- Check file is in search scope... ✅ File exists within Alfred's default search scope ----------------------------------------------------------- Check MDQuery file search... ✅ macOS returned a match for this file in your search scope. File Search Results for search scope ( "[0] /System/Volumes/Data/Users/maxkrischeu/Documents/[1] Universita\U0308t/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus/Certificate-of-Arrival_Ausgefu\U0308llt_Linn\U00e6us-Universita\U0308t.pdf" ) File Search Results for ~/ ( "[0] /System/Volumes/Data/Users/maxkrischeu/Documents/[1] Universita\U0308t/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus/Certificate-of-Arrival_Ausgefu\U0308llt_Linn\U00e6us-Universita\U0308t.pdf" ) File Search Results for / ( "[0] /System/Volumes/Data/Users/maxkrischeu/Documents/[1] Universita\U0308t/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus/Certificate-of-Arrival_Ausgefu\U0308llt_Linn\U00e6us-Universita\U0308t.pdf" ) ----------------------------------------------------------- ✅ Troubleshooting passed Second troubleshooting: Starting Diagnostics... File: 'Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf' Path: '/Users/maxkrischeu/Documents/[1] Universität/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus' ----------------------------------------------------------- Check file cache database... ✅ File cache integrity is ok ----------------------------------------------------------- Check if file is readable... ✅ Alfred has permissions to read this file. Unix Permissions: 420 Underlying Type: NSFileTypeRegular Extended Attributes: ( "com.apple.lastuseddate#PS", "com.apple.macl", "com.apple.metadata:_kMDItemUserTags", "com.apple.quarantine" ) ----------------------------------------------------------- Check if volume '/' is indexed by macOS... ✅ Indexing is enabled on this drive ----------------------------------------------------------- Check direct file metadata... ✅ Direct metadata available Display Name: Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf Other Names: Content Type: com.adobe.pdf Last Used: 2023-08-28 12:48:20 +0000 ----------------------------------------------------------- Check mdls file metadata... ✅ Metadata contains required items _kMDItemDisplayNameWithExtensions = "Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf" kMDItemContentCreationDate = 2023-08-28 12:47:47 +0000 kMDItemContentCreationDate_Ranking = 2023-08-28 00:00:00 +0000 kMDItemContentModificationDate = 2023-08-28 12:47:47 +0000 kMDItemContentType = "com.adobe.pdf" kMDItemContentTypeTree = ( "com.adobe.pdf", "public.data", "public.item", "public.composite-content", "public.content" ) kMDItemDateAdded = 2023-09-06 07:02:02 +0000 kMDItemDisplayName = "Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf" kMDItemDocumentIdentifier = 16902 kMDItemEncodingApplications = ( "iOS Version 16.6 (Build 20G75) Quartz PDFContext" ) kMDItemFSContentChangeDate = 2023-08-28 12:47:47 +0000 kMDItemFSCreationDate = 2023-08-28 12:47:47 +0000 kMDItemFSCreatorCode = "" kMDItemFSFinderFlags = 0 kMDItemFSHasCustomIcon = (null) kMDItemFSInvisible = 0 kMDItemFSIsExtensionHidden = 0 kMDItemFSIsStationery = (null) kMDItemFSLabel = 0 kMDItemFSName = "Certificate-of-Arrival_Ausgefüllt_Linnæus-Universität.pdf" kMDItemFSNodeCount = (null) kMDItemFSOwnerGroupID = 20 kMDItemFSOwnerUserID = 501 kMDItemFSSize = 378151 kMDItemFSTypeCode = "" kMDItemInterestingDate_Ranking = 2023-08-28 00:00:00 +0000 kMDItemKind = "PDF document" kMDItemLastUsedDate = 2023-08-28 12:48:20 +0000 kMDItemLastUsedDate_Ranking = 2023-08-28 00:00:00 +0000 kMDItemLogicalSize = 378151 kMDItemNumberOfPages = 1 kMDItemPageHeight = 866.6434 kMDItemPageWidth = 612 kMDItemPhysicalSize = 380928 kMDItemSecurityMethod = "None" kMDItemUseCount = 7 kMDItemUsedDates = ( "2023-08-27 22:00:00 +0000" ) kMDItemVersion = "1.4" ----------------------------------------------------------- Check file is in search scope... ✅ File exists within Alfred's default search scope ----------------------------------------------------------- Check MDQuery file search... ✅ macOS returned a match for this file in your search scope. File Search Results for search scope ( "[0] /System/Volumes/Data/Users/maxkrischeu/Documents/[1] Universita\U0308t/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus/Certificate-of-Arrival_Ausgefu\U0308llt_Linn\U00e6us-Universita\U0308t.pdf" ) File Search Results for ~/ ( "[0] /System/Volumes/Data/Users/maxkrischeu/Documents/[1] Universita\U0308t/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus/Certificate-of-Arrival_Ausgefu\U0308llt_Linn\U00e6us-Universita\U0308t.pdf" ) File Search Results for / ( "[0] /System/Volumes/Data/Users/maxkrischeu/Documents/[1] Universita\U0308t/[1.5] Auslandssemester Schweden/[1.5.3] Auslandssemester Schweden - Organisatorisches/[1.5.3.1] Auslandssemester Schweden - Organisatorisches - Erasmus/Certificate-of-Arrival_Ausgefu\U0308llt_Linn\U00e6us-Universita\U0308t.pdf" ) ----------------------------------------------------------- ✅ Troubleshooting passed I use macOS Ventura 13.5 and Alfred 5.1.2 [2145].
  12. Unfortunately that was already the case. Any more Ideas? I reseted different settings also multiple times.
  13. Hello everyone, I'm encountering an issue with Alfred's default results. Despite my wish to deactivate document display (I only want to see apps), the search results continue to include documents (as shown below). I've tried various methods to limit the search scope and tried different settings, but none have resolved the problem. Note: The documents are in a completely different folder, which is not included to the search scope and even my input is not matching with their names. Hope somebody has an idea. Thank you very much!
  14. Thanks for this hint! I have changed it immediately.
  15. Update: in my Script {query} was missing. xD It's working for right now.
×
×
  • Create New...