• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Contacts Plugin AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Contacts Plugin AppleScript


  • Subject: Contacts Plugin AppleScript
  • From: Bill Vlahos <email@hidden>
  • Date: Sat, 11 Oct 2014 11:03:42 -0700

I’m trying to implement a speak phone number plugin in the Contacts application (MacBook Pro 10.9.5) following this example.
http://www.mactech.com/articles/mactech/Vol.21/21.10/ScriptingAddressBook/index.html

The script editor wouldn’t compile this
   on should enable action for thePerson with theEntry
      if theEntry <> missing value then
         return true
      else
         return false
      end if
   end should enable action

so I changed it to this
   on should enable action for thePerson with theEntry
      if theEntry = missing value then
         return false
      else
         return true
      end if
   end should enable action

When I save it to the Address Book Plugins folder the Contacts application doesn’t show it as a pull down menu option when selecting the action next to a phone number field.

I’ve tried saving as an Application, script, and script bundle but none of them are displayed.

How can I make this work?

My final goal is to get the phone number and execute a shell script with it.

Thank you,
Bill Vlahos
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • RESOLVED: Contacts Plugin AppleScript
      • From: Bill Vlahos <email@hidden>
  • Prev by Date: Re: Sending Key Commands?
  • Next by Date: Re: Sending Key Commands?
  • Previous by thread: Re: Sending Key Commands?
  • Next by thread: RESOLVED: Contacts Plugin AppleScript
  • Index(es):
    • Date
    • Thread