Jump to content

AppleScript behavior change for fetching verses


Darin Franklin

Recommended Posts

Starting with Accordance 13.1.1, the behavior has changed for the AppleScript command that fetches verses.  Run this in Script Editor to reproduce the problem.

 

tell application "Accordance" to «event AccdTxRf» {"KJVS", "Gen-Mal", false}

 

In 13.0.5 and earlier, Accordance would return only the first 500 verses of the range: Gen 1:1-Gen 20:4.

 

In 13.1.1 and 13.1.2, Accordance returns the entire range, which is 23,261 verses: Gen 1:1-Mal 4:6.

 

This creates a problem in my RegexForAccordance app, which expects the 500 verse limit.  I can fix my app to work with the new behavior, but I am wondering if this change in Accordance was intentional.

 

Also, the following command makes Accordance hang with the Spinning Beach Ball of Doom for about 100 seconds, but then it recovers and returns all of the verses.

 


tell application "Accordance" to «event AccdTxRf» {"NRSVS", "Gen-Rev", false}


 



Doing the same thing for KJVS also causes some spinning, but only for about 10 seconds.

 

Link to comment
Share on other sites

My money's on that this was an unintended consequence of some change.

 

It is problematic to retrieve such a large returned result.

 

But, until it's fixed, it's hardly a problem. No one is searching for that range.

Link to comment
Share on other sites

Here is another difference.

 

In 13.0.5 and earlier, Accordance would return the first 500 verses of a comma-separated list of books.


tell application "Accordance" to «event AccdTxRf» {"KJVS", "Titus, Phlm, Heb, Jas, 1Pet, 2Pet", false}



 

Search: Titus, Phlm, Heb, Jas, 1Pet, 2Pet

500 verses: Titus 1:1 - 1 Pet 1:18.

 

In 13.1.2, it stops at the end of the book which puts the verse count over 500.

 

Here are some verse counts for reference.

Titus 46

Phlm 25

Heb 303

Jas 108

1Pet 105

2Pet 61

 

Search: Titus, Phlm, Heb, Jas, 1Pet, 2Pet

587 verses: Titus, Phlm, Heb, Jas, 1Pet

 

Search: Phlm, Heb, Jas, 1Pet, 2Pet, Titus

541 verses: Phlm, Heb, Jas, 1Pet

 

Search: Heb, Jas, 1Pet, 2Pet, Titus, Phlm

516 verses: Heb, Jas, 1Pet

 

Search: Phlm, Titus, 2Pet, 1Pet, Jas, Heb

648 verses: Phlm, Titus, 2Pet, 1Pet, Jas, Heb

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...