Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add AppleScript support #39

Closed
Schlaubischlump opened this issue Dec 16, 2020 · 1 comment
Closed

[Feature] Add AppleScript support #39

Schlaubischlump opened this issue Dec 16, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@Schlaubischlump
Copy link
Owner

Allow the application to be controller via AppleScript. It should provide an abstraction for devices (or at least the currently selected device) and allow navigation, teleportation to a specific location. The menu items should be exposed to AppleScript as well.

@Schlaubischlump Schlaubischlump added the enhancement New feature or request label Dec 16, 2020
@Schlaubischlump Schlaubischlump changed the title Add AppleScript support [Feature] Add AppleScript support Jul 6, 2021
@Schlaubischlump
Copy link
Owner Author

Schlaubischlump commented May 6, 2022

Remote controlling the App UI is still not possible, but basic support for headless interaction has been added.

Coordinate Suite

methods:
  • route from: {lat, lon} to: {lat, lon}: {{lat1, lon1}, {lat2, lon2}, …}

Map Suite

window: class

attributes:
  • selected device: device (r/w)
  • map: Map (or missing value if no selection)
  • move type: enum (r/w) (walk, drive, cycle)
  • map type: enum (r/w) (explore, satellite, hybrid)
  • speed: real (r/w) (in km/h)
  • sidebar is collapsed (r/w): boolean
    - [ ] request speed change (show ui and return new speed value to apple script. Do not update the UI!)

map: class

attributes:
  • heading: real (r/w)
  • autofocus: boolean (r/w)
  • autoreverse: boolean (r/w)
  • automove: boolean (r/w)
  • location: {lat, lon} (r/w) (do not ask for user input)
methods:
  • follow route: {{lat1, lon1}, {lat2, lon2}, …} (follow an arbitrary route. You can read a GPX file coordinates from the GPX Suite)
  • reset location: boolean
  • request location change to: {lat, lon} (ask the user if he / she wants to teleport or navigate. 'To' is optional. If it is not set, show the coordinate selection and return the result to applescript ?)
  • zoom direction: enum (in, out)
  • move direction: enum (up, down, left, right)

@Schlaubischlump Schlaubischlump added this to the v1.0.0 milestone Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant