Standalone viewer controlling listers

I'm wondering how legal / clean is it to control listers from a button in the viewer?

The script below worked well up to 12.3.4 (missed some betas) but in release 12.3.8 and 12.4.1 crashes frequently.

I use it to create a single folder image by selecting (cropping) images in the folder and saving them as folder.jpg (hiding and shuffling any previous ones to old). It then jumps up one to see what it looks like.

Is it okay to set attributes and change folders from the view or a better way?

I've played with the order of commands to little improvement and removing the UP helps more, but still crashes.

Thanks

Ps an aspect lock for the select function would be handy :slight_smile:

Show VIEWERCMD=copy
rename "fold*r.jpg" TO "folder_old.jpg" AUTORENAME
Clipboard PASTE=jpg:85 as "folder.jpg"
SetAttr "folder.jpg" ATTR h
Show VIEWERCMD=close
GO UP

Thanks for the report, I've been able to reproduce the crash and we'll hopefully have a fix for it in the next update.

Thanks Gents.