Saturday, December 16, 2017

#26 2017-09-19 06:58:05 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5200

Re: Local time for any latitude/longitude location

Nigel Garvey wrote:

Both properties work here and return identical dictionaries. Is there any particular advantage to either?



I'm not sure why I used components, to be honest -- I'm pretty sure I originally used addressComponents, which I saw in the docs, but must have changed it later (that code was removed and reinstated a couple of times).

However I just looked up the header file and the entry for addressComponents has the comment: Deprecated in favor of components, so I'll put it down to subliminal something-or-other smile

a couple of lines added to percent-encode any diacriticals in the address for the URL query:



Thanks!


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)