Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Inside Contextual Menu Items, Part 2
Subject:   text selection?
Date:   2004-06-13 10:22:48
From:   edalytical
Is there any way to get the current text selection from a application using a custom CMI? I have tried it, but I don't think it's supported. I can only get file selections in Finder. If it's not possible to get a text selection is there any way to invoke a service for the current application from within the CMI?
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • text selection?
    2004-06-14 07:14:41  EGOSysDiz [View]

    Well, supposedly, applications will report a "TEXT" type of selection to your CMI (if you look at the sample CMI source code from Apple, you can see code to trap this), but in practice, I've found that only a few applications do this. In fact, I haven't come accross a single Apple application that does, but all the Office v.X applications do! (Don't know about Office X 2004...)

    As for invoking a selection from a CMI, I'm sure it's possible, but I've not had a chance to try it yet.

    Steve Disbrow
    EGO Systems, Inc.