Jump to content

Expanding a snippet in write text file object


Recommended Posts

I have a workflow that creates a text file in a specific path and appends the date when it is written. I also want to expand a snippet in the file but that part of the workflow is not working and i get my file with just the name of my snippet which is {snippet:.dmeta} I use a "." before all of my snippets.

 

Here is what my workflow looks like:

 

image.thumb.png.8e3087f060d793b440295b4679f88fe7.png

 

 

the keyword does not require an argument.

the variable is the path where i want to have the file written which has a date dynamic place holder /Volumes/Alfred is the best/my note {date:yyyyMMdd}.txt

and here is what my write to text file looks like:

 

image.thumb.png.54aa75fe653db94e259de09bcede46c1.png

 

 

Is there some reason why my snippet would not be expanding? If I use a dynamic place holder like {time} it works as expected.
 

 

 

Edited by sepulchra
Link to comment
  • sepulchra changed the title to expanding a snippet in write text file object

I had some more time to futz with this problem and I stored the text I wanted to expand in the snippet as variable -- so instead of the snippet shown above, I used {var:variable name} and it works as expected.  While I solved my problem, I would still like to understand why my snippets aren't expanding using the method in my original post above. According to the information on this page: https://www.alfredapp.com/help/workflows/advanced/placeholders/ it should work as I originally wrote the workflow.

 

Thanks!

 

 

Link to comment
  • vitor changed the title to Expanding a snippet in write text file object

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...