File.openDialog();
Hopefully an easy one.
If I let my script open
var aseFile = File.openDialog()
var data = app.parseSwatchFile(aseFile);
When my script opens. I can get the information I want from my ase file in my panel example below.

However if I use a button to load the ase file
btn.onClick = function(){
File.openDialog();
var data = app.parseSwatchFile(aseFile);
}
Then I get zippo.
I've tried using my functions, which essentially is what I'm using to fill the panel when I update my edittext, but event that doesn't work
btn.onClick = function(){
File.openDialog();
var data = app.parseSwatchFile(aseFile);
cleanUpGroup(grpContainer);
parseColor();
updatePanel(win);
apply();
}
