I regularly run a .jsx script in Adobe Illustrator that saves a bunch of files in a particular format.
while Illustrator is the active app, running the script on 5 files takes 23 seconds.
When Illustrator is not the foremost app, running the script on 5 files takes more than 5 minutes.
According to Activity Monitor, Illustrator is using around 75% of the CPU when in the foreground but is throttled to less than 2% when in the background.
According to Activity Monitor, App Nap is not being used.
Why is this happening, and is there a way to change it?
I would like to be able to do other tasks while waiting for Illustrator. As it stands, I am obliged to keep Illustrator in the foreground.
Some things I have tried: I knew that
sudo sysctl debug.lowpri_throttle_enabled=0
worked to accelerate Time Machine backups, so I though it might help in this case. It had no effect.
I also tried disabling App Nap:
defaults write NSGlobalDomain NSAppSleepDisabled -bool YES
It had no effect.
I tried TinkerTool, but I believe that it's just a GUI to change the lowpri_throttle_enabled setting. It had no effect.