Re: Anyone got the time?
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.