Typo in application.py, .batch tries to call app.bath
See original GitHub issue def batch(self, *args, **kwargs):
"""Runs the batch automation routine.
Similar to the **File** > **Automate** > **Batch** command.
"""
self.app.bath(*args, **kwargs)
The batch function tries to call self.app.bath which doesn’t exist.
As I assume it neither wants to take a bath nor a shower I assume it’s intended to call batch
.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Michael Ikemann Alyxion - GitHub
Typo in application.py, .batch tries to call app.bath. def batch(self, *args, **kwargs): """Runs the batch automation routine.
Read more >How to get the path of the batch script in Windows?
To convert it to a full path, try something like this: pushd %~dp0 set script_dir=%CD% popd ... %CD% returns the current directory the...
Read more >Batch file - Wikipedia
A batch file is a script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed...
Read more >Problem with batching tensors - InvalidArgumentError: Cannot ...
Problem solved. It was a dumb and silly mistake after all. I was being naive - maybe I need to sleep, I don't...
Read more >Python API for Photoshop. - PythonRepo
Typo in application.py, .batch tries to call app.bath. def batch(self, *args, **kwargs): """Runs the batch automation routine.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Alyxion I released a new version to implement
app.batch
and fix typohave a new example for this: https://loonghao.github.io/photoshop-python-api/examples/#run-batch
Awesome, thank you very much for the fix 😃. Will give a try as soon as I’ve finished my current project. As I needed it for a project (your package helped me here a lot, so thanks!) I had to build a workaround meanwhile. One evil thing in this work around was - though I assume you will have the same issue with batch processing because it seems to don’t throw a classic com exception - that “Quickactions -> Remove background” opens a Dialog window if you provide a picture which is very blurry or really doesn’t contain an object. All batch processes actually just completely halted then waited for someone to click the “OK”. In the end I ended up writing a background thread which watches if the main thread is stuck and if so kills Photoshop via
Hope Adobe will fix this soon.