Skip to main content
Participating Frequently
October 27, 2011
Question

Setting PS5 Fonts with a VBScript

  • October 27, 2011
  • 1 reply
  • 1600 views

Just getting started with scripting.  Wrote a small VBScript to place a photo's file name as a caption, but cannot set the desired font. The caption's position and wording appear, but it's always in the current PS5 default font, and no error message appears.

Guessing that I'm not referencing a correct object/property/method, but don't see the problem.  Script is not available just now, or I'd include - will post again with the script if that's what's needed for some assistance.  Thanks!

This topic has been closed for replies.

1 reply

Inspiring
October 27, 2011

If VB is like javascript you have to use the font's postscript name. Which in most cases is not the same as the name displayed in Photoshop. For example on my system 'Arial Regular' requires 'ArialMT'

Participating Frequently
October 29, 2011

Thanks, Michael - that did the trick. How do I find the PostScript name for

any font named in Photoshop?

October 29, 2011

I wrote a script, for CS2 or later, which lets you obtain the PostScript name of a font according to family and style (using pop-up menus similar to the ones found in the character palette). The script, named "Get Font PostScript Name", is part of the JSON Sample Scripts and requires the JSON Action Manager library. It has been successfully tested in CS4 on Mac OS X, but should be platform agnostic.

HTH