Skip to main content
Participant
May 23, 2022
Question

Stylistic Alternates within Photoshop Script

  • May 23, 2022
  • 2 replies
  • 198 views

Is there possibly a way to set the stylistic set, or set stylistic alternates to true within a photoshop script? I've written a script to read a .txt file, write each line within it on an image and export, however I need to use single decker lower case a's rather than double decker a's <--- these type. In photoshop I can select the stylistic alternates in the text panel properties, but I need a way of doing this in script. Any ideas how to change this?

This topic has been closed for replies.

2 replies

Legend
May 24, 2022

It is possible but its a PITA, you have to use Action Manager code to do so. I'm not sure that all stylistic choices available in the GUI are also available in AM code.

c.pfaffenbichler
Community Expert
Community Expert
May 24, 2022

If something is not accessible via DOM in Photoshop AM is the alternative. 

And considering the limited control over Type Layers DOM offers it seems likely that AM is indeed the only hope in this case. 

c.pfaffenbichler
Community Expert
Community Expert
May 24, 2022

Have you tried recording the operation with ScriptingListener.plugin?