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

dialog-box with input text

Engaged ,
Nov 19, 2018 Nov 19, 2018

Copy link to clipboard

Copied

Hi.

Every week I have to build a newsletter in PS. They are the same elements that are needed each time: change the name of the article, changeing prizes, show/hide buttons... I would like to make these things through a dialog box. It´d be more comfortable.

Here is a sketch

dialog_box.jpg

Is it scriptable with JavaScript (ExtendScript)?

TOPICS
Actions and scripting

Views

12.7K

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

correct answers 1 Correct answer

Community Expert , Nov 19, 2018 Nov 19, 2018

PS do not know a dialog.add method.

Read the guide, please.

There are several methods to made a size. varDale wrote one of them. But it does not work without the correct syntax.

In the past the best way was alignChildren

But with in newer version this does not fullfully correct with dropdownlists.

Here is an example

var dlg = new Window('dialog', "Some title");

dlg.panel = dlg.add('panel', undefined, "Panel title");

dlg.panel.alignChildren = "fill";

dlg.panel_text1 = dlg.panel.add('edittext', undefined,

...

Votes

Translate

Translate
Adobe
Community Expert ,
Mar 03, 2023 Mar 03, 2023

Copy link to clipboard

Copied

quote

Can you walk through how to install this?

 


By @Matt22191815boso

 

  1. Copy the code text to the clipboard
  2. Open a new blank file in a plain-text editor (not in a word processor)
  3. Paste the code in
  4. Save as a plain text format file – .txt
  5. Rename the saved file extension from .txt to .jsx
  6. Install or browse to the .jsx file to run (more in the link below):

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

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 ,
Mar 05, 2023 Mar 05, 2023

Copy link to clipboard

Copied

LATEST

Hi Matt!
Sure:

 

Add the code from my previous reply to an empty .jsx-file (create a new .txt in windows/mac and just rename the file extension to .jsx, then edit in e.g Notepad++, paste the code and save the file.).

In Photoshop, go to File > Scripts > Browse... and select your newly created .jsx file with the ebove mentioned code in it.

 

A dialog should appear in Photoshop that looks roughly like my previous post's screenshot.

 

Play around in the tool I referenced in my previous post to build your own dialog:
https://scriptui.joonas.me/

 

Have a nice day.

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