• 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: Calculate Sunrise, Sunset?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calculate Sunrise, Sunset?


  • Subject: Re: Calculate Sunrise, Sunset?
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 5 Feb 2004 17:12:41 -0800

On Feb 5, 2004, at 2:39 PM, Marconi wrote:

Can anyone steer me to where I can learn how to calculate local sunrise and sunset times with AS, given latitude and longitude?

This will be harder in AppleScript than it would be in other languages (say, Java) because it requires trigonometry, and AppleScript has no built-in trig functions.

There are dozens of these on the Web. You might start with

http://www.jgiesen.de/astro/astroJS/SunPositionCalculator.htm

Go to that page and choose View Source; the JavaScript to calculate sunrise and sunset is all there.

Chris
_______________________________________________
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.

  • Follow-Ups:
    • PhotoShop CS Apply Layer Style Drop Shadow
      • From: Jason Bourque <email@hidden>
    • Re: Calculate Sunrise, Sunset?
      • From: Paul Berkowitz <email@hidden>
    • Re: Calculate Sunrise, Sunset?
      • From: Walter Ian Kaye <email@hidden>
References: 
 >Calculate Sunrise, Sunset? (From: Marconi <email@hidden>)

  • Prev by Date: Re: Simple Tex Edit file saving problem
  • Next by Date: Re: Photoshop CS: Doesn't do 300 dpi?
  • Previous by thread: Re: Calculate Sunrise, Sunset?
  • Next by thread: Re: Calculate Sunrise, Sunset?
  • Index(es):
    • Date
    • Thread