Apple engineers can not make AppleScript dictionary I know. So, I make an external AppleScript dictionary for Apple's Maps.app.
All sample scripts and result images are in library's AppleScript dictionary. You can try every command by clicking "★Click Here to Open This Script" link in each sample codes.
--Environment
for macOS 10.10 or later (display point with latitude & lingitude command works right only macOS 10.14 or later.)
--Installation
Copy "map scripter.scpd" to ~/Library/Script Libraries folder. If the "Scirpt Libraries" folder does not exists, make the folder by yourself.
--Brosing AppleScript dictionary of this Library
Open "Library" window from Script Editor, then add this library to library list.
Then you can browse this library's dictionary with sample script and screenshots.
--Commands
display map
Display a specified location map with Apple's Maps.app. You can indicate the point by latitude & longitude or an address string.
display map route
Display a route from a location to other one. You can select the way of transport from walk / car / public.
display around here
Display shops or facilities available in Apple's Maps.app database. You can find them near from current location. The geo-location info is Wi-Fi station based. So, This command force power-on Wi-Fi Interface.
display point
Display shops or facilities available in Apple's Maps.app database. You can find them from current location. The geolocation information is latitude & longitude.
--Advertizement
Piyomaru software can provide such a automation workfow with easy to use interface.
Feel free to talk with uo about the Mac automation system development.
--Licence
Map Scripter Script Library is Copyright © 2019- Takaaki Naganoya <
email@hidden>
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software to use, copy, and distribute copies, including within commercial software, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.