Skip to main content
Known Participant
August 5, 2021
Answered

Error in action with script when started from Bridge but not Photoshop

  • August 5, 2021
  • 1 reply
  • 764 views

Hi,

 

so I got a few actions for convenience, one of them I use to precess PSDs/PSBs to flattened Tiffs while removing guides/paths/alphas. 

For some reason I cant understand when I start the action for Bridge it gives and error which I've tracked to the clear paths script, but the same action works flawlessly if started from Photoshop (using source and destination folders).

 

Start Batch

File: "/Volumes/Work SSD/XXXXXXXXX/210525_XXXXXX9755.psb"
Error: Could not complete the ScriptingSupport command because of a program error. (-1)

 

Script in question:

 

app.displayDialogs = DialogModes.NO;

activeDocument.pathItems.removeAll();

app.displayDialogs = DialogModes.YES;

 

Its not a dela breaker but there's some convinience in deploying actions on particular files in a folder.

 

Thanks.

This topic has been closed for replies.
Correct answer Kukurykus

 

displayDialogs = DialogModes.ALL

 

 

For me script works starting from Bridge. For a test create 'pth' folder on desktop and copy to 210525_XXXXXX9755.psb. Try Batch from Bridge again on 'pth' folder with that file.

1 reply

Kukurykus
Legend
August 5, 2021

The second code you posted is not supposed to work in Bridge, but only in Photoshop.

Known Participant
August 8, 2021

Um aware of that,I'm referring to start the action in Bridge in selected files to be handled by Photoshop in Tools-> Photoshop -> Batch

 

It's a Photoshop error not Bridge, but only triggered when started from Bridge.

Kukurykus
KukurykusCorrect answer
Legend
August 8, 2021

 

displayDialogs = DialogModes.ALL

 

 

For me script works starting from Bridge. For a test create 'pth' folder on desktop and copy to 210525_XXXXXX9755.psb. Try Batch from Bridge again on 'pth' folder with that file.