Workaround: "Replace With Passage" In the New Pages 5.0

Page 1 of 1 (14 items)
This post has 13 Replies | 3 Followers

Posts 1505
Forum MVP
Levi Durfey | Forum Activity | Posted: Mon, Oct 28 2013 3:53 PM

For you Mac users, I have developed a workaround to get the Logos service, “Replace with Passage” to work with the new Pages 5.0.

First, you need to have the app Launchbar (http://www.obdev.at/products/launchbar/index.html). It will cost you $35, but there’s a trial if you want to test this workaround. You might also get this to work get this to work with a similar app like Alfred or Quicksilver.

A. Make an Automator Service.
1. Launch “Automator” on your Mac.
2. Create a new service.
3. Change “Service receives text input” to “Service receives no import”
4. Find “Run Applescript” in the left column and drag to the main panel.
5. Copy and Paste the following script into applescript panel (delete what’s there first):

tell application "System Events" to keystroke "l" using {control down, command down, option down}
delay 0.1
tell application "System Events" to keystroke "l" using {shift down, control down, command down, option down}
delay 0.15
tell application "System Events" to keystroke "c" using {shift down, command down}

6. Save the service with a name that makes sense to you. I choose “Insert Bible Passage”

B. Assign Keyboard Shortcuts
1. Open "System Preferences”
2. Click on “Keyboard”
3. Click on “Shortcuts”
4. Find “Replace with Passage” and make the shortcut Shift-Control-Option-Command-L(you can make it anything you want, just change the automator script to match it; it’s the second keystroke in the script)
5. Find “Send to Launchbar” and make the shortcut Control-Option-Command-L.
6. Find the “Insert Bible Passage” (or whatever you named it) and make it the shortcut of your choice. I choose control-option-command-B.

That’s it. It can paste a Bible passage into Pages 5.0 (or any text processor) in less than 1/2 second. Simply select the Bible reference and press the shortcut key for “Insert Bible Passage"

Here's a quick video of it in action (look at the top center to see Launchbar in action—it's very quick):

Click here to play this video

Posts 12
Stan Lubeck | Forum Activity | Replied: Mon, Nov 4 2013 9:24 AM

I love that you have a workaround for this... I did everything you suggested, but when I run it, for some reason it takes me to a color pallet... which is also what it does when I hit the "run" button for the script while it is in automator.  I must be doing something wrong, but not sure what it is... Thanks,

Stan

Posts 1505
Forum MVP
Levi Durfey | Forum Activity | Replied: Mon, Nov 4 2013 9:31 AM

Try increasing your delays to .5, and see if that works. Then slowly reduce them until it doesn't work and use the last usable delay. After a few days of testing, I have my delays set to .25.

Posts 1505
Forum MVP
Levi Durfey | Forum Activity | Replied: Mon, Nov 4 2013 9:39 AM

Couple other possibilities;

1. Make sure that you have "Send to Launchbar" set to control-option-command-L in the keyboard system preferences.

2. Make sure that you have the reference selected in Pages.

Try stepping through the commands manually to make sure they all work correctly. i.e., type in a reference in Pages; select it; press control-option-command l; then press shift-control-option-command l; then shift-command c.

Posts 70
Hugh DeLong | Forum Activity | Replied: Thu, Jan 2 2014 11:43 AM

Followed directions and it works in Pages 5 ... but does not work in LibreOffice :-(   It shows up when you look at 'services' in Libre...  It flashes the LibreOffice name in the bar.. but nothing happens. Was so hoping it would work in this.  Any suggestions?

Posts 1505
Forum MVP
Levi Durfey | Forum Activity | Replied: Thu, Jan 2 2014 12:16 PM

I don't use LibreOffice, but from what I can tell on the web, the Mac Services doesn't work with it. See here, for example: http://ask.libreoffice.org/en/question/18504/is-it-possible-to-access-mac-os-x-services-of-another-application-from-within-libreoffice/

Sorry about that.

PS: I did install LibreOffice and experienced the same problem you are describing.

Posts 70
Hugh DeLong | Forum Activity | Replied: Thu, Jan 2 2014 1:10 PM

Thanks - much appreciated. 

Posts 70
Hugh DeLong | Forum Activity | Replied: Thu, Jan 2 2014 1:11 PM

I did notice that LibreOffice said they don't support services  YET -- there is hope  :-)

Posts 70
Hugh DeLong | Forum Activity | Replied: Thu, Jan 2 2014 1:12 PM

I see that LibreOffice did say they don't use services --- YET.   There is hope  :-)

Posts 5
Steve Harper | Forum Activity | Replied: Tue, Apr 1 2014 9:27 PM

At long last! Text Services works with Pages as of today Version 5.2 (Build 1860)

Hallelujah!

Posts 87
Rino M. Dattilo | Forum Activity | Replied: Wed, Oct 28 2015 12:56 PM

Integ,

I understand the scripts part, but how does LB know what to do? 

Can I have different scripts for different Bible translations? 

Just trying to understand all this before I go at it. I did get LB, looks powerful, just a learning curve.

Posts 1505
Forum MVP
Levi Durfey | Forum Activity | Replied: Wed, Oct 28 2015 1:12 PM

Here's what's happening:

Step 1: The "Send to Launchbar" service picks up whatever is selected (a file, text, in this case, a reference, e.g., "Heb. 13:5) and sends it to the Launchbar app.

Step 2: Launchbar can run services from other apps within itself. Think of it having a little text editor/clipboard inside. So it runs Logos' "Replace with Passage" service on it's own text editor inside, unseen to you. That produces the text of Heb. 13:5.

Step 3: Shift-Command C is the Launchbar command for "paste in another app." Launchbar pastes whatever is on it's clipboard into the frontmost app.

You won't need scripts for different Bibles because all what's doing is running Logos' "Replace with Passage" service for you. Think of it as a middle man, standing between Logos and your word processor. It runs the Logos' service within itself and pastes it as plain text in your word processor.

Hope this helps;  I'll help more however I can.

Posts 87
Rino M. Dattilo | Forum Activity | Replied: Wed, Oct 28 2015 1:54 PM

OK, I think I am getting it. My question though is this. I default to ESV - there is no way of telling the service to fetch NIV? 

Posts 1505
Forum MVP
Levi Durfey | Forum Activity | Replied: Wed, Oct 28 2015 2:50 PM

Right, it's only using the "Replace with Passage" service. The version used is your top prioritized Bible in Logos. 

Page 1 of 1 (14 items) | RSS