Article View: adobe.scripting.indesign
Article #15270Can JavaScript read the clipboard into a variable?
From: Dave_Saunders
Date: Tue, 09 Dec 2003 15:24
Date: Tue, 09 Dec 2003 15:24
7 lines
1322 bytes
1322 bytes
One of my most popular ID 2 scripts was the one that imports the clipboard to a table (assumes that the user has copied cells from an Excel spreadsheet on to the clipboard and then updates the contents leaving the table formatting intact -- although it does assume that there is no text formatting other than a paragraph style in any of the cells). I was contemplating doing this again with JavaScript and realized that I don't know how to access the clipboard from within a JavaScript. Thinks: check Scripting Guide... All I can find is how to paste the clipboard into the active document. I suppose that that's the way to go: paste into a temporary item, transfer the contents, then delete the temp. Dave
Technical Details
Message-ID:
<2cced595.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9d52993e58d63565,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-09 07:38:02 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Can JavaScript read the clipboard into a variable? Message-ID: <2cced595.-1@webx.la2eafNXanI> Date: Tue, 9 Dec 2003 07:24:56 -0800 Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit