Page 1 of 1

filePutDialog doesn't create a file?

Posted: March 24th, 2009, 2:08 pm
by peteoconnell
Hi, when I run the following line of code:

Code: Select all

filePutDialog("Select File","MyProject.aep","EggP aep");
I expect an aep file to be created, but nothing happens. Am I missing a step?
Thanks
Pete

Re: filePutDialog doesn't create a file?

Posted: March 24th, 2009, 4:23 pm
by Paul Tuersley
Which scripting guide are you using for reference? I've only ever used things like filePutDialog() for writing text files, and I'm pretty sure you can't save a project in that way. For that you would need to use the app.project.saveWithDialog() method.

Re: filePutDialog doesn't create a file?

Posted: March 24th, 2009, 10:03 pm
by peteoconnell
Thanks very much, that's very helpful.
Cheers
Pete