• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question on a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on a script


  • Subject: Question on a script
  • From: email@hidden
  • Date: Thu, 17 Jan 2008 12:54:54 -0800

I have this script that I run. I want it to write a log ONLY if there is a change in any of the values.

Will this do the job?

set Temp_Outside to (value of "Temperature Outside.web") as integer
set Temp_Upstairs to (value of "Temperature Upstairs.web") as integer
set Temp_Downstairs to (value of "Temperature Downstairs.web") as integer
set Temp_Main_Floor to (value of "Temperature Main Floor.web") as integer

if (value of "Temperature Outside.web") is not equal to Temp_Outside then
if (value of "Temperature Upstairs. web") is not equal to Temp_Upstairs then
if (value of "Temperature Downstairs.web") is not equal to Temp_Downstairs then
if (value of "Temperature Main Floor.web") is not equal to Temp_Main_Floor then
write log "Outside: " & Temp_Outside & "  Upstairs: " & Temp_Upstairs & "  Downstairs: " & Temp_Downstairs & "  Main floor: " & Temp_Main_Floor
end if
end if
end if
end if


Chuck
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question on a script
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: RE: Obfuscations and little white lies
  • Next by Date: Re: "a reference to"
  • Previous by thread: Re: Change Computer name via Applescript
  • Next by thread: Re: Question on a script
  • Index(es):
    • Date
    • Thread