sepulchra Posted November 18, 2022 Share Posted November 18, 2022 (edited) 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: 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: 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 November 18, 2022 by sepulchra Link to comment
sepulchra Posted November 25, 2022 Author Share Posted November 25, 2022 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 Posted December 1, 2022 Share Posted December 1, 2022 Not every dynamic placeholder expands everywhere. This can have technical or design reasons, but you’ll generally know what’s expanded where by checking the grey help text. Note how {snippet} isn’t mentioned but the others are. Link to comment
sepulchra Posted December 2, 2022 Author Share Posted December 2, 2022 Thank you. I was racking my brain a bit! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now