• 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
date/Snow Leopard changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date/Snow Leopard changed


  • Subject: date/Snow Leopard changed
  • From: Robert Poland <email@hidden>
  • Date: Wed, 2 Sep 2009 09:11:13 -0600

Hi,

Going through my scripts in Snow Leopard I ran into one that is being stubborn;

set WakeUpTime to "6:01"
set SleepTime to "21:01"
set nowTime to (current date)
set wakeTime to date (date string of nowTime & ":" & WakeUpTime) -- NOTE use of ":"
set bedTime to date (date string of nowTime & ":" & SleepTime) -- NOTE use of ": "


display dialog nowTime & return & bedTime & return & wakeTime as string

if (nowTime is less than bedTime) and (nowTime is greater than wakeTime) then
display dialog "You should be awake"
end if


This used to work with Leopard. Removing the first "date"s, at least gets the time but then errors later.

Help.

TIA


Bob Poland - Fort Collins, CO



_______________________________________________
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: date/Snow Leopard changed
      • From: Axel Luttgens <email@hidden>
    • Re: date/Snow Leopard changed
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: toolbar-sidebar
  • Next by Date: Re: date/Snow Leopard changed
  • Previous by thread: toolbar-sidebar
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread