Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Clipboard retrieve/paste command Post 302659451 by fhill2 on Thursday 21st of June 2012 02:36:22 AM
Old 06-21-2012
Clipboard retrieve/paste command

I mainly use Max/MSP for my audio programming, but today I am working on a project that requires the use of shell. Is it possible to do this?
Retrieve the contents of the clipboard.
Send a keystroke to an application without loosing focus, for example, I want to initiate a paste command (with command-v) to an application.
I'm on Mac OS X 10.5.8.
Thanks!
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

paste command

I wonder if any body can help me with a command i am struggling with. I have a file with around 400 lines in, in a program i have it pulls out each line at a time so that data from the line can be cross referenced with another file. If it finds a match it pulls out a ocde from the second file, this... (5 Replies)
Discussion started by: mariner
5 Replies

2. UNIX for Dummies Questions & Answers

How to retrieve the typed command

For examples, I have typed 4 commands in the command prompt: ls -la rm -rf /home/user1 du -k /home find . -name "abc.out" -print And now I want to retrieve the command which begin with letter "r" (i.e. rm -rf /home/user1), what can I do? (5 Replies)
Discussion started by: laum
5 Replies

3. Shell Programming and Scripting

how to retrieve only the Use% value from df command

when I do a df -k for a particular mount i get the result like this Filesystem 1K-blocks Used Available Use% Mounted on /dev/ 4128448 3527496 391240 91% / I need to extract the value 91 from this and use it in my script in an if condition. How will i do it Please advice. (8 Replies)
Discussion started by: codeman007
8 Replies

4. Shell Programming and Scripting

command paste with variables

Hi. I have an interesting problem and i couldn't find out the solution. I have two variables in which there are a lot of lines finished by \n. I would like to concatenate this two variables into one in this format: var1var2 var1var2 . . . I could do this simply by command paste but it works... (32 Replies)
Discussion started by: samos
32 Replies

5. UNIX for Dummies Questions & Answers

paste command

input1 15 150 input2 x 10 100 input3 y 20 200 z 34 44 cmd paste -d "\t" input1 input2 input3 >>output output (1 Reply)
Discussion started by: repinementer
1 Replies

6. UNIX for Advanced & Expert Users

Xterm configuration : how to copy/paste in the CLIPBOARD

Hi, I can paste what is in the CLIPBOARD but I can't get xterm copy. and in fact I think I'm not able to select well with the cursor (I don't want to use the mouse)... here is my ~/.Xresources file : XTerm*highlightSelection: true XTerm*VT100.translations: #override \n\ None ... (5 Replies)
Discussion started by: xib.be
5 Replies

7. UNIX for Dummies Questions & Answers

Copying a command/line to clipboard

hi all, i am newbie to Unix scripting.. I am writing a script which will have a line of commands, which needs to be copied to clipboard. Any ideas welcome.. Usage:: I am using the script in this way, The script will have some lines (like below) export TERM=xterm; cd test_env; TMOUT=0 ... (1 Reply)
Discussion started by: gkarthik.gk
1 Replies

8. Shell Programming and Scripting

Can't paste in command line.

Hello. I've made a simple script which asks the user to input a hash and then runs a command that replaces the variable $hash with what the user inserted. The ting is that when the programm asks for input I can't paste anything there..! any clues?? :wall: (8 Replies)
Discussion started by: louboulos
8 Replies

9. Solaris

Solaris 10 : command to copy text to the clipboard.

I'm searching a command to copy text to the clipboard. xclip and xsel are commands which are available on several kind Linux and Unix OS, but is unfortenuately not available on solaris 10. REF : xpt.sourceforge.net/techdocs/nix/x/general/xwin12-Xclipboard/single/ clipboard of openSolaris is... (9 Replies)
Discussion started by: droopy4u
9 Replies
Tk_Init(3)						       Tk Library Procedures							Tk_Init(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tk_Init, Tk_SafeInit - add Tk to an interpreter and make a new Tk application. SYNOPSIS
#include <tk.h> int Tk_Init(interp) int Tk_SafeInit(interp) ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which to load Tk. Tk should not already be loaded in this interpreter. _________________________________________________________________ DESCRIPTION
Tk_Init is the package initialization procedure for Tk. It is normally invoked by the Tcl_AppInit procedure for an application or by the load command. Tk_Init adds all of Tk's commands to interp and creates a new Tk application, including its main window. If the initializa- tion is successful Tk_Init returns TCL_OK; if there is an error it returns TCL_ERROR. Tk_Init also leaves a result or error message in interp->result. If there is a variable argv in interp, Tk_Init treats the contents of this variable as a list of options for the new Tk application. The options may have any of the forms documented for the wish application (in fact, wish uses Tk_Init to process its command-line arguments). Tk_SafeInit is identical to Tk_Init except that it removes all Tk commands that are considered unsafe. Those commands and the reasons for their exclusion are: bell Continuous ringing of the bell is a nuisance. clipboard A malicious script could replace the contents of the clipboard with the string "rm -r *" and lead to surprises when the contents of the clipboard are pasted. grab Grab can be used to block the user from using any other applications. menu Menus can be used to cover the entire screen and to steal input from the user. selection See clipboard. send Send can be used to cause unsafe interpreters to execute commands. tk The tk command recreates the send command, which is unsafe. tkwait Tkwait can block the containing process forever toplevel Toplevels can be used to cover the entire screen and to steal input from the user. wm If toplevels are ever allowed, wm can be used to remove decorations, move windows around, etc. KEYWORDS
safe, application, initialization, load, main window Tk 8.0 Tk_Init(3)
All times are GMT -4. The time now is 03:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy