Automated script for loading custom layout with chosen verse(s) for Logos 4 Mac

I read a short while ago (when I was looking for the same functionality myself) that there was no way to have Logos 4 open a custom layout with chosen verse(s) by typing the verse(s) into the 'Go' box.
To do it you would have to either use 'Go' to load the standard layout and then customise it each time, or have a pre-saved layout you manually load and then type the verse(s) in each of the entry fields.
I have used Applescript to make an automated solution for this. You can see it in action in this screencast.
http://dl.dropbox.com/u/2191644/LogosGo.mov
To achieve this — because Logos 4 Mac does not support full OS X object scripting — I tricked it using UI (user interface) scripting which essentially acts as an automated user. It works (as you can see in the screencast) the only requirement is that the script is specific to the Logos 4 Mac screen layout. I have three panes: PG & EG; Commentaries; Bibles. Also there needs to be a custom saved layout called "My Layout".
By changing settings affected by layout of resources the script can be adjusted to suit.
Not sure how much interest there would be from people for this - so I decided to put it up as demo screencast to gauge interest first.
If you are interested drop a reply to this posting and I can make it available (free naturally) to people.
-- Patrick
"I want to know all God's thoughts; the rest are just details." - Albert Einstein
Comments
-
Looks pretty cool Patrick!
macOS, iOS & iPadOS |Logs| Install
Choose Truth Over Tribe | Become a Joyful Outsider!0 -
Thanks, if you want to have a go at it here is the self running script [:)] just download, unzip, have Logos running and be on the home screen and then run script application by double clicking it.
http://dl.dropbox.com/u/2191644/LogosGo.zip
Caveats for the script as coded:
- There must be a custom layout called *exactly* "My Layout"
- The layout should have three panes a) a Passage Guide b) Commentaries and other resouces c) Bibles
- The commentary shown in facing tab in pane should ideally be a series
- The Bible translations and Commentary should be in the same 'Link Set'
If you want to change for your own layout (ideally use same name) and/or have a look at script source it is in the file:
- Unzip file
- Right click (inspect) LogosGo.app file and choose 'Show Package Contents'
- Script source is in - Contents | Resources | Scripts | main.scpt
The 'tricky' part, which is required because Logos 4 does not have built-in support for object scripting, is that I have to refer to text entry field as 'field 1' etc.
If anyone would like to use it happy to give them pointers on what to do to adjust script for their environment (panes etc.)
"I want to know all God's thoughts; the rest are just details." - Albert Einstein
0 -
Patrick,
I'm interested.
Susan Murphy
swmurphy@samford.edu0 -
Susan - you should remove your email address (or at least disguise) it. Automated "Spam bots" can pick up your address and begin flooding you with hundreds of spam emails.
Also, there is no need for your email here. Patrick included the file as a link earlier.
macOS, iOS & iPadOS |Logs| Install
Choose Truth Over Tribe | Become a Joyful Outsider!0 -
alabama24 said:
Susan - you should remove your email address (or at least disguise) it. Automated "Spam bots" can pick up your address and begin flooding you with hundreds of spam emails.
Also, there is no need for your email here. Patrick included the file as a link earlier.
I am going to write up some more detailed instructions with some screenshots and post as PDF. The main thing which can trip up the script is the selecting of the input fields in Logos 4 Mac. I have to refer to "text field 1" instead of being able to say "CommandEntryTextField".
Anyway will upload document. Interested to know if script works successfully on other machines.
If it is successful perhaps it could go into Logos wiki, don't know who to approach about that though...
"I want to know all God's thoughts; the rest are just details." - Albert Einstein
0 -
Patrick S. said:
If it is successful perhaps it could go into Logos wiki, don't know who to approach about that though...
Observation: Files forum has many files posted for Logos community use, including Free Tool: QuickLink (for use in Logos 4 Windows) that is linked from wiki page => http://wiki.logos.com/Tools_and_Files_supplied_by_users
Wiki has template examples => wiki Template1 - many comments and => wiki Template2 - fewer comments
Wiki pages have Edit and History buttons (upper right). History for many wiki pages shows contributions by many Logos users and employees so current content is a composite of many edits. Also, history has option to compare edit revisions; url for comparison includes before and after revision number so can compare any two revisions for a wiki page.
Keep Smiling [:)]
0