Forums/myPhoneDesktop Integration

LaunchBar integration plug-in

Alex Krivov
posted this on March 08, 2010 04:05

Plug-in/script to integrate myPhoneDesktop with LaunchBar

  1. Copy attached script to the LaunchBar Actions Folder ("~/Library/Application Support/LaunchBar/Actions")
  2. You can rename script to fit your need, however, LaunchBar will learn short abbreviations used to launch this script
  3. Either restart LaunchBar or update its Index via LaunchBar menu Index | Update Index
  4. Now you can select content using LaunchBar navigation or press command-shift-F1 to send content to LaunchBar
  5. When content is in LaunchBar press tab, type "Send to myPhoneDesktop" and hit Enter.

Script support text, urls, addresses, phone numbers, and image files (JPEG, PNG, GIF). Scrip will also check if myPhoneDesktop is running and will check if "Enable access for assistive devices" option is turned ON in System Preferences | Universal Access. "Enable access for assistive devices" is required for UI scripting.

Note, this plug-in works on the following platforms:

  • Mac OS X Mountain Lion
  • Mac OS X Snow Leopard (64bit Intel platform)
  • Mac OS X Leopard (64bit Intel platform)

Feel free to improve or extend this script.

Version Information: 2.0, released 03/03/2013

 

Comments

User photo
Matthias

this makes myphone really usefull to me!

June 16, 2010 08:32
User photo
Matthias

i use this script mainly for tel. number on webpages - which leads into the problem, that most website use symbols like "+","/"," -" and myphone does not recognize the text as tel. number. So i made a copy of the original script - renamed it (Send tel to myphone desktop) and added some extra lines at the beginning of the script – just under on handle_string(theString). I did attach my script...

[code]

set AppleScript's text item delimiters to "!"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to "+"

set theString to (text items of theString)

set AppleScript's text item delimiters to "00"

set theString to (theString as string)

 

set AppleScript's text item delimiters to "-"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to "–"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to "?"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to "/"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to ":"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to ";"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to "(0)"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)

 

set AppleScript's text item delimiters to "#"

set theString to (text items of theString)

set AppleScript's text item delimiters to ""

set theString to (theString as string)


[/code]

 

 

matthias

June 16, 2010 09:22
User photo
Slava Sukhomlinov

as I understood, it does not work on OS X Lion. Are you going to make it work?

March 27, 2012 15:59
User photo
Matthias

works fine for me on Lion...

March 28, 2012 15:07
Topic is closed for comments