set powerOn to "/cgi-bin/power_on.cgi"
set powerOff to "/cgi-bin/power_off.cgi"
set shutterClose to "/cgi-bin/proj_ctl.cgi?key=shutter_on&lang=e&osd=on"
set shutterOpen to "/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on"
#Do not change anything above this line!
set theServer to "192.168.50.135" -- set this to the ip address of the projector
set theUsername to "admin1" -- set this to the username for the projector
set thePassword to "panasonic" --set this to the password for the projector
set theCommand to shutterClose --set the command required, option are, powerOn, powerOff, shutterClose, shutterOpen
#Do not change anything below this line
set theProtocol to "http" -- vs https
set theUserPass to theUsername & ":" & thePassword -- your Indigo remote access username/password
set theURL to theProtocol & "://" & theUserPass & "@" & theServer & theCommand
set theFinalURL to "\"" & theURL & "\""
try
with timeout of 1 second
do shell script "/usr/bin/curl" & " " & "--connect-timeout" & " " & "1" & " " & theFinalURL
end timeout
end try
Mic