EventScripts Icon

Location Helper

Location Helper is an agent which allows you to access the functionality of Core Location from AppleScript.

Location Helper has no interface, and runs in the background waiting for AppleScripts to ask it to do something, just like Apple's own System Events does.

Location Helper makes it easy to find geographic information about the location of a Mac via AppleScript. Location Helper also allows you to look up information from the Google Maps API, and contains all the functionality of JSON Helper to allow you parse and create JSON easily from AppleScript.

To see how to use Location Helper, check out these examples.

Why is Location Helper not a Scripting Addition?

A popular way to extend the functionality available to AppleScript is to make that functionality available in a Scripting Addition (or OSAX). Location Helper is not implemented as a Scripting Addition for a few reasons, the main one being that the interactions with Core Location are easier to manage from a single instance of a background application than from a Scripting Addition, however it is also the case that Apple appears to be actively discouraging the creation of new Scripting Additions. Finally it's currently not possible to distribute Scripting Additions via the App Store.

Agents do have one advantage over scripting additions, which is the commands they provide do not pollute the global namespace of AppleScript, instead they are available only within a script's tell statement that targets the agent.

Will it ever be a Scripting Addition?

No, Location Helper will only be available as an agent application.