• 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: Paul Berkowitz <email@hidden>
  • Date: Thu, 05 Feb 2004 18:37:06 -0800

On 2/5/04 5:12 PM, "Chris Espinosa" <email@hidden> wrote:

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

The Satimage scripting addition has a number of trigonometric functions -
probably all you need.

http://www.satimage.fr/software/en/downloads_osaxen.html

--
Paul Berkowitz
_______________________________________________
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: 
 >Re: Calculate Sunrise, Sunset? (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Calculate Sunrise, Sunset?
  • Next by Date: Re: Photoshop CS: Doesn't do 300 dpi?
  • Previous by thread: Re: Calculate Sunrise, Sunset?
  • Next by thread: PhotoShop CS Apply Layer Style Drop Shadow
  • Index(es):
    • Date
    • Thread