Search the Community
Showing results for tags 'config'.
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 t
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.php file to my workflow and require it in my script filter. This allows me to use fopen and file_get_contents to modify that file. If it's something, such as in mine, such as enabling 12-hour time or 24-hour time, you can run this script to change the line from true to false (or vice versa). This makes it easy for your users and convenient for you to support as you avoid them changing anything they aren't supposed to. Hope it helps! See how I did it in my workflow: https://gith
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);