joelekstrom / fastmate

A native Fastmail-wrapper for Mac.
MIT License
193 stars 12 forks source link

Add Applescript support #35

Closed mdbraber closed 2 years ago

mdbraber commented 3 years ago

In my forked version (https://github.com/joelekstrom/fastmate/issues/14) I previously integrated Applescript support to return current URL and title. As there's now also to Copy Link / Copy Fastmate URL there might be a better way. Would you be willing to include Applescript support in the main version? Some pointers might be in my (probably crudely done) forked version

joelekstrom commented 3 years ago

As with the other feature, I'd be happy to include it if you could provide a separated PR for it! I may not take the time to investigate and build a solution myself (since I don't personally have use for AppleScript), but I really appreciate any contributions, even if they could be considered crude. 😄

mdbraber commented 2 years ago

I have a PR ready to submit in the next few days enabling three simple commands: get current URL, get current title, execute arbitrary javascript: https://github.com/joelekstrom/fastmate/pull/81

joelekstrom commented 2 years ago

Basic Applescript support merged in #81. thanks @mdbraber. If you feel like it, feel free to add some examples to the readme too!