Monday, November 08, 2010 at 12:02 AM.
system.verbs.builtins.dialog.notify
on notify (s) {
<<Changes:
<<05/30/01; 10:20:54 PM by PBS
<<Run the card only if this is Mac Classic; otherwise call the kernel.
local (flRunCard = false);
if system.environment.isMac {
if not (defined (system.environment.isCarbon)) {
flRunCard = true}
else {
if not system.environment.isCarbon {
flRunCard = true}}};
on kernelCall (s) {
kernel (dialog.notify)};
if flRunCard { //Mac Classic
local (messagestring = s); //DW 11/23 the card expects a variable called messagestring
card.run (@dialog.cards.notify)}
else { //Windows or OS X
kernelCall (s)};
return (true)}
<<bundle //test code
<<notify ("Hello")
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.