Search DominoPower's 11,320 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
BEYOND LOTUSSCRIPT
Using Python to create a command line interpreter for Notes
By Jeffrey R. Burrows

Unix geeks, SQL (Structured Query Language) programmers, and old DOS hacks have one thing in common--a hankering for direct command line access to software, rather then the end-user-friendly graphical frills with which all software must be adorned nowadays. Even the Palm OS has a CLI (Command Line Interpreter) developer for it, although that may be a command line too far!

Good CLIs (or shells, as they're more commonly known in Unix) make it easy to explore file systems and objects, to test out small scraps of code, and to write full programs only when really needed. Even the DOS command.com can do basic IF and FOR statements, and good Unix shells--such as csh, bash, or ksh--are almost full programming languages in their own right. Most good CLIs let you save lines of commonly typed-in commands so they can be re-used easily. These are known as shell scripts in Unix and as batch files in DOS and Windows.

Lotus Notes does have a command console, but only for basic server administration. Any one-off changes to documents or experimenting with code and objects must be made using agents, and most Notes developers will have a continual turnover of agents made to be used just once (some of which never seem to get deleted from database templates).

This article will show you how a CLI is easily possible with Notes. It will also help Notes programmers venture beyond the world of LotusScript and spreadsheet formula language into two sets of wider worlds--the corporate world dominated by Microsoft standards and the Unixy, Linuxy, geeky world beyond.

The open source bits of our Notes command line
Cross-platform, object-oriented with classes, easily learned, and rapidly developed--that's what LotusScript tries hard to be, but with big limitations. For one thing, it's obviously limited to the world of Lotus, and there's none of the standard libraries, such as those for handling images, Internet protocols, zip files, etc., with which Java is so well endowed. Simple tasks like picking up mail from a POP3 server and manipulating the contents require major brainpower in LotusScript.

On the other hand, Java can be a daunting alternative, with its precise syntax and longer compile cycles, not to mention the disappointing performance. The other common language, Perl, produces code that seems to be perversely aimed at being as un-maintainable as possible.

The open source alternative is called Python at http://www.python.com. It's a fully cross-platform interpreted scripting language, running on UNIX, Linux, Macs, MS-DOS, Windows, Windows NT, Windows CE, OS/2, Java VM, and in the pipeline for the Palm OS.


1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
Enabling DAOS on a database - new recommendation
Need your opinion on some new policy settings for Mail
Sometimes IBM Lotus Domino HTTP RPC Agents aren't the answer...
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino

  • Don't spend unproductive time maintaining different versions of the same spreadsheet
  • Preserve data integrity and security in multi-user environments
  • Create reports in minutes INSIDE Notes
  • Get freedom from iterative report requests, deliver self-serve capabilities

Experience Reporting, Dashboards, and Analysis INSIDE Notes.

Try IntelliPRINT NOW!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login