October 20, 2012

Toggle Flex/Exact Search in Accordance

Accordance power user Rubén Gomez had the great idea of making a script to enable Flex Search in Accordance. Flex Search is a new powerful search feature in Accordance to provide new options for searching.
I'm posting here my version of a script that toggles between Flex Search and Exact Search in the Preferences. It is scripting the user interface of the Preferences pane in Accordance 10, so you can actually see the script doing it's work. As much as anything, this script may give some of you some help getting started at scripting the preferences yourself:


-- This script will toggle Flex/Exact search in Accordance preferences
tell application "Accordance" to activate
tell application "System Events"
tell process "acord"
click menu item "Preferences…" of menu 1 of menu bar item "Accordance" of menu bar 1
delay 0.2
-- select "Search Tabs" panel
set selected of row 12 of outline 1 of scroll area 1 of window "Preferences" to true
delay 0.2
-- toggle a checkbox to enable the "OK" button
-- necessary because clicking radio button does not enable "OK" button
click checkbox 1 of window "Preferences"
click checkbox 1 of window "Preferences"
set v to value of radio button "Flex Search" of radio group 1 of window "Preferences"
if v = 0 then
-- click to appropriate radio button
click radio button "Flex Search" of radio group 1 of window "Preferences"
else
click radio button "Exact Search" of radio group 1 of window "Preferences"
end if
delay 0.2 -- make this delay 1 or 2 seconds if you want longer to see what was switched.
-- dismiss Preferences
click button "OK" of window "Preferences"
end tell
end tell

October 05, 2012

Accordance Services Demo Tutorial

Here is a video giving a demonstration of the Accordance Services collection available as part of the Accordance Automation Script Library for Accordance version 10.  The Services offer a large spectrum of possibilities, so seeing the video will help you get your head around just what is possible.

Be sure you've also seen the Installation Tutorial. More about Accordance Automation is here.

October 01, 2012

Accordance Services Installation Video

Here is a short video demonstrating the installation of the Accordance Script Library and the Accordance Services.

September 30, 2012

Using Accordance Automation

I hope to post some video tutorials soon for the newly added Accordance Automation Script Library on using the:

  • Services
  • Quicksilver Actions
  • Word Plugin

Let me know if installation has had any problems. One issue, is that the need for some to allow Access for Assistive Devices got left out of the new documentation.

Go to System Preferences, the Accessibility panel. Make sure you have selected "Enable access for Assistive Devices".
This allows the script library to select menu items and put text in search boxes in Accordance.

September 29, 2012

Accordance Automation

Accordance Inter-application Automation is back.

Available the new version of the Accordance Script Library and OS X Services, as well as new Quicksilver Actions and the addition of a Microsoft Word Plugin—all rewritten to work with OS X 10.7+ and Accordance 10.

Find the Accordance Automation Tools in the Downloads section of the Macintosh Biblioblog.

You use Accordance and you love it. What could be better? Instant access to Accordance Texts and Tools from whatever app you're using on your Mac.


"What's that? You're reading a PDF journal article or a web page about the proximity of Shechem to a mountain pass? Just highlight shechem and in one keystroke or menu selection you can have Accordance to the front, displaying Shechem in a Map window. I'm not kidding you."


"Or, want to quickly, insert the text of Psalm 20 into your current document, from the translation of your choosing? It's all right at your fingertips, and never taking your fingers off the keyboard if you like. Such a workflow becomes pure muscle memory."


These tools allow you to:



A. instantly jump to Accordance from any other app running a search in any module type you want, using the current text selection or a search text you enter.

    or

B. remain where you are in your current application and paste in a full text instantly, from whichever text-module you want, using a text selection or search text you enter, without ever bringing Accordance to the front. (This is similar to the Accordance Widget, but with seamless integration.)

Other options include speaking text, copying it to the clipboard, and showing the text in a quick display.

These functions are initiated by quick key combos, or menu items, or contextual menu items. Your choice. The Services are a built-in automation tool in Mac OS X. The Services menu is found in the app menu, or in a contextual menu. Further, you can assign global or app-specific keyboard combos to activate them.  (The functions of the Service are duplicated by the Quicksilver Actions for those who use Quicksilver.)

Download the package, and read the documentation in the ReadMe files, with screenshots, to get more information of the magic that is possible.