Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to check the USA's Homeland Security threat level' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to check the USA's Homeland Security threat level
Authored by: jonn8n on Jan 16, '04 12:46:25PM
Here it is as an AppleScript:

--Open this script in a new Script Editor window.

set the_command to "curl -s 'http://www.dhs.gov/dhspublic/getAdvisoryCondition' | grep CONDITION"
set the_level to (word -1 of (do shell script the_command))
display dialog ("Terror Alert Level: " & the_level) buttons {"OK"} default button 1 with icon 2 giving up after 10
Jon

[ Reply to This | # ]