Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Premiere Pro Command Line script path with whitespace

New Here ,
May 15, 2021 May 15, 2021

I'm having trouble executing a script via command line when there is a whitespace in the path.

For example, this works:

"C:\Program Files\Adobe\Adobe Premiere Pro 2021\Adobe Premiere Pro.exe" /C es.process "C:\Users\kevin\OneDrive\Documents\scripts\hello.jsx"

But this does not work:

"C:\Program Files\Adobe\Adobe Premiere Pro 2021\Adobe Premiere Pro.exe" /C es.process "C:\Users\kevin\OneDrive\Documents\my scripts\hello.jsx"

^What happens is Premiere Pro launches with no action - just a plain open project screen.

 

I understand that it is generally bad practice to have a whitespace anywhere in your directory path structure, but with this project, I unfortunately do not have the option to change the names around.

I've tried adding extra escape slashes but this did not work:

"C:\Program Files\Adobe\Adobe Premiere Pro 2021\Adobe Premiere Pro.exe" /C es.process "C:\\Users\\kevin\\OneDrive\\Documents\\my\ scripts\\hello.jsx"

And I've also tried both variations of single(' "  " ') and double (" '  ' ") quotes, but this also does not work: 

"C:\Program Files\Adobe\Adobe Premiere Pro 2021\Adobe Premiere Pro.exe" /C es.process "'C:\Users\kevin\OneDrive\Documents\my scripts\hello.jsx'"
"C:\Program Files\Adobe\Adobe Premiere Pro 2021\Adobe Premiere Pro.exe" /C es.process '"C:\Users\kevin\OneDrive\Documents\my scripts\hello.jsx"'

Any thoughts or ideas I could try? I may be missing something plainly obvious so I'd appreciate anything! Thanks!

 

Pr Version: 15.1.0 (Premiere Pro 2021)

OS: Windows 10

TOPICS
SDK
594
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , May 17, 2021 May 17, 2021

Seems you need to escape whitespace, what if you try one of those methods?
https://www.howtogeek.com/694949/how-to-escape-spaces-in-file-paths-on-the-windows-command-line/

Translate
Contributor ,
May 17, 2021 May 17, 2021
LATEST

Seems you need to escape whitespace, what if you try one of those methods?
https://www.howtogeek.com/694949/how-to-escape-spaces-in-file-paths-on-the-windows-command-line/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines