Hi all,
My Talking Dashboard scripts just got a big update: the template engine now 
supports if statements, and you can even nest them as far as you want! The 
syntax is a bit tricky to get used to, but it will all be in the readme 
file.This means you can now customize the template based on, for instance, 
whether bluetooth is on or not, of if it's before or after 12:00 PM, and so on. 
I'm now adding and refining keywords to make this work more smoothly, but I 
think you will all be happy with the result. Here's a peek at the new wifi 
template, just to give you an idea of what to expect:
set template to "${$wifiOn$?${$wifiConnected$?You are connected to $ssid at 
$signalStrength DbM.$:You are not connected to any wifi networks.$}$:Wifi is 
currently disabled.$}"

So, you have an if statement that says to say one thing if wifi is on, and 
another if it is off. Inside the "wifi is on" part, you have a nested if 
statement that defines one response if you are connected to a network, and 
another if you are not. The programmers on here probably already picked up on 
the syntax, and the rest are likely looking at that mess and panicking. If you 
are the latter: relax. I'll do my best to make the templates make sense so you 
don't need to change them, and the format of the new if statements is really 
not as bad as it looks once you get used to it. I just wanted to give you all a 
look at what I've been working on in the last few days. Stay tuned for a 
release sometime in the next week or so.


Have a great day,
Alex (msg sent from Mac Mini)
[email protected]



-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to