Skip to main content
dfleming007
Participant
February 14, 2025
Question

javascript in photoshop not recognizing valid functions

  • February 14, 2025
  • 1 reply
  • 143 views

I am trying to place a single brushstroke on an image as a watermark. I'm encountering errors when I attempt to access the brush presets. A snippet:

var brushPresetName = "DFP Logo 1";
var brushPresets = app.brushPresets;
var brushPresetFound = false;
alert("app.brushPresets = " + brushPresets);

The following error is generated:

app.brushPresets = undefined

 

What am I doing wrong here? Any thoughts? I really appreciate your time. 

I am using Photoshop (Beta) on a new MacBook Pro.

1 reply

Legend
February 14, 2025

I'm not finding app.brushPresets as an application property. Where did you get this?

dfleming007
Participant
February 14, 2025

This is from a segment of code generated by AI.

 

dfleming007
Participant
February 14, 2025

Is there somewhere online that I can use as a reference for methods and properties?