Search the Community
Showing results for tags 'config'.
Found 3 results
Hello again. I'm rebuilding my own Alfred-Time Workflow (use Toggl and/or Harvest with Alfred) and I started developing some PHP packages to ease the development of Alfred Workflows in PHP. Last week I've released Alfred Workflow ScriptFilter that allows you to create a ScriptFilter output. This week I've worked on handling configuration settings. I think it's quite nice when we developed a Workflow not to bother spending time on things that are common to a lot of them. So if you use PHP and need to store some config, you might want to have a look at the package I've made. Here's the GitHub link: https://github.com/godbout/alfred-workflow-config Currently it's tailored for my needs. For example there's no feature to delete a config file. If you need stuff like that, you can open an issue on GitHub or we can talk about it here. I'll see how I can extend usefully. Happy productivity!
Is it possible to use a JSON Config block to affect the keyword of a connected block? I've tried copying the copy the config of a Script Filter block into a JSON Config block and changing the keyword, but it appears to have no effect. Overall, can anyone provide any details on how the JSON Config blocks are intended to be used?
Hey Everyone, I just wanted to share my solution for using a keyword to modify an option. I added a config.json file to my workflow and require it in my script filter. This allows me easily access and modify the values. Hope it helps! See how I did it in my workflow: https://github.com/kkirsche/TVRage-Alfred_Workflow For mine, for time's sake, I did: $string = file_get_contents('config.json'); $decodedJSON = json_decode($string, true); $decodedJSON['12hrtimezone'] = true; $encodedJSON = json_encode($decodedJSON); file_put_contents('config.json', $encodedJSON);