-
File Import question
Hi guys,
I have an import button in my UI, I want to make sure that the files being imported are coming from the (footage) folder within the project parent folder. Is it possible to restrict and alert the user that if the file is not being imported from the (footage) folder, to please, first copy the file to such folder before import?
Currently my import code looks like:
wavButton.onClick = function() {
// Open Dialog Box, put item in audioFolder and also, replace the audio layer in _GSALL
var audioFile = app.project.importFileWithDialog();if (audioFile != null){
audioFile[0].parentFolder = audioFolder;
gsAll.layer('Audio_Layer').replaceSource(audioFile[0], true);
ddaudio.add("item", audioFile[0].name);
};
}; // END OF WAV BROWSE BUTTON
As always, thank you all for your help and time!
Fabio