• 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: Anyone got the time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anyone got the time?


  • Subject: Re: Anyone got the time?
  • From: Martin Crisp <email@hidden>
  • Date: Wed, 21 Jul 2004 17:01:47 +1000
  • Organization: Tesseract Computing

On Wed, 21 Jul 2004 16:28:18 +1000, Jack Miller wrote
(in message <email@hidden>):

> Hi,
>
> I'm trying to code a little applescript to open a program if the time
> is not between 8 am and 12 pm (0800 to 1200). I've got the rest of the
> script done, I just need to know what I can use to get the system time
> (not the whole lot in that
> format-that-I-can't-really-remember-that-includes-the-data...)
>
> Time by itself (without caps) is recognition, but both the finder and
> the app that I want to open can't get it.
>
> Should I go back to obj-c?

time of (current date)

returns the seconds since midnight, a little arithmetic will get
you the rest of the way (div and mod are both supported operators)

[and you don't need to put it in a tell block]

Have Fun
Martin
_______________________________________________
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: 
 >Anyone got the time? (From: Jack Miller <email@hidden>)

  • Prev by Date: Re: Anyone got the time?
  • Next by Date: Re: Problem getting position of desktop items
  • Previous by thread: Re: Anyone got the time?
  • Next by thread: OT - What is File IO (or I/O)?
  • Index(es):
    • Date
    • Thread