How do I paste into a different app?
jimaultwins at yahoo.com
Wed Dec 30 18:26:10 EST 2009
It may sound simple, but using the system clipboard to move data
between programs automatically is very complex.
The receiving app needs to be the frontmost app, its selection needs
to be compatible with the incoming data, and formatting conversions
may be difficult to control.
One of the inescapable issues is that other programs and the user
employ the system clipboard. As you use the clipboard, the previous
contents are purged, which may not always be OK with the user.
Search for 'applescript' in the Rev archives and you will see many
examples and discussions of scripting.
Do "applescript clipboard system windows" in google and read about
some of the features and how to control them.
Hope this helps
On Dec 30, 2009, at 2:55 PM, Bill Vlahos wrote:
> It looks like on the Mac you can get AppleScript to send keystrokes
> by telling the application "System Events".
> tell application "System Events"
> keystroke "x"
> end tell
> How can I tell Rev to execute this AppleScript code?
> Bill Vlahos
> InfoWallet (http://www.infowallet.com) helps me remember the
> important details of my life.
> On Dec 20, 2009, at 1:32 PM, Bill Vlahos wrote:
>> Is there a way to paste text from my stack to the text insertion
>> point of a different program?
>> I can create a floating window (system window) which floats above
>> all other windows. The idea is that the user would click on a field
>> in the target window (say a password field in a web browser) and
>> then click a button on the floating window that will paste the
>> password into it.
>> I've tried the "type" and "paste" commands but they don't do
>> anything outside of the stack. Is there a way to remotely issue a
>> paste command or simulate typing?
More information about the Use-livecode