Hello Gordon,

On Thursday, July 31, 2003, at 03:27 PM, Gordon Worley wrote:

Is it possible to generate some user interface elements from my macros? I could probably do this if I wrote them in AppleScript, but Apple continues to not understand string processing (NSScanner, *shudder*), so I'd rather stick with Perl.


It is one of the (many) weak points of the current NW-Ex macro. If you stick with Perl, the only way I know of is to use the Perl module "MacPerl" included in Mac-Carbon:
<http://search.cpan.org/author/CNANDOR/Mac-Carbon-0.53/Carbon.pm>


With it, you can use several dialogs:

$phone = MacPerl::Ask("Enter your phone number:");
MacPerl::Answer("Nunc et in hora mortis nostrae", "Amen");
$color = MacPerl::Pick("What's your favorite color baby ?", "Red", "Green", "Gold");


But of course every user doesn't have it, and it is not so easy to install new modules in Perl. By the way, I have it, but the dialogs generate error messages so that I cannot use them well (but I think this is due to some odd configuration of my machine).

Otherwise, I think the only choice is to use AppleScript. By the way, I don't understand what you mean by "Apple continues to not understand string processing"... You can use AppleScript only for user interface; afterwards, you would call your Perl scripts (or sed, or awk scripts, as you like) with the "do shell script" command...

Does anyone have experience working with TeX and NWE? If so, any useful scripts or macros to automate the workflow? I currently use iTeXMac, but I don't like it very much as a word processor (slow, lacks features, doesn't really help me write LaTeX anyway), although I like it for workflow (easy to compile documents and see the results in PDF within a few seconds).


I think Yusuke (Kino) is working on some "rtf2TeX" scripts.


I wrote myself a set of macros/scripts for converting Classic Nisus files to rtf, TeX and html, and Unicode text files:
<http://www.bekkoame.ne.jp/~n-iyanag/researchTools/ multiformat_nisus.html>
But I think this is not exactly what you are looking for.


Best regards,

Nobumi Iyanaga
Tokyo,
Japan


--------------------------------------------------- The Nisus Interactive List [EMAIL PROTECTED]

Searchable archives:
http://www.mail-archive.com/nisus-interactive%40nisus.com/

To unsubscribe from this list please send a message with "unsubscribe
nisus-interactive" in the body of the email to [EMAIL PROTECTED]




Reply via email to