Check-in [92a144c351]

Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Clean up some awkward language; thanks to AK for spotting.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 92a144c3511f457ebd35a3f83f9ad76ae100b3d1e24b2a45a836ec20863a2998
User & Date: dkf 2019-06-12 02:05:45
Context
2019-06-14
14:45
Formatting check-in: b2f25446c3 user: jan.nijtmans tags: trunk
2019-06-12
02:05
Clean up some awkward language; thanks to AK for spotting. check-in: 92a144c351 user: dkf tags: trunk
2019-06-11
19:03
Clarify a few things. check-in: 86042fe174 user: dkf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tip/536.md.

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Specification and Documentation

The following commands, which will all be documented in the **tk::mac** section of the Tk man page, will be added with this TIP: 

## ::tk::mac::PerformService

Executes a Tcl procedure called from the macOS "Services" menu by another application in the Apple menu item. The "Services" menu item allows for inter-application communication; data from one application, such as selected text, can be sent to another application for processing, for example to Safari as a search item for Google, or to TextEdit to be appended to a file. An example this procedure is below and should should be rewritten in an application script for customization, which will allow a Tk application to expose "Service" functionality to other programs: 

	proc ::tk::mac::PerformService {} {
		set w [text .t]
		pack $w
		set data [clipboard get]
		$w insert end $data
	}






|







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Specification and Documentation

The following commands, which will all be documented in the **tk::mac** section of the Tk man page, will be added with this TIP: 

## ::tk::mac::PerformService

Executes a Tcl procedure called from the macOS "Services" menu by another application in the Apple menu item. The "Services" menu item allows for inter-application communication; data from one application, such as selected text, can be sent to another application for processing, for example to Safari as a search item for Google, or to TextEdit to be appended to a file. An example of this procedure, which will allow a Tk application to expose "Service" functionality to other programs (it should be customised in a application script; these are inherently non-generic): 

	proc ::tk::mac::PerformService {} {
		set w [text .t]
		pack $w
		set data [clipboard get]
		$w insert end $data
	}