Global Text replacemant

  • var YAHOO = {'Shortcuts' : {}};
    YAHOO.Shortcuts.hasSensitiveText = true;
    YAHOO.Shortcuts.sensitivityType = ["adult"];
    YAHOO.Shortcuts.doUlt = false;
    YAHOO.Shortcuts.location = "us";
    YAHOO.Shortcuts.document_id = 0;
    YAHOO.Shortcuts.document_type = "";
    YAHOO.Shortcuts.document_title = "[OT] Global Text replacement";
    YAHOO.Shortcuts.document_publish_date = "";
    YAHOO.Shortcuts.document_author = "<xcodeman...>";
    YAHOO.Shortcuts.document_url = "";
    YAHOO.Shortcuts.document_tags = "";
    YAHOO.Shortcuts.annotationSet = {
    "lw_1199893758_0": {
    "text": "Mac OS X",
    "extended": 0,
    "startchar": 117,
    "endchar": 124,
    "start": 117,
    "end": 124,
    "extendedFrom": "",
    "predictedCategory": "",
    "predictionProbability": "0",
    "weight": 0.617452,
    "type": ["shortcuts:/us/class/product", "shortcuts:/us/instance/other/product"],
    "category": ["THING"],
    "context": "take a contract writing a Mac OS X application that will allow users" },
    "lw_1199893758_1": {
    "text": "Yahoo! Search",
    "extended": 0,
    "startchar": 1740,
    "endchar": 1752,
    "start": 1740,
    "end": 1752,
    "extendedFrom": "",
    "predictedCategory": "ORGANIZATION",
    "predictionProbability": "0.402845",
    "weight": 0.35,
    "type": ["shortcuts:/us/instance/organization/company/yahoo_property"],
    "category": ["ORGANIZATION"],
    "context": "deals Find them fast with Yahoo Search http://tools.search.yahoo.com/newsearch/category.php?category=shopping Cocoa-dev mailing list <Cocoa-dev...>",
    "metaData": {
    "yprop_name": "Yahoo! Search",
    "yprop_url": "http://search.yahoo.com/"
    }
    },
    "lw_1199893758_2": {
    "text": "http://tools.search.yahoo.com/newsearch/category.php?category=shopping",
    "extended": 0,
    "startchar": 1858,
    "endchar": 1927,
    "start": 1858,
    "end": 1927,
    "extendedFrom": "",
    "predictedCategory": "",
    "predictionProbability": "0",
    "weight": 1,
    "type": ["shortcuts:/us/instance/identifier/hyperlink/http"],
    "category": ["IDENTIFIER"],
    "context": "them fast with Yahoo Search http://tools.search.yahoo.com/newsearch/category.php?category=shopping Cocoa-dev mailing list <Cocoa-dev...> Please",
    "metaData": {
    "linkHref": "http://tools.search.yahoo.com/newsearch/category.php?category=shopping",
    "linkProtocol": "http",
    "linkTarget": "_blank"
    }
    },
    "lw_1199893758_3": {
    "text": "<Cocoa-dev...>",
    "extended": 0,
    "startchar": 2101,
    "endchar": 2125,
    "start": 2101,
    "end": 2125,
    "extendedFrom": "",
    "predictedCategory": "",
    "predictionProbability": "0",
    "weight": 1,
    "type": ["shortcuts:/us/instance/identifier/hyperlink/mailto"],
    "category": ["IDENTIFIER"],
    "context": "Search http://tools.search.yahoo.com/newsearch/category.php?category=shopping Cocoa-dev mailing list <Cocoa-dev...> Please do not post admin",
    "metaData": {
    "linkHref": "mailto:<Cocoa-dev...>",
    "linkProtocol": "mailto",
    "linkYmailto": "mailto:<Cocoa-dev...>"
    }
    },
    "lw_1199893758_4": {
    "text": "lists.apple.com",
    "extended": 0,
    "startchar": 2257,
    "endchar": 2271,
    "start": 2257,
    "end": 2271,
    "extendedFrom": "",
    "predictedCategory": "",
    "predictionProbability": "0",
    "weight": 1,
    "type": ["shortcuts:/us/place/virtual/web_site"],
    "category": ["IDENTIFIER"],
    "context": "" },
    "lw_1199893758_5": {
    "text": "http://lists.apple.com/mailman/options/cocoa-dev/<xcodeman...>",
    "extended": 0,
    "startchar": 2421,
    "endchar": 2489,
    "start": 2421,
    "end": 2489,
    "extendedFrom": "",
    "predictedCategory": "",
    "predictionProbability": "0",
    "weight": 1,
    "type": ["shortcuts:/us/instance/identifier/hyperlink/http"],
    "category": ["IDENTIFIER"],
    "context": "at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription http://lists.apple.com/mailman/options/cocoa-dev/<xcodeman...> This email sent to <xcodeman...>",
    "metaData": {
    "linkHref": "http://lists.apple.com/mailman/options/cocoa-dev/<xcodeman...>",
    "linkProtocol": "http",
    "linkTarget": "_blank"
    }
    },
    "lw_1199893758_6": {
    "text": "<xcodeman...>",
    "extended": 0,
    "startchar": 2593,
    "endchar": 2610,
    "start": 2593,
    "end": 2610,
    "extendedFrom": "",
    "predictedCategory": "",
    "predictionProbability": "0",
    "weight": 1,
    "type": ["shortcuts:/us/instance/identifier/hyperlink/mailto"],
    "category": ["IDENTIFIER"],
    "context": "http://lists.apple.com/mailman/options/cocoa-dev/<xcodeman...> This email sent to <xcodeman...>",
    "metaData": {
    "linkHref": "mailto:<xcodeman...>",
    "linkProtocol": "mailto",
    "linkYmailto": "mailto:<xcodeman...>"
    }
    }
    };
    (I am resending this because I did not get any responses to this)

    I am hoping someone here can give me some knowledge on this subject. I
    have been asked to take a contract writing a Mac OS X application that
    will allow users to replace text globally while they type (Much like
    Text Expander). Before I accept the offer I wanted to get some
    information first on how this can be accomplished, and how long it may take me to
    do this.

    So what it will do is continually watch wherever the user types
    (wherever they are typing, except password field of course) and replace text
    and Text attributes if the user types a certain character sequence.  So
    if they typed say: (In Mail app)

    bbnf

    and the user set it up correctly, it would replace it with:
    Bye Bye for now

    The specification document I got from them, is very explicit on how
    things should work.

    So I have been looking and it looks like Input Managers are the way to
    go. But in my searching I have found so many people talk about how evil
    Input Managers are, or are going away in Leopard (although it sounds
    like that did not happen). So being that does anyone have any ideas how
    to accomplish this with Input Managers? If yes, is there any example
    code anywhere which will show how to use Input Managers. If 'no' then
    what is the best way to accomplish this?

    I have not looked on Apples site yet, that is my next stop, but I just
    wanted to see if this was possible/feasible with Input Managers, or if
    there may be a different way to accomplish this.

    Thanks in advance,
    XcodeMan


     

          ____________________________________________________________________________________
    Be a better friend, newshound, and
    know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  • > (I am resending this because I did not get any responses to this)

      Please don't. If someone has a response for you, they'll post it.
    You're only adding noise to the signal-to-noise ratio of the list,
    which already suffers greatly.

    > I have not looked on Apples site yet, that is my next stop

      Certainly a more productive activity, right? Why not try it? Read
    the documentation and see if you can answer your own question: "Will
    Input Managers accomplish my goal?"

      You might also try (rather than spamming the list with a repost a
    day or two after your original) simply clarifying your post. For
    example, are you specifically looking to have this work (like
    TextExpander) for all applications or your own? If TextExpander is
    what you're looking for, what does it *not* do that you are trying to
    do (or do better)?

    --
    I.S.
  • Le 9 janv. 08 à 17:11, I. Savant a écrit :

    >> (I am resending this because I did not get any responses to this)
    >
    > Please don't. If someone has a response for you, they'll post it.
    > You're only adding noise to the signal-to-noise ratio of the list,
    > which already suffers greatly.
    >
    >> I have not looked on Apples site yet, that is my next stop
    >
    > Certainly a more productive activity, right? Why not try it? Read
    > the documentation and see if you can answer your own question: "Will
    > Input Managers accomplish my goal?"
    >

    If you choose to look at the Apple site, maybe you can start by this:

    http://developer.apple.com/documentation/Cocoa/Conceptual/InputManager/Inpu
    tManager.html
  • ----- Original Message ----
    From: I. Savant <idiotsavant2005...>
    To: Todd Felts <xcodeman...>
    Cc: <cocoa-dev...>
    Sent: Wednesday, January 9, 2008 9:11:30 AM
    Subject: Re: Global Text replacemant

    >> (I am resending this because I did not get any responses to this)

      > Please don't. If someone has a response for you, they'll post it.
    > You're only adding noise to the signal-to-noise ratio of the list,
    > which already suffers greatly.

    Sorry, I am just under a deadline, and I hoped someone would be kind enough just to give me some some insight into this.

    >> I have not looked on Apples site yet, that is my next stop

    > Certainly a more productive activity, right? Why not try it? Read
    > the documentation and see if you can answer your own question: "Will
    > Input Managers accomplish my goal?"

    And yes I went and looked at Apples site and found info and read all the relevant documentation that I could find, but I am still
    not sure if InputManager is the way to go. I have done every search I can imagine for some example code for input managers, but can't find that either.

    > You might also try (rather than spamming the list with a repost a
    > day or two after your original) simply clarifying your post. For
    > example, are you specifically looking to have this work (like
    > TextExpander) for all applications or your own? If TextExpander is
    > what you're looking for, what does it *not* do that you are trying to
    > do (or do better)?

    Well I don't know what you call spamming, but that is not spamming.

    Well this is not for me, Like I said in my post I have been offered a contract to write a program much like TextExpander, and several others, and before I take it I want to see if it is feasible, and about how long it would take to get this done.

    But anyway thanks for you help anyway.
    --
    I.S.

          ____________________________________________________________________________________
    Never miss a thing.  Make Yahoo your home page.
    http://www.yahoo.com/r/hs
  • I was already aware of that document, but am still not sure if it will do what I want. What I am really looking for a some example code for and InputManager that I could play with. But I can't seem,  to find any on Apples Site.

    But thanks anyway for your help.

    ----- Original Message ----
    From: Jean-Daniel Dupas <devlists...>
    To: Todd Felts <xcodeman...>
    Cc: Cocoa-dev Dev <cocoa-dev...>
    Sent: Wednesday, January 9, 2008 9:28:57 AM
    Subject: Re: Global Text replacemant

    Le 9 janv. 08 à 17:11, I. Savant a écrit :

    >> (I am resending this because I did not get any responses to this)
    >
    > Please don't. If someone has a response for you, they'll post it.
    > You're only adding noise to the signal-to-noise ratio of the list,
    > which already suffers greatly.
    >
    >> I have not looked on Apples site yet, that is my next stop
    >
    > Certainly a more productive activity, right? Why not try it? Read
    > the documentation and see if you can answer your own question: "Will
    > Input Managers accomplish my goal?"
    >

    If you choose to look at the Apple site, maybe you can start by this:

    http://developer.apple.com/documentation/Cocoa/Conceptual/InputManager/Inpu
    tManager.html


          ____________________________________________________________________________________
    Looking for last minute shopping deals?
    Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today