Code to capture NOC webpage then display as screensaver.

Applescript Code to takes a snapshot of the Network Operations Center status page. Used URL2Thumb process to capture page image and store as a 1024×768 .jpg file. 1. Using ScriptSaver (ScreenSaver App.) to launch my code which then runs ArtSaver (Secondary Screensaver) to display image captured.

tell application “System Events”
if (exists (process “ScreenSaverEngine”)) then
repeat until (exists (process “ScreenSaverEngine”)) = false
if (exists (process “ScreenSaverEngine”)) then
do shell script “/Applications/Utilities/./url2thumb http://”Server_IP”/em?print_stat_list_384EBF6F00000001 /users/administrator/Temp/NOCmonitor.jpg 1024 768”
delay 30
end if
end repeat
else
end if
end tell

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s