• 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
Stop a script at a certain time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stop a script at a certain time?


  • Subject: Stop a script at a certain time?
  • From: Aaron Rosenblum <email@hidden>
  • Date: Mon, 20 Dec 2004 11:50:40 -0500

Hey all,

Is there an easy way to convert from the time in total seconds (as returned by "time of (current date)") to a user readable "military" or "AM/PM" time string and back in AS? I have been looking around and can't seem to find any such functions, but I thought I'd ask.

ie

0600 hours would be 21600 seconds and 21600 seconds would be 0600 hours.

What I'd really like to do is compare two times without the date so that I can check it with my script and tell it to quit running if it gets to be a certain time. My thought would be to store the time in total seconds and then compare them with LT,GT operators, but I'd like to be able to use something more readable for the user so they can specify time in AM/PM or even military...

any ideas welcome.

thanks
Aaron

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Stop a script at a certain time?
      • From: Michelle Steiner <email@hidden>
    • Re: Stop a script at a certain time?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Problem Compiling
  • Next by Date: Re: Stop a script at a certain time?
  • Previous by thread: Re: Test for Multiple Users Logged In
  • Next by thread: Re: Stop a script at a certain time?
  • Index(es):
    • Date
    • Thread