Skip to main content
Kasyan Servetsky
Legend
Feb 6, 2025 2:00 PM UTC
Open for Voting

P: Typo in Photoshop ExtendScript API: SaveOptionsType instead of SaveOptions

The Photoshop ExtendScript API has a typo in the close method of the Document object. The saving parameter should be SaveOptions instead of SaveOptionsType.

4 replies

c.pfaffenbichler
Community Expert
Community Expert
Feb 7, 2025 8:11 PM UTC

Sorry, i had misunderstood.

Translate
Kasyan Servetsky
Legend
Feb 7, 2025 5:21 PM UTC

Hi @c.pfaffenbichler,

Yes, it works, I know. But there's a typo in the reference:

— Kasyan

Translate
c.pfaffenbichler
Community Expert
Community Expert
Feb 7, 2025 1:51 PM UTC

Could you post an example? 

Here 

activeDocument.close (SaveOptions.DONOTSAVECHANGES);

for example seems to work as expected. 

Translate
Sameer K
Community Manager
Community Manager
Feb 6, 2025 4:17 PM UTC

Hey, @Kasyan Servetsky. Welcome to the Photoshop Community. Thanks for pointing this out. I've shared this with the team for review & update.

 

Best,

Sameer K

Translate