• 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
Re: Quickie Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quickie Question


  • Subject: Re: Quickie Question
  • From: Emmanuel <email@hidden>
  • Date: Fri, 29 Mar 2002 18:22:20 +0100

At 4:50 PM +0100 29/3/02, Scott Ettin wrote:
>
>What script command can I use to call the system clock? I'd like to write
>a basic script that will shut down an application if the system time is
>equal to say, 9pm.
>
>Sort of like:
>
>on try
>if the system time is 9:00pm

I might know this one!!!!

----------------------
set theDate to (current date)
set time of theDate to (21 * 3600) -- 21 is 9 PM
-- now theDate is storing today's date at 9 PM
if (current date) > theDate then
----------------------

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Quickie Question (From: Scott Ettin <email@hidden>)

  • Prev by Date: Restarting OSX through applescript
  • Next by Date: Re: Can MacOS 9.1 use AppleScript 1.8.2b3?
  • Previous by thread: Quickie Question
  • Next by thread: Re: Quickie Question
  • Index(es):
    • Date
    • Thread