diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2004-10-28 12:25:22 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2004-10-28 12:25:22 (GMT) |
commit | 262ec8217cafcc4ec2e00f9aa550fd402ce702be (patch) | |
tree | b0f115441846677d2289359c4cfc2c067a621eb5 /doc/send.n | |
parent | 687ea9c7fa1c93b45ecfe7c1e2a4903c1d66f193 (diff) | |
download | tk-262ec8217cafcc4ec2e00f9aa550fd402ce702be.zip tk-262ec8217cafcc4ec2e00f9aa550fd402ce702be.tar.gz tk-262ec8217cafcc4ec2e00f9aa550fd402ce702be.tar.bz2 |
More backporting of doc fixes
Diffstat (limited to 'doc/send.n')
-rw-r--r-- | doc/send.n | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: send.n,v 1.3 1999/04/16 01:51:09 stanton Exp $ +'\" RCS: @(#) $Id: send.n,v 1.3.20.1 2004/10/28 12:25:22 dkf Exp $ '\" .so man.macros .TH send n 4.0 Tk "Tk Built-In Commands" @@ -91,6 +91,23 @@ such as that provide by \fBxauth\fR. Under Windows, \fBsend\fR is currently disabled. Most of the functionality is provided by the \fBdde\fR command instead. .VE +.SH EXAMPLE +This script fragment can be used to make an application that only runs +once on a particular display. +.CS +if {[tk appname FoobarApp] ne "FoobarApp"} { + \fBsend\fR -async FoobarApp RemoteStart $argv + exit +} +# The command that will be called remotely, which raises +# the application main window and opens the requested files +proc RemoteStart args { + raise . + foreach filename $args { + OpenFile $filename + } +} +.CE .SH KEYWORDS .VS application, dde, name, remote execution, security, send |