🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #14285

help wanted (writing Desk Accessory

#14285
From: kkim
Date: Sun, 01 Feb 1987 05:45
52 lines
2714 bytes
I would like to know how to solve the following problem:

    basically to implement something like pipeline ( | ) in unix 
    terminology; I want to transform every input character typed 
    from the keyboard into another predefined character which will
    become an input character to, for example, MacWrite
    (for example, if you type ABC, it might be transformed into 1GK
    which will then be fed to MacWrite).
    
    When I use MacWrite, all the characters typed from the keyboard
    will be input to MacWrite DIRECTLY.  What I saw was that, after
    activating MacWrite, I activate some special Desk Accessory program
    (THIS IS WHAT I WANT TO IMPLEMENT)  which
    TRANSFORMS every input character into another predefined character
    which is then fed to MacWrite.
    The D/A seemd to have capability to check whether Capital-Lock key was
    locked, Command key was pressed, and Option key was pressed.


You may safely assume that I know how to implement transforming procedure;
what I am eager to know is :
    0) which programming language can be used (basic, pascal, etc.) and
       if some specific language MUST be used to write a D/A,
    1) how to write a code to read the input character from the keyboard
       within a D/A,
    2) how to check whether Capital-Lock key/Command key/Option key was
       pressed,
    3) how to make the transformed character fed to MacWrite,
    4) what Mac manuals/documents will give useful information, and
    5) (hopefully) some sample code.

I will appreciate any comments concerning this problem. 
Thanks in advance.  Please reply by e-mail.

                            Kyongsok KIM

                            Department of Computer Science
			    University of Illinois at Urbana-Champaign
			    
my addresses are as follows:

    	network		address
        -------		-------
        arpanet		kkim@a.cs.uiuc.edu (domain format) OR
          	        kkim@uiuc.arpa  (alias)

        csnet		kkim@uiuc.csnet,
      			kkim%uiuc@csnet-relay.arpa (obsolete), OR
		        kkim%uiuc.csnet@csnet-relay.arpa (obsolete)

        usenet/uucp	{seismo, pur-ee, ihnp4, convex}!uiucdcs!kkim
Technical Details
Message-ID: <186700003@uiucdcs>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cuae2!ihnp4!inuxc!pur-ee!uiucdcs!kkim

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cuae2!ihnp4!inuxc!pur-ee!uiucdcs!kkim
From: kkim@uiucdcs.UUCP
Newsgroups: comp.sys.mac
Subject: help wanted (writing Desk Accessory
Message-ID: <186700003@uiucdcs>
Date: Sun, 1-Feb-87 00:45:00 EST
Article-I.D.: uiucdcs.186700003
Posted: Sun Feb  1 00:45:00 1987
Date-Received: Sun, 1-Feb-87 16:49:20 EST
Lines: 52
Nf-ID: #N:uiucdcs:186700003:000:2159
Nf-From: uiucdcs.cs.uiuc.edu!kkim    Jan 31 23:45:00 1987