Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

Create a file selection dialog

$
0
0

I've recently finished a script that does all sorts of things based on a folder selected by the user. One of the first things it does is open a specific file, which isn't a problem at all, I just told it which file to open and it did.

 

The thing is, I'd like to allow the user to select which file to use, as we have more than a couple options, depending on what the end result will be. Is it possible to replace the open(fileRef); in that script with a list of the files in a certain folder that the user gets to select one of? From there, that selection would act as fileRef throughout the rest of the script.

 

 

 

 

Off topic, in that thread I linked, I answered some of my own questions. While I know you aren't supposed to create fake usernames to award helpful and correct answers, is it bad ettiquette to asign them to myself? I thought if someone were to need something similar, the answers I marked helpful would be, just that, helpful.


Viewing all articles
Browse latest Browse all 3671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>