Open bug report

premiere_import_media returns success when the file does not exist (nothing imported, no ids returned)

anastasia ·

premiere-bridge 0.1.0 (UXP plugin 0.1.0, CEP helper 0.1.0 build 88) · Premiere Pro 27.0.0 · macOS 27.2.1 · adom-bridge CLI 2.1.192

What I did: premiere_import_media {paths:["/Users/…/Graphics/Adom Pup new dock icon overlay.png"]}. I also tried UXP project.importFiles([path], true, root, false) through premiere_eval.

Expected: the file is added to the project, or an error says why not.

What happened: both returned success:true / ok:true, but nothing was imported (project item count unchanged, 64 → 64). I lost about 30 minutes assuming imports were broken. The real cause: the file no longer existed (it had been removed from disk). ExtendScript new File(p).exists returned false, and so did ls. Once the file was back, premiere_import_media worked first time.

Suggestion: premiere_import_media should check that each path exists before importing and return errorCode: file_not_found listing the missing paths. Afterwards it should confirm new project items appeared and return their ids. It returns no ids today, so you have to search for them afterwards.

Related: adom-bridge send_files {dest:"<Google Drive folder>/", destIsFolder:true} reported ok but wrote the file to ~/Downloads, which compounded the confusion. That one is an Adom Bridge core issue, not this bridge.

0 Replies

Log in to reply.