🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15142

JS: app.paste() leaves new frame unselected

#15142
From: Dave_Saunders
Date: Fri, 02 Jan 2004 14:49
13 lines
1224 bytes
In the UI, if you have nothing selected and text on the clipboard, when you paste, a new frame is formed with the clipboard's text inside.

Same thing happens when you use

app.paste();

from JS under the same conditions.

But there's one huge difference: in the UI, the pasted frame is now selected. In JS, it isn't. So, how do you get at it? Apparently, you can't.

I'm going to solve the problem by first creating a text frame and pasting into it, but it would have been easier had app.paste() either returned a reference to the new frame or the frame had been selected so I could make my own reference.

Dave
Technical Details
Message-ID: <2ccf29c3.-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!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,b9561af257c0b40d,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-02 07:07:45 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: JS: app.paste() leaves new frame unselected
Message-ID: <2ccf29c3.-1@webx.la2eafNXanI>
Date: Fri, 2 Jan 2004 06:49:59 -0800
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit