Jump to content

Recommended Posts

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://github.com/kkirsche/TVRage-Alfred_Workflow

Link to comment

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...