Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call Python scripts from Indesign? #2

Closed
michaelu123 opened this issue Sep 7, 2018 · 1 comment
Closed

How to call Python scripts from Indesign? #2

michaelu123 opened this issue Sep 7, 2018 · 1 comment
Labels

Comments

@michaelu123
Copy link

Hi, I am really intrigued that your code makes python available for InDesign. Your examples show how to call InDesign functions from within python. But how do you call a script from InDesign? You probably can not just drop a python script into the script folder, right? Or is it only possible to start a new Document from within a python script? Could you perhaps add a few lines to your readme? Thank you, Michael

@lohriialo
Copy link
Owner

Python is not directly supported as a first party scripting language, so you cannot drop a python file in the scripts folder and have InDesign execute it. At the moment, the only way to script is via COM as demonstrated in the examples

There's a feature request though to add support for Python in InDesign, you might want to go give your vote here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants