Copy link to clipboard
Copied
I want to write a panel extension which browses a remote asset management system, downloads proxy videos, and shows them in the Source monitor; similar to the Media Browser panel.
However, I can't find any way of getting a local file to open in the source monitor. The script functions I have tried either expect a Premiere project, or will open the file in QuickTime Player.
Does this functionality exist in Premiere?
Yes it does (in PPro 7.2 and later). Please write me directly with any questions: b b b at adobe dot com
app.enableQE();
var file_to_open = File.openDialog ("Choose file to open.", 0, false);
if (file_to_open != null)
{
qe.source.openFilePath(file_to_open.fsName);
qe.source.player.play();
}
Copy link to clipboard
Copied
Yes it does (in PPro 7.2 and later). Please write me directly with any questions: b b b at adobe dot com
app.enableQE();
var file_to_open = File.openDialog ("Choose file to open.", 0, false);
if (file_to_open != null)
{
qe.source.openFilePath(file_to_open.fsName);
qe.source.player.play();
}
Copy link to clipboard
Copied
Is it possible to directly pass a string to qe.source.openFilePath(), without using the File.openDialog() method?
In particular, I have URLs like this, pointing to somewhere on a network:
file://10.10.101.11/somefolder/somefile.avi
and would like to be able to open them directly in ExtendScript, without prompting the user to select a file in a File Open dialog.
Please advise what type of URLs does qe.source.openFilePath() expect?
Your help is much appreciated!
Copy link to clipboard
Copied
In addition to local file paths, PPro imports from mounted network volumes (Mac), mapped network drives (Win), and UNC paths.