I have a working Applescript that automates some tasks in photoshop. I am trying to wrap a Python script around it for batch processing of files.
What I want is this
for each file in dir
(wait until applescript finishes)
Process result files
Do some other things
How do I launch Applescript from within Python (without HEREDOC or other similar things where I define the whole script in Python) so I can pass it a variable and have it work with a given folder?
PS: This post
and similar like it are NOT the answer to my question. They are using heredocs and concatenated strings. That's not what I want. I have a VERY long script that I just want to pass a variable to so I can process files in a batch.