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

Script to open the Open Dialog Window

New Here ,
Sep 25, 2012 Sep 25, 2012

Hello everyone!

I'm new to scripting and this is probably an easy question but I'm trying to write a script that opens the Open Dialog Window. Basically I need to start the script in one active document, have the script open the Open Dialog (to let the user select another image) and then finish the script in the newly opened document. Every script I find is to open a specific file, but I need it to be User Selected through the Open Dialog of Photoshop.

I hope that makes sense! LOL. Any help would be greatly appreciated!

Thanks,

Bradi

TOPICS
Actions and scripting
11.6K
Translate
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

Guru , Sep 25, 2012 Sep 25, 2012

Below is an example of how to prompt for a file. You can find details about File and Folder classes/object in the JavaScript Tools Guide. That PDF can be found in a subfolder where ExtendScript Toolkit is installed.

var myFile = File.openDialog("Selection prompt");

if(myFile != null) app.open(myFile);

Translate
Adobe
Guru ,
Sep 25, 2012 Sep 25, 2012

Below is an example of how to prompt for a file. You can find details about File and Folder classes/object in the JavaScript Tools Guide. That PDF can be found in a subfolder where ExtendScript Toolkit is installed.

var myFile = File.openDialog("Selection prompt");

if(myFile != null) app.open(myFile);

Translate
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
New Here ,
Sep 25, 2012 Sep 25, 2012

Thank you so much! I will check out that resource. I appreciate your help!

Translate
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 ,
Oct 10, 2012 Oct 10, 2012
LATEST

Is this also possible to simply open the "Find and Replace" dialog in Illustrator & then close it?Screen shot.jpg

No need to do anything with "Find and Replace" just want to open it then have it close to avoid an Illustrator bug.

Translate
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