🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10034

Javascript: change caption on a button

#10034
From: mattias4000
Date: Tue, 11 Jul 2006 07:31
15 lines
1257 bytes
I'm wondering what javascript command I should use if I want to change the caption on a button (I mean the text that is written on the button).

Here is a part of the code. Everything isn't showed:
-------------------
myPage = myDoc.pages[myTable.parent.parent.index - 1];
myGeoBounds = myPage.textFrames[0].geometricBounds;
var myBtn = myPage.buttons.add(undefined, undefined, undefined, {geometricBounds:[
    String(myGeoBounds[0] - 15) + "mm",
    String(myGeoBounds[1] + 10) + "mm",
    String(myGeoBounds[2] - 5) + "mm",
    String(myGeoBounds[3] + 40) + "mm"]});
-------------------

So, how do I change the text that is written on that button?
Thanks! :)
Technical Details
Message-ID: <3bc0df0e.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,680307ea9be48b42,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: mattias4000@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Javascript: change caption on a button
Message-ID: <3bc0df0e.-1@webcrossing.la2eafNXanI>
Date: Tue, 11 Jul 2006 00:31:53 -0700
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing