Copy link to clipboard
Copied
Hi All,
I am importing same file from two different places in premiere pro (one from Project panel and other from Media Browser panel) in Mac. I have fetched their file path using XMP metadata, but the file paths of both project items are different!!
E.g.
File path when import file from Project panel:
/Users/user1/Documents/fil1.txt
File path when import file from Media Browser panel:
/Volumes/Macintosh HD/Users/user1/Documents/fil1.txt
Here extra prefix "/Volumes/Macintosh HD" is added which creates an issue for us as we are comparing file paths with one another.
Code snippet to read file path:
var projectMetadata=currentChild.getProjectMetadata();
var xmp=new XMPMeta(projectMetadata);
var kPProPrivateProjectMetadataURI="http://ns.adobe.com/premierePrivateProjectMetaData/1.0/";
var filePath=xmp.getProperty(kPProPrivateProjectMetadataURI, "Column.Intrinsic.FilePath");
Premiere Pro Version: 11.1.0
Extension Type: Panel
Thanks & Regards
Meet Tank
Right, but (desire for consistency aside) that 'issue' is receiving a completely valid and functional path...
Copy link to clipboard
Copied
Does projectItem.getMediaPath() return the same path, for each projectItem?
Copy link to clipboard
Copied
Same result with projectItem.getMediaPath() However, this is a good alternative of XMP metadata. I haven't come across this method as it is not available in API doc
. Bruce Bullis Could you please make this method available in the document: Samples/api_doc.html at master · Adobe-CEP/Samples · GitHub
Thanks,
Meet
Copy link to clipboard
Copied
Added.
Copy link to clipboard
Copied
Hello Bruce Bullis
In the previous comment I meant same result as file paths from xmp API. I got two different path using projectItem.getMediaPath() having extra prefix "/Volumes/Macintosh HD" in the file path which is imported from the media browser panel.
Is this a bug in Premiere Pro API on Mac? It is working properly on windows.
Thanks,
Meet
Copy link to clipboard
Copied
Funny. I ran the test on Windows the same day you had posted the issue (also without it occurring there), but I thought "no wait, you don't need to post this because (s)he might have done this already, you see, (s)he's explicitly saying Mac...", and one week later.. gee.
Can you please try a different path on Mac, like "/Users/Public/PrTest/Project1/" . I imagine there's something wrong with the resolve of the currently logged in user's path (~/). Doesn't fix the original issue, but may provide some insight.
Best,
e.d.
Copy link to clipboard
Copied
I don't think so; the path you got on Mac works as well, right?
Copy link to clipboard
Copied
I tend to think the need is to have consistent behavior / consistent information across all platforms... personally, I'd rather have an absolute path across all platforms.
Copy link to clipboard
Copied
The need is consistent behavior irrespective of import methods being used. The point I wanted to address here is: I should get same file path, whether I import a file from Project panel or Media Browser panel. Premiere pro behaves in a different way handling the file imported from two different places.
Thanks,
Meet
Copy link to clipboard
Copied
No. The issue still exists on Mac.
Copy link to clipboard
Copied
Right, but (desire for consistency aside) that 'issue' is receiving a completely valid and functional path...
Find more inspiration, events, and resources on the new Adobe Community
Explore Now