mdbergmann / Eloquent

Eloquent is a bible study tool for macOS
http://eloquent-bible-study.eu/
BSD 3-Clause "New" or "Revised" License
115 stars 22 forks source link

Add service to insert bible passage into text-documents #14

Open filipkemuel opened 8 years ago

filipkemuel commented 8 years ago

It would be really cool if it would be possible to create a service for the service-menu that could insert bible passages directly into a word-processor.

Especially if it was possible to insert the verses with some styling. Like this:

1 In the beginning God created the heavens and the earth. 2 And the earth was waste and void; and darkness was upon the face of the deep: and the Spirit of God moved upon the face of the waters. 3 And God said, Let there be light: and there was light. 4 And God saw the light, that it was good: and God divided the light from the darkness. 5 And God called the light Day, and the darkness he called Night. And there was evening and there was morning, one day. (Genesis 1:1-5)

At the moment I just copy/paste verses from Eloquent and then add the subscript styling afterwards. But It is quite time consuming. So a feature like this would really be a time saver.

Here are examples of "services" from other bible-software: http://www.catug.org/OldSite/articles/Widgets.html http://www.accordancebible.com/Accordance-Service https://community.logos.com/forums/t/30583.aspx

mdbergmann commented 8 years ago

I'll look into that.

Have you had a look at Automator?

mdbergmann commented 8 years ago

Services

filipkemuel commented 8 years ago

Yes.. Automator can be used to create the services.. but to me it seems that apps somehow needs to create some hooks that Automator can use.. At least I havent found a way to make automations with eloquent yet..

It might be possible with AppleScript.. But I just haven't been able to wrap my head around the syntax..

mdbergmann commented 8 years ago

Yeah, you could create an Automator script that will take a bible reference from the pasteboard, then you could record a script that will press:

But I must admit this is very limited. You can't (as far as I have tested) copy back the bible text to the pasteboard.