# Waiting for fileDialog

**URL:** https://forum.highend3d.com/t/waiting-for-filedialog/5650
**Category:** Maya
**Tags:** mel
**Created:** [December 6, 2002, 9:53am UTC](https://forum.highend3d.com/t/waiting-for-filedialog/5650 "2002-12-06T09:53:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![da9l](https://forum.highend3d.com/user_avatar/forum.highend3d.com/da9l/32/377_2.png) [@da9l](https://forum.highend3d.com/u/da9l)
#### Post date: [December 6, 2002, 9:53am UTC](https://forum.highend3d.com/t/waiting-for-filedialog/5650/1 "2002-12-06T09:53:44Z")

</div>

Hi.  
I'm new to Mel script and i've run into a little problem.  
I'm using fileDialog to load a path and filename into a string. Is there a way to make the script to pause until the user has chosen the file and closed the browser dialog.

Another thing, is it possible to select more than one file at once and assign the filenames to corresponding strings.   
(eg. file1 into $string1, file2 into $string2, etc...)

Thanks...

/D

---

<div class="post-metadata">

### Author: ![trickyr](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/258eb7/32.png) [@trickyr](https://forum.highend3d.com/u/trickyr)
#### Post date: [December 11, 2002, 3:58pm UTC](https://forum.highend3d.com/t/waiting-for-filedialog/5650/2 "2002-12-11T15:58:38Z")

</div>

If you are using fileDialog then the script should pause anyway until a value is returned by fileDialog, post your code so we can see what you are having problems with.  
Tricky
