PathItem problem

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Merlin

PathItem problem

Post by Merlin »

Hi!

I'm trying to create a script that deletes all pathitems with names that contain either Path or Work in them.
I have tried accessing the paths name in a number of ways but I only get so far that I can get the amount of paths in the active document. When I try
Code: Select allactiveDocument.pathItems.index(i).name
I only get undefined as an answer...
I'm running out of ideas so could anyone tell me the proper way to do it.

Thanks in advance
Guest

PathItem problem

Post by Guest »

Have you tried:

activeDocument.pathItems.index.name