Jump to content
Felciano

Using Alfred to enforce file naming conventions?

Recommended Posts

Hi --

 

I'm a long time Text Expander user that has fallen in love with Alfred, and am wondering if I can do everything I need with the latter. One thing I'm still struggling with is how to implement a system to enforce consistent filen aming conventions. Basically I need a system to help me stay disciplined about naming basic PDFs (home and business records) using a convention like

 

YYYY-MM-DD - <vendor> - <account> - <purpose>

So my bills would end up being something like

2018-01-15 - ATT - XX5555 - confirmation of invoice payment.pdf

I've done this in text expander by creating a snippet that launches a dialog that pre-computes some of the above (like the correctly formatted date) and then gives me drop-down menus to select the vendor, account and transaction type/purpose. An example of this strategy, with screenshots, is nicely written up here.

 

A key benefit is that you can trigger it with a single snippet, and the finish it with 2-3 clicks. I originally tried creating individual snippets for each type of file (e.g. "ATTConfirmInv") but there were too many combinations of vendors and transaction types to remember. This model works well for us. So I'm looking for something that can apply to a breadth of different naming conventions but be triggered by a single keyword, plus some additional user data entry.

 

As far as I can tell, Alfred doesn't have a framework for creating interactive UIs like this. Is there an alternate approach that anyone has worked through that could provide a similar result? I have not explored Alfred workflows yet, so if there is a path using that capability, I'd appreciate some pointers.

 

Thanks in advance!

Ramon

Share this post


Link to post

It is indeed possible, with a mix of Snippet Triggers (to start the Workflow), multiple List Filter Input (for the repetitive information that does not change), Argument and Variables Utility (to save the information), Run Script Action (to get the date into your preferred format, though that could be accomplished in other ways), Keyword Input (to get the changing “purpose” text), and Copy to Clipboard Output (to paste the text).

 

It may seem complex, but it’s a logical chain connection. Here it is in action:

nYNqihL.gif

 

 

And here’s the Workflow.

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...