• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

ScriptUI for dummies

Community Expert ,
Oct 12, 2010 Oct 12, 2010

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

25.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 01, 2011 Jul 01, 2011

Copy link to clipboard

Copied

Thank you so much for your immediate response.

Moreover i already having and studying that book only.

Thanks again.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 10, 2011 Dec 10, 2011

Copy link to clipboard

Copied

Updated the ScriptUI guide to version 1.8 (http://www.kahrel.plus.com/indesign/scriptui.html).

Peter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2012 Jan 30, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2012 May 12, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2012 Jul 27, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2012 Aug 15, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Aug 15, 2012 Aug 15, 2012

Copy link to clipboard

Copied

Ah Peter you didn't move the #targetengine "session" to page 1

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 26, 2012 Sep 26, 2012

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 17, 2012 Oct 17, 2012

Copy link to clipboard

Copied

Peter,

I know this is kind of off topic, but maybe you have the right connections to get an answer.

There is a scriptui error "window does not have a constructor" that shows up on all 64 bit adobe applications when running code as simple as "var Window1 = new Window('dialog',"test",undefined);".

This appears on 64 bit Photoshop (CS5-CS6) and 64 bit Illustrator (CS6).

The online workarounds are not something that can be packaged as part of a commercial solution. Any help is greatly appreciated.

Thanks,

Steven Bryant

scriptui.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 17, 2012 Oct 17, 2012

Copy link to clipboard

Copied

Steven,

It might be connected with this http://forums.adobe.com/message/4688189#4688189

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 17, 2012 Oct 17, 2012

Copy link to clipboard

Copied

I think it is.

But users are grasping in the dark thinking that it is specific to one scenerio. It is really related to all 64 bit applications.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 17, 2012 Oct 17, 2012

Copy link to clipboard

Copied

Steven,

I tried that line of code and over here it doesn't cause any problems targeting PhotoShop CS6/64 or Bridge CS6/64. I've no idea where that error comes from, I can't reproduce it. Your best bet is to file a bug.

Peter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 17, 2012 Oct 17, 2012

Copy link to clipboard

Copied

Could you try Illustrator CS6 64 bit.

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 17, 2012 Oct 17, 2012

Copy link to clipboard

Copied

Sorry, I can't, I don't have Illustrator CS6.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 05, 2013 Jul 05, 2013

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 05, 2013 Jul 05, 2013

Copy link to clipboard

Copied

Thanks for that, Peter!

However, you felt into a trap with the encoding of URLs for hyperlinks which stems from a serious bug InDesign CS6 and persists in InDesign CC.

See here for details:

http://forums.adobe.com/message/4463255#4463255

One example would be the link on p98 of "scriptui-2-1.pdf":

Your intention:

http://forums.scriptui.com/index.php?a=vtopic&t=118

What InDesign CC made out of it (InDesign CS6 would do the same):

http://forums.scriptui.com/index.php%3Fa%3Dvtopic%26t%3D118

It's not  Export to PDF, that gets this all wrong. It's InDesign's Hyperlink Panel!

I did not check the other links, but could be, that there are a few foul ones around…

Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 05, 2013 Jul 05, 2013

Copy link to clipboard

Copied

Thanks, Uwe, I never spotted that. I fixed the links and posted a new PDF. I'll now run this script on the document before exporting to PDF:

u = app.documents[0].hyperlinkURLDestinations.everyItem().getElements();

for (i = u.length-1; i > -1; i--){

    u.name = decodeURI(u.name)

    u.destinationURL = decodeURI(u.name);

}

Peter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 07, 2013 Jul 07, 2013

Copy link to clipboard

Copied

Thanks Peter,

Just wondering why you never wrote about hidden titlelayout properties for icon button, dropdown and flash player.

Thanks,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 08, 2013 Jul 08, 2013

Copy link to clipboard

Copied

Steven,

I didn't because of its limited application. titleLayout isn't available for edittext and listbox, which is one reason why I never use it. I can happily live without titleLayout. Besides, titleLayout is pretty well documented in the tools guide.

Peter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 28, 2013 Nov 28, 2013

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 28, 2013 Nov 28, 2013

Copy link to clipboard

Copied

Wonderful book, Great Work Peter !!!

It's really very helpful.

Vandy

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 03, 2013 Dec 03, 2013

Copy link to clipboard

Copied

Could you check this for me:

To avoid creating duplicate entries in a list, you can use the find method to

check if the item is already in the list:

if (myList.find (myNewItem) != null) //should be: if (myList.find (myNewItem) == null)

myList.add ("item", myNewItem);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2013 Dec 08, 2013

Copy link to clipboard

Copied

Hello Przemek,

You right, that should be if (. . . == null)

Thanks for pointing it out, I've corrected it now.

Peter

On Tue, 03 Dec 2013 13:28:13 -0000, przemek_macko

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 07, 2018 Feb 07, 2018

Copy link to clipboard

Copied

This booklet is an impressive, precious resource and the little I can do is to take a minute and thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 18, 2022 Jan 18, 2022

Copy link to clipboard

Copied

This document helped me out so much!!!

 

Had this issue this weekend with localize and the dialog buttons getting squared. Apperently in photoshop, the mina dialog buttons only are round when they have some sort of naming term. Not sure what that is.
I had a chat with Joonas about this, he also doesnt seem to know what triggering this.
https://github.com/joonaspaakko/ScriptUI-Dialog-Builder-Joonas/issues/96

My question is, these fold out menu is that available in SCRIPTUI?
This is the HDR toning dialog from Photoshop. I cant seem to find this in the PDF nor do i see it on Joonas his website.
Fold out itemFold out item

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines