From: nagata@kurims.kyoto-u.ac.jp (Masatsugu Nagata)
Subject: Re: The New Nisus QUED/M 2.5
Organization: Research Institute for Mathematical Sciences, Kyoto, Japan.
Date: Fri, 18 Dec 1992 08:54:20 GMT


siegman@EE.Stanford.EDU (Anthony E. Siegman) writes:
>    A couple of initial comments on the new Nisus QUED/M 2.5, which
> just came out:
> 
I've upgraded to 2.5, too, and is very glad I did.

> * You're supposed to be able to assign command keys to menu items with
> the Assign Menu Key command, and conflicts with existing key
> assignments are supposed to be flagged.  I tried to assign "command-T"
> to "Tile Windows".  It works; but the conflict with the initial
> default command-T for Transfer was not flagged; command-T doesn't
> disappear from the Transfer item in the Edit menu; and attempts to
> remove it were unsuccessful...?
> 
I just tried it and it does work.  (System 7.0)
Select 'Assign Menu Keys' menu, and when the dialog box appears, select 
the 'Transfer' item in the File menu.  Then the 'Menu Item' field says 
"Transfer" and the character "T" appears in another field and is 
highlighted.   I just pressed the 'Remove' button, and then the "Done" 
button, and look, the command-T assignment is gone.  Nothing to the right 
to the 'Transfer' item, written in the File menu.

Perhaps you'd have to "Remove cmd-T from Transfer" 
_BEFORE_ "Adding cmd-T to TileWindows" ??


> * The "Transfer" menu, which was one of the attractive features of
> QUED/M 2.09, with the ability to set up a specific set of transfer
> menu items which will open up another appplication with the current
> active file open in that application, appears to be completely gone.
> 
I'm very glad they removed the old "Transfer" menu, since that was the 
source of the infamous _LaunchApplication crash in v.2.09.

Now, QUED/M's new 'Execute ToolServer Script' menu is supposed to do 
something ultimately replace the old "configurable Transfer menu".

By sending AppleEvents to other apps, QUED/M can not only switch to other 
apps, but also tell them to do specific tasks, and you can configure 
everything from Macro.

I'm not sure how I can do this in QUED/M now;  its manual only says it 
"sends scripts in MPW ToolServer language" or some such (I don't have 
MPW), but I'm sure it can.   (Please, someone, post this info.)

> For someone who wants to edit say a TeX source file in QUED/M, then
> quickly transfer into Textures with that file open (or a similar
> feature for any other programming language), this is a big loss, and
> the Transfer capability in the new 2.5 much less useful.
> 
> Is there a way to do this via a macro?
> 
Now, another trouble is that current version of Textures does not yet 
support AppleEvents  (maybe in the next version?)

So, you'd have to use some external AppleEvent Server, including MPW 
ToolServer, Frontier, and HyperCard.

I currently use the text editor Alpha 5.2 to send AE to HyperCard to 
let it launch Textures.   I'm sure QUED/M can do the same.

A sample  Macro in Alpha 5.2:
When I type control-X-shift-Y, then first HyperCard is launched, which 
launches Textures, and Alpha 5.2's 'Shell Window' remains in the 
foreground, showing a template for telling Textures which file to open.
I just type the filename, and then use another macro to 'switchTo' 
Textures.

#===========================================================================
# Send events to the Finder via Jon Pugh's 'FinderEvents' stack.
# Requires (info-mac/card/x/finder-events-12.hqx; 41K)
# This can launch documents of non-AE-aware applications.
#===========================================================================

proc hyperTexOpen {} {
	launch {HD2:HyperC-E:HyperCard}
	dosc  -c 'WILD' -s {go to FinderEvents} -t 2000
	dosc  -c 'WILD' -s {go to card 13} -t 2000
	shell
	insertText "dosc\ -c\ 'WILD'\ -s\ \{FinderEvents\ Open,\ \
\"HardDisk:TEX:AMS-TEX:\",\ \"AMSTeX format\"\}\ -t\ 2000"
	tclCarriageReturn
	insertText "dosc\ -c\ 'WILD'\ -s\ \{FinderEvents\ Open,\ \
\"HD2:works:\",\ \"Brown.tex\"\}\ -t\ 2000"
	selDir
}
bind 'y' <X> hyperOpen
bind 'y' <sX> hyperTexOpen

proc selDir {} {
	set pos [getPos]
	saveVars
	setVar regExpr 0
	setVar forward 0
	set pos1 [lindex  [search {:} $pos] 0]
	setVar forward 0
	set pos2 [lindex [search {:} [expr $pos1-1]] 1]
	eval select $pos2 $pos1
	restoreVars
}


OK.  Now, all the above assumes you use System 7.   If you use System 6
(or, even if you use System 7), there's a very good alternative: Jeremy 
Roussak's 'Apollo 1.0' INIT.  (info-mac/ex/apollo-10.hqx)

This is an INIT that provides you a configurable launch menu, so it also 
completely supercedes QUED/M 2.09's 'Transfer' menu.  Apollo is very easy 
to use, and provides you lots of other features, too, than just launching 
apps/docs.

Hope this helps.

Mark
--
Mark Nagata
nagata@kurims.kyoto-u.ac.jp

P.S.  I agree with you that Nisus Software should provide more complete 
and more readable manuals!

Newsgroups: comp.sys.mac.apps