I've been putting together a text on ScriptUI, to a large extent to clear up things for myself (hence the title!). It's an introduction to ScriptUI, much of it very basic, here and there going into some detail. It's not a finished product, and comments, suggestions, and corrections are welcome. If you're interested, you can find the PDF file here: http://www.kahrel.plus.com/indesign/scriptui.html
Peter
excellent stuff. going through it now to see if i can convert an HTML-based calculator that i made so i can output the results straight into indesign.
have noticed one thing which i think might be a typo though. on page 6 (8 of the pdf) there is a heading "Two ways of addressing controls" and rather than paragraphs of type, just the letters "aa".
am i missing something here?
Peter,
On page 6 (Pdf Page 8) under "Formatting the window frame" myPanel not declare so its giving error.
I have declare myPanel and working fine.
myWindow = new Window ("dialog", "Example", undefined, {borderless: true})
var myPanel = myWindow.add("panel", undefined)
myPanel.add ("statictext", undefined, "borderless: true");
myWindow.show ();
Shonky
".. Jongware's fabulous CS object browsers .."
(cough)
Is there a way to create (or mimic) radio button selection groups?
In this script I'm working on (for Illustrator!), I'd like to have either a full choice of attributes in the panel, or simply "Match teeth size". I'd like something like a radiobutton at the top of the panel, as well as one instead of the checkbox -- if the panel radiobutton is selected, the attributes should be editable, but disabled when it's not.
Awesome!
I have been struggling with the lack of informative examples on this subject!
Like your previous works, it is very simple to understand yet complex enough to assist the more accomplished scripters.
I did find a minor glich on page 22:
The hyperlink: "Gabe Harbs's script" points to this url: "http://www.kahrel.plus.com/indesign/sidenotes.html"
I do not know if this is the intended target.
Thanks, guys; I used both of your suggestions! (Ever needed to draw gears? There is an Illustrator script for it now -- I don't think it would be useful as an ID script) ![]()
(Veering Off-Topic -- sorry, Peter!)
Jeremy, can you put some numbers to that? Technical documentation on how to actually create gears is a bit hard to find, so I wrote the script to create "mirrored" hills and valleys with the exact same width. Theoretically, if you would draw them as straight lines, they'd match up perfectly. In practice, however, it seems to need a bit of 'pushing'. I don't think the script is accurate enough to design clockwork with -- but I'd sure like it to be!
(We might as well continue this discussion in the Illustrator forum: [CS4/JS] Gear up! A gear drawing script -- to keep it "On topic".)
[Jongware] wrote:
Jeremy, can you put some numbers to that?
Alas no... not yet, but I'm thinking about it. I'm trying to write something for InDesign that (probably) follows an entirely different method from your script, and whose results will be much more modest (at first, I'm just going for a simplistic "fortification line"). I thought if I had something of my own that works in InDesign, I might be able to work my (beginner's) way into Illustrator's object model, something I am wholly unacquainted with so far. That's why I'm replying here rather than in the Illustrator Scripting forum.
Thanks again!
Posted version 1.1, same link: http://www.kahrel.plus.com/indesign/scriptui.html
Version history on that page and at the back of the PDF.
Peter
Posted version 1.2, same link: http://www.kahrel.plus.com/indesign/scriptui.html
Version history on that page and at the back of the PDF.
Peter
North America
Europe, Middle East and Africa
Asia Pacific