I was trying to use the return value of Vegas.ProjectOpen(filename) which according to the API doc is a Boolean to determine if the project file was valid and opened. However, it appears that this always returns true in both Vegas 4.0e. If I give it a file argument that exists, but is not a Vegas file, Vegas will display a warning dialog, but ProjectOpen will return true.
I was trying to use this in Vegas 4 to detect if the user tried to open a Vegas 5 file. Any other way to do this?
In Vegas 5.0b, false is returned, unless the file is a type that Vegas can open. For example, during my testing I tried to open a JPEG file as a project file with ProjectOpen(), guess what, Vegas opened the file and added it to the timeline of the existing project!
Randall
I was trying to use this in Vegas 4 to detect if the user tried to open a Vegas 5 file. Any other way to do this?
In Vegas 5.0b, false is returned, unless the file is a type that Vegas can open. For example, during my testing I tried to open a JPEG file as a project file with ProjectOpen(), guess what, Vegas opened the file and added it to the timeline of the existing project!
Randall