🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #976

Re: Script UI Generator

#976
From: Steven_F._Bryant
Date: Tue, 24 Feb 2009 23:28
15 lines
2204 bytes
As I have been going through and testing various properties I have found a few things with ScriptUI that I would like to post.

First, I ditched the resource strings when I realized that adobe has not been updating it with all the new features in Script UI. For example no TabbedPanel or Tab. Also creating listbox with two columns will crash the application in which it is running. However in raw code all these things work just fine, so my app now generates real code (which may be a pretty good thing being that the end user will have an easier time reading the code).

Second, The Justify property. does it really work? I could only get it to work on editbox element (which is probably the most important one), using a mixture of resource string and code. The problem is that the justify property has to be set at creation of the element, but justify is not one of the creation properties, except if using a resource string then it could be at creation of the element. My code looks something like this

dlg.add("edittext{justify:'right'}")

but even this doesn't work on other elements with justify property (statictext,radiobutton,checkbox,panel,window).

I didn't see it online so i'll just post here, shortcutKey property accept a string of a single letter (maybe also number, but I didn't try) which on Windows is activated by pressing ALT + key entered (maybe on mac it's cmd). however it only activates control, pressing or toggling value is done with Enter key or space bar.

selection property of treeview using index - couldn't get it to work.

Thanks for listening to my rant, any help is appreciated
Technical Details
Message-ID: <59b7fd4d.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7fd4d.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,219f92bc7046a919
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Steven_F._Bryant@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Script UI Generator
Message-ID: <59b7fd4d.0@webcrossing.la2eafNXanI>
Date: Tue, 24 Feb 2009 15:28:05 -0800
References: <59b7fd4d.-1@webcrossing.la2eafNXanI>
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit