cyrilbslx Posted September 12, 2022 Share Posted September 12, 2022 Hi there, I was wondering if there was a way to pull text data from a .txt document when using the snippet fonction? Being able to store all my snippets in a synced Google Drive folder would be amazing. Thank you! Link to comment
cyrilbslx Posted September 12, 2022 Author Share Posted September 12, 2022 If any of you have a similar setup using workflows I'd love to learn more about it! Tried to do it directly from Google Docs files but it's too complicated for my basic coding skills Link to comment
Stephen_C Posted September 12, 2022 Share Posted September 12, 2022 (edited) I'm not entirely clear about what you need but if you want to import Snippets from a text file this Alfred help page may assist. Stephen Edit: Of course, it would mean creating the snippets from the text file one by one. Edited September 12, 2022 by Stephen_C Clarification Link to comment
cyrilbslx Posted September 12, 2022 Author Share Posted September 12, 2022 Hi Stephen! Thank you for your answer Basically I'd wish I could use a placeholder like {file: /GoogleDrive/snippets/customer-return.txt} So that the content is always up to date company wide. Hope it's clearer! Link to comment
vitor Posted September 12, 2022 Share Posted September 12, 2022 Welcome @cyrilbslx, You can do it with a Workflow: Snippet Trigger → Arg and Vars Utility (in Argument, place the full path to your file) → Automation Task (Files and Folders/Read File Contents) → Copy to Clipboard Output (set to paste to frontmost app). Save it as a prefab for quick reuse. Or use new ones directly: you only need to create a new Snippet Trigger and Arg and Vars Utility for each, they can all connect to the same Automation Task. Link to comment
cyrilbslx Posted September 12, 2022 Author Share Posted September 12, 2022 Oh wow that's lovely thank you Vitor! I'll give it a try asap 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