← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #99447]: How to copy and paste specific browser text?

 

Question #99447 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/99447

john_warren proposed the following answer:
I've been using this little function for assigning clipboard contents to
variables inside Sikuli on OSX.  I'd probably feed the variable as a
parameter for an AppleScript that talks to Growl (via osascript
command).

def grabClipboard():
	import os
	(stdin,stdout) = os.popen4("pbpaste")
	results = stdout.read()
	return results

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.