There's an old saying about Perl which I think is attributed to Randal L. Schwartz:
Making Easy Things Easy and Hard Things Possible
That's kind of how I feel about Awasu compared to other feed readers.
I always try to make my software flexible and it's always a good sign when people use your software in ways that you never even thought of
kevotheclone wrote:After I posted my code I thought about another variation that kicks the coolness up a notch.
zakky is going to have quite a few channels like this which means he would either need one script per channel, or the script would need to accept some parameters to specify what channel it should work on and where to find the query files.
But your idea gave me a really cool idea. What if the script iterates through all Awasu channels (by processing each <tt>.CHANNEL</tt> file in a directory), looking for search channels. For each search channel it finds, it checks the channel's description for lines that look like this (for example):
Code: Select all
QUERY-FILE = c:\data\file1.txt
QUERY-FILE = c:\data\file2.txt
It reads the query terms from the specified files, generates the search query and updates the <tt>.CHANNEL</tt> file.
This means that zakky can then manage where the query terms come from for each channel from the Awasu UI. He can update the channel description (in the channel's Properties dialog) for each channel, exit Awasu and run your script, and each channel gets their search query updated. Now, that would be seriously cool