Help with workflows

I'm interested in making a workflow that can open specific resources using the reference put into the input box when starting the workflow. For example, I'd love to be able to have one of the steps be to check Carson and Beale's Commentary on the NT use of the OT. I can put in a link to that book (by copying the location using the three-dot menu for the reference, and then using that as a link) but it will be tagged to whatever location I had in the shortcut rather than the target for the workflow.
I can also copy searches. For example:
searches references I've tagged with "Sermons" for John 3:16. It's just always John 3:16. If I could grab the content of the workflow input box and somehow use that in my own searches, it would be extremely helpful. It would then be easier to specifically get what I'm after.
Is there an easy way to do this?
Thanks in advance,
Mike
Comments
-
bump 6
Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."
0 -
Thanks MJ - by "bump 6" are you helping the post stay current? I guess I'm not familiar with that terminology!
0 -
Yes, bumping keeps the post current. The 6 is simply to make it past the spam detector.
Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."
0 -
Since no one has provided an answer and I haven't tried to solve the problem, have you played with opening to an inline search or using a multiview window?
Orthodox Bishop Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."; Orthodox proverb: "We know where the Church is, we do not know where it is not."
0 -
The only way I can think of to get the Commentary on the New Testament Use of the Old Testament into the work flow so it will move with the workflow text is to prioritize the Commentary on the New Testament use of the Old Testament with your other prioritized commentaries in your library so it would show up in the commentary step of your workflow. I'm hoping there is a better way that someone else comes along with.
0 -
MJ - to your questions I haven't -- although a super-quick test does seem to show multi-view may work for a versified reference.
I have two thoughts with this approach, though:
1. I'd like it to be more generic....i.e. the NT use of the Old commentary isn't necessarily the only book I'd like to be able to do this with. I have other non-versified references as well that I'd love to be able to open with a search for the specific verse using the workflow. As above, I can specify the verse outright (as in the search in my first post) but this is rather inflexible.
2. The multi-view approach does have some promise for versified references -- although I'd be a little more intensive if I had several books I were trying to do this with. I'd probably have to manually uncheck/recheck references to have enough screen real estate to make this useful. If I wanted to try this approach in my normal workflow with five different references, for example, I'd have the Bible +5 or a 6-way split, unless most of these resources were somehow set up yet unchecked. Normally I use multi-view for other languages -- e.g. BHS, NA, UBS, and the LXX.
I appreciate the thoughts! Keep them coming! I'd *love* for the workflow process to be able to be a more-robust checklist for me on Bible-study or sermon prep...it just doesn't quite feel there yet.
0 -
Mike,
I know most users fear the ComAPI. However, this is the easiest solution for a generic approach. With a little creativity, a lot can be accomplished. Here's an example of how I approached the issue in AutoHotkey. It can be easily translated into any other language.
1) Get the running Logos Instance
2) Attach EventHandling for the Application
3) Handle the Panel Opened Event
4) Loop all Open Panels and find the Workflow (only one should be open)
5) Strip the Reference
6) Create a Navigation Request
7) Parse the reference as a LogosDataTypeReference
8) Set the Navigation Request's Reference to the one you Parsed in step 7
9) Navigate the Opened Panel
10) break out of the loop to exit the EventHandler
CODE
#SingleInstance Force
#Persistent
;Get the running Logos Instance
app := ComObjActive("LogosBibleSoftware.Application")
;Attach EventHandling for the Application
ComObjConnect(app,"app_")
return
;Handle the Panel Opened Event
app_PanelOpened(Panel){
global app
for p in app.GetOpenPanels
{
if (p.Kind = "Workflow")
{
title := p.Title
s := StrSplit(title,"|")
ref := s[2]
nr := app.CreateNavigationRequest
ref := app.DataTypes.GetDataType("Bible").ParseReference(ref)
nr.Reference := ref
Panel.navigate(nr)
break
}
}
}0 -
PJ - this is helpful! I wish the functionality were a little more straightforward, but I can work with this some.
I was able to find the documentation for the Logos COM API (which I didn't know was available) at https://wiki.logos.com/Logos_4_COM_API.
That said (and I haven't researched this much), off the top of your head do you know how to insert a script call, such as the one you've written here, as something to be run as a step in the workflow? Adding a step in the workflow seems to be pretty limited to text or pre-defined sections of already existing guides. Is there an easy way to link running the script to a shortcut?
0 -
Mike Hogue said:
off the top of your head do you know how to insert a script call, such as the one you've written here, as something to be run as a step in the workflow?
I think it would be somehow possible to insert a hyperlink into a Text Field to execute a script from the Workflow. I'll take a look.
Through many tests with the ComAPI I have found that a Script that monitors in the background is much better than a link from a Workflow.
I'm interested in what you're trying to do and how it fits into the workflow process. Maybe I already have a script that does exactly that. Which OS do you use Win or Mac.
0 -
Following is a sample on how to go about to impliment this for any Uri in Logos using the logos4 protocol. The sam elogic can be used for any kind of uri.
Hope this helps:
/*
This is to create a Search Link from a Workflow to do a specific Search with the Workflow's Reference
Just Replace the UriTemaplate's value with your logos4 uri
Then Copy the Reference part exactly to the WhatToReplaceWithTheReference variable
Add a File protocol link in your Workflow
file:///C:/ThisScriptsTitle.ahk
*/
#SingleInstance
app := ComObjActive("LogosBibleSoftware.Application")
UriTemplate := "logos4:Search;kind=BibleSearch;q=Jesus;match=stem;exactref=true;in=raw:Single$7CResourceId$3DLLS:1.0.630;references=bible$2Bafr1983.64.3"
WhatToReplaceWithTheReference := "bible$2Bafr1983.64.3" ;The Reference part in the above uri
title := Panel.Title
s := StrSplit(title,"|")
ref := s[2]
ref := app.DataTypes.GetDataType("Bible").ParseReference(ref)
newRef := ref.Render("long")
StringReplace,newRef,newRef,title,1
newRef := SaveRefAsKey(newRef)
StringReplace, uri, UriTemplate, WhatToReplaceWithTheReference, %newRef%
StringReplace,uri, uri,%A_Space%,$2B
app.executeuri(uri)
SaveRefAsKey(ref){
global app
LDTR := app.DataTypes.GetDataType("Bible").ParseReference(ref)
rangeStart := LDTR.RangeStart.Render("long")
rangeEnd := LDTR.RangeEnd.Render("long")
StringReplace, rangeStart, rangeStart,:,.,All
StringReplace, rangeStart, rangeStart,Genesis,bible.1,All
StringReplace, rangeStart, rangeStart,Exodus,bible.2,All
StringReplace, rangeStart, rangeStart,Leviticus,bible.3,All
StringReplace, rangeStart, rangeStart,Numbers,bible.4,All
StringReplace, rangeStart, rangeStart,Deuteronomy,bible.5,All
StringReplace, rangeStart, rangeStart,Joshua,bible.6,All
StringReplace, rangeStart, rangeStart,Judges,bible.7,All
StringReplace, rangeStart, rangeStart,Ruth,bible.8,All
StringReplace, rangeStart, rangeStart,1 Samuel,bible.9,All
StringReplace, rangeStart, rangeStart,2 Samuel,bible.10,All
StringReplace, rangeStart, rangeStart,1 Kings,bible.11,All
StringReplace, rangeStart, rangeStart,2 Kings,bible.12,All
StringReplace, rangeStart, rangeStart,1 Chronicles,bible.13,All
StringReplace, rangeStart, rangeStart,2 Chronicles,bible.14,All
StringReplace, rangeStart, rangeStart,Ezra,bible.15,All
StringReplace, rangeStart, rangeStart,Nehemiah,bible.16,All
StringReplace, rangeStart, rangeStart,Esther,bible.17,All
StringReplace, rangeStart, rangeStart,Job,bible.18,All
StringReplace, rangeStart, rangeStart,Psalm,bible.19,All
StringReplace, rangeStart, rangeStart,Proverbs,bible.20,All
StringReplace, rangeStart, rangeStart,Ecclesiastes,bible.21,All
StringReplace, rangeStart, rangeStart,Song of Solomon,bible.22,All
StringReplace, rangeStart, rangeStart,Isaiah,bible.23,All
StringReplace, rangeStart, rangeStart,Jeremiah,bible.24,All
StringReplace, rangeStart, rangeStart,Lamentations,bible.25,All
StringReplace, rangeStart, rangeStart,Ezekiel,bible.26,All
StringReplace, rangeStart, rangeStart,Daniel,bible.27,All
StringReplace, rangeStart, rangeStart,Hosea,bible.28,All
StringReplace, rangeStart, rangeStart,Joel,bible.29,All
StringReplace, rangeStart, rangeStart,Amos,bible.30,All
StringReplace, rangeStart, rangeStart,Obadiah,bible.31,All
StringReplace, rangeStart, rangeStart,Jonah,bible.32,All
StringReplace, rangeStart, rangeStart,Micah,bible.33,All
StringReplace, rangeStart, rangeStart,Nahum,bible.34,All
StringReplace, rangeStart, rangeStart,Habakkuk,bible.35,All
StringReplace, rangeStart, rangeStart,Zephaniah,bible.36,All
StringReplace, rangeStart, rangeStart,Haggai,bible.37,All
StringReplace, rangeStart, rangeStart,Zechariah,bible.38,All
StringReplace, rangeStart, rangeStart,Malachi,bible.39,All
StringReplace, rangeStart, rangeStart,Tobit,bible.40,All
StringReplace, rangeStart, rangeStart,Judith,bible.41,All
StringReplace, rangeStart, rangeStart,Additions to Esther,bible.42,All
StringReplace, rangeStart, rangeStart,Wisdom of Solomon,bible.43,All
StringReplace, rangeStart, rangeStart,Sirach,bible.44,All
StringReplace, rangeStart, rangeStart,Baruch,bible.45,All
StringReplace, rangeStart, rangeStart,Letter of Jeremiah,bible.46,All
StringReplace, rangeStart, rangeStart,Song of Three Youths,bible.47,All
StringReplace, rangeStart, rangeStart,Susanna,bible.48,All
StringReplace, rangeStart, rangeStart,Bel and the Dragon,bible.49,All
StringReplace, rangeStart, rangeStart,1 Maccabees,bible.50,All
StringReplace, rangeStart, rangeStart,2 Maccabees,bible.51,All
StringReplace, rangeStart, rangeStart,1 Esdras,bible.52,All
StringReplace, rangeStart, rangeStart,Prayer of Manasseh,bible.53,All
StringReplace, rangeStart, rangeStart,Additional Psalm,bible.54,All
StringReplace, rangeStart, rangeStart,3 Maccabees,bible.55,All
StringReplace, rangeStart, rangeStart,2 Esdras,bible.56,All
StringReplace, rangeStart, rangeStart,4 Maccabees,bible.57,All
StringReplace, rangeStart, rangeStart,Ode,bible.58,All
StringReplace, rangeStart, rangeStart,Psalms of Solomon,bible.59,All
StringReplace, rangeStart, rangeStart,Epistle to the Laodiceans,bible.60,All
StringReplace, rangeStart, rangeStart,Matthew,bible.61,All
StringReplace, rangeStart, rangeStart,Mark,bible.62,All
StringReplace, rangeStart, rangeStart,Luke,bible.63,All
StringReplace, rangeStart, rangeStart,John,bible.64,All
StringReplace, rangeStart, rangeStart,Acts,bible.65,All
StringReplace, rangeStart, rangeStart,Romans,bible.66,All
StringReplace, rangeStart, rangeStart,1 Corinthians,bible.67,All
StringReplace, rangeStart, rangeStart,2 Corinthians,bible.68,All
StringReplace, rangeStart, rangeStart,Galatians,bible.69,All
StringReplace, rangeStart, rangeStart,Ephesians,bible.70,All
StringReplace, rangeStart, rangeStart,Philippians,bible.71,All
StringReplace, rangeStart, rangeStart,Colossians,bible.72,All
StringReplace, rangeStart, rangeStart,1 Thessalonians,bible.73,All
StringReplace, rangeStart, rangeStart,2 Thessalonians,bible.74,All
StringReplace, rangeStart, rangeStart,1 Timothy,bible.75,All
StringReplace, rangeStart, rangeStart,2 Timothy,bible.76,All
StringReplace, rangeStart, rangeStart,Titus,bible.77,All
StringReplace, rangeStart, rangeStart,Philemon,bible.78,All
StringReplace, rangeStart, rangeStart,Hebrews,bible.79,All
StringReplace, rangeStart, rangeStart,James,bible.80,All
StringReplace, rangeStart, rangeStart,1 Peter,bible