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

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):
Comments
-
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
0 -
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.
0 -
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.
0 -
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?
0 -
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.
0 -
Thanks - much appreciated.
0 -
I did notice that LibreOffice said they don't support services YET -- there is hope :-)
0 -
I see that LibreOffice did say they don't use services --- YET. There is hope :-)
0 -
At long last! Text Services works with Pages as of today Version 5.2 (Build 1860)
Hallelujah!
0 -
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.
Pastor, SOUTHCOAST Church - Goleta, CA
0 -
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.
0 -
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?
Pastor, SOUTHCOAST Church - Goleta, CA
0 -
Right, it's only using the "Replace with Passage" service. The version used is your top prioritized Bible in Logos.
0