🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #2044

Open dialog for text file

#2044
From: matthewrubino
Date: Thu, 17 Jun 2004 19:59
4 lines
1531 bytes
In VBScript:
I'm looking to open a dialog which will prompt the user to select a text file which will then be used to loop through selecting various images and continue doing various tasks. From what I've seen, it's easier to just use openDialog in JS. That's fine, I can embed or call a JS script from my VB script, but then how do I get that selected file (which Photoshop won't accept as an active document type) as a variable into the rest of my script. Similarly, I would like to allow the user to chose a save file name and location through the interface. Right now I hardcode the text file name in my script, but would like to add a little more flexibility instead of having to alter my script each time with a different file name reference. Any ideas?
Thanks
Matt
Technical Details
Message-ID: <3bb4a774.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5839,9f372316bd6d2809,start
X-Google-Attributes: gidf5839,public
From: matthewrubino@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: Open dialog for text file
Message-ID: <3bb4a774.-1@webx.la2eafNXanI>
Date: Thu, 17 Jun 2004 12:59:41 -0700
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit