🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15149

Re: JS: app.paste() leaves new frame unselected

#15149
From: Peter_Kahrel
Date: Fri, 02 Jan 2004 16:11
5 lines
1095 bytes
Yes, that works: you can actually catch the error. (I emptied the clipboard by deleting it in the clipboard viewer and restarting ID. That's on W2k--don't know how that works on a Mac.)

I thought another method would be to create an empty textframe, doing app.PasteInto() in that frame and checking if the frame has anything in it. If it doesn't, the clipboard must have been empty. But that doesn't work. Besides, your method is more elegant.

Peter
Technical Details
Message-ID: <2ccf29c3.4@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
References: <2ccf29c3.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,b9561af257c0b40d
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-02 08:37:55 PST
From: Peter_Kahrel@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: Re: JS: app.paste() leaves new frame unselected
Message-ID: <2ccf29c3.4@webx.la2eafNXanI>
Date: Fri, 2 Jan 2004 08:11:05 -0800
References: <2ccf29c3.-1@webx.la2eafNXanI>
Lines: 10
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit