Mobile app version of vmapp.org
Login or Join
Chiappetta793

: JSX file placing stopped working I have a .jsx script I'm using to place a set of png files into a clipping group. Was working fine yesterday, today it fails with error code 9080: Unable

@Chiappetta793

Posted in: #AdobeIllustrator #IllustratorScripting

I have a .jsx script I'm using to place a set of png files into a clipping group. Was working fine yesterday, today it fails with error code 9080:

Unable to set placed item's file, is the file path provided valid? Or try to use the raster item instead.


Nothing has changed - same set of png file, same jsx. Problem is this loop:

for ( i = 0; i < files.length; i++ ) {
var name = files[i].name.slice(0, -4);
thisPlace = clipGroup.placedItems.add();
thisPlace.file = files[i];
}


Error throws on the final line - thisPlace.file = files[i].

files is a valid set of files selected from a given folder. Is there any other way I could try to achieve the same?

What else could be causing the issue?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta793

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme