Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Jasondm007 last won the day on July 26

Jasondm007 had the most liked content!

About Jasondm007

  • Rank

Recent Profile Visitors

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

  1. Jasondm007

    PDF Metadata Editor?

    @dfay You deal with a ton of PDFs, right? What do you use to edit their metadata? Thanks!
  2. Jasondm007

    PDF Metadata Editor?

    I understood what you meant. And, at a high level of generality, I understand what's going on in the workflows you suggested (which are great, btw). I just don't understand if what I suggested is even the right tool, let alone the best approach to updating a PDFs metadata through Alfred. Thanks!
  3. Jasondm007

    PDF Metadata Editor?

    @vitor I'm afraid these examples are a little over my head. Honestly, any Alfred-based metadata editing method would work just fine for me.
  4. Jasondm007

    PDF Metadata Editor?

    Yes - In order of importance, I always update the (1) Title and (2) Author fields, and sometimes the (3) Subject and (4) Author fields. However, I don't always update them at the same time. That's why I was initially thinking of creating a sperate file action for each field using the EXIFTool. However, I couldn't figure out how to attach it to an argument correctly (i.e., the input from the user that would be triggered once the file action was triggered, allowing them to input the value for the field, like the author's names), and still get the shell script's syntax to work. For example, it might look something like the following: File action Arg/Vars Utility - save variable with Name "FilePath" and Value {query} Keyword w. space & Argument Required - this is where the user could input the authors' names, separating each with a comma. So, for an article with two authors, it might look something like this: "FN1 LN1, FN2 LN2" And this is where I get lost ... Do I save this new argument as a variable or can I dump it right into the shell script? Run NSAppleScript - Depending on the previous step, you could essentially run something like this: exiftool -author="AUTHORS NAMES FROM PREVIOUS STEP" {var:FilePath}. However, this syntax would have to be changed. I'm sure there are a ton of other ways to update a PDF's metadata, like using the PDFTK utility or the XATTR command. I don't really care if the solution uses the EXIFTool. I'm just throwing it out as an option here because I know it would work if I could figure out steps 4 and 5. I've used it through Terminal in the past (and have it installed). I'm just new at scripting, and Alfred for that matter. Thanks again @vitor !
  5. Jasondm007

    PDF Metadata Editor?

    No - the fields' values change each time (e.g., different authors, titles, etc.). Ideally - it'd be great to see them first, but this isn't necessarily required. Thanks!
  6. Jasondm007

    PDF Metadata Editor?

    By chance, does anyone have a workflow for editing the metadata of a PDF that they'd be willing to share (Fields: Title, Author, Subject, Keywords )? I have a huge library of PDFs for academic articles, and I am constantly stuck updating the metadata in new PDFs that I download. To edit these fields, at the moment, I have to open the entire file in an all-purpose PDF editor, like Acrobat Pro or PDF Expert. However, I was hoping to find an easier way of doing this within Alfred. Ideally, I'd love to be able to both view and edit those specific metadata fields within Alfred (i.e., without having to rely on Finder, Terminal, or some other tool). If Alfred's not good for these tasks, what tools do others use? I imagine there are lots of researchers, journalists, students, etc, with similar problems. Thanks for any help you can lend!
  7. @nikivi Did you ever find a solution to this issue? Like yourself, it drives me crazy, too. I'd love to attach a hotkey directly to the Quit function. Just searching in Alfred using the keyword brings in unnecessary clutter. I've tried one or two workflows in the past - from Packal, I think - but I remember them being unusually slow, at least compared to Alfred's built in Quit function. Thanks!
  8. Jasondm007

    File action w/list of actions

    @dfay Thanks for taking a crack at it! @deanishe Thanks for the suggestion, too. It works!! So, for others that might be interested, the following modification to @dfay's code does the trick: import json, os, subprocess, sys cmd = ['./tag', '-r', '*'] + json.loads(os.getenv('filesList')) subprocess.call(cmd) Thanks a ton, @dfay & @deanishe!!
  9. Jasondm007

    File action w/list of actions

    @dfay Thanks for sharing the link to the command line tool! I tried adapting the JSON approach in the workflow above: (1) removing the list filter, and (2) updating the second python script. But I still haven't had any luck. As modified, the workflow looks something like this: And, the second python script now reads as follows: import json, os, subprocess, sys cmd = ['./tag', '-r \*', json.loads(os.getenv('filesList')) subprocess.call(cmd) Any idea what I might have overlooked? I'm a newbie, and assume that it's something with the python script. To make things easier, here's a link to a workflow containing the original process, and the new one outlined above: https://cl.ly/94d9b6ccc66d Thanks for your help!
  10. Jasondm007

    Buffer from Finder

    @Simon A Thanks for sharing this workflow! Is there any way to get it working for more than one file (i.e., if you highlight more than one file in Finder)? Thanks for your help!
  11. Jasondm007

    File action w/list of actions

    @dfay By chance, did you have a file action that removes all the tags on the selected file(s)? I used your JSON string method for adding tags, and love it! However, I haven't been able to figure out how to remove tags. Thanks for your help!
  12. @vitor Thanks for the suggestion! That would work just fine, too. @Tsunami I'm starting to wonder if it's an issue with dual screens, as it seems to be working fine from my laptop. In any event, thank you both for all of your help!
  13. @xilopaint Works like a charm! Thanks a ton!!
  14. Jasondm007

    Add and remove alfred:ignore from comments

    @jordic Thanks for posting this workflow! Does it still work in Alfred 3 (& current Mac OS)? On my machine, I can only get the file action to work for 1 file at a time (not multiples). In addition, the search feature is a little sporadic. However, it might just be my machine. Thanks again!
  15. @N0vi - Thanks for posting your Menu Bar Activate workflow to Packal. It's great and has made using the "Move focus to menu bar" feature much easier. This isn't an issue with the workflow, but I was wondering if you - or anyone else - knows how to get this feature working with apps in fullscreen (i.e., where the menu bar doesn't show up until after the cursor is moved to the top of the screen)? For example, if you're working in full screen with Safari, the menu bar is completely hidden. For some odd reason, Apple's shortcut to "Move focus to menu bar" doesn't work in these cases (and, therefore, neither does the workflow). I'm not sure why Apple did this, but it has made it rather difficult to use the feature. In any event, I was just curious if there was a way for your workflow to work in fullscreen mode? Is it possible to reveal the menu somehow in these circumstances (e.g., by mimicking the cursor or some other method)? Thanks for your help!! PS - For others reading this post, the "Move focus to menu bar" shortcut can be found in your System Preferences (System Preferences - Keyboard - Shortcuts - Keyboard - Move focus to menu bar) (third shortcut from the top of the list). PPS - I have not turned on the feature to "Automatically hide and show the menu bar" (in System Preferences - General - Automatically hide and show the menu bar) ... so I have no idea why it's even doing this. To be clear, I like the fact that it's hidden in full screen, I'm just confused why the "Move focus to menu bar" shortcut would not automatically reveal it.