PixInsight Forum (historical)

Software Development => PCL and PJSR Development => Topic started by: mcore on 2020 February 01 10:21:02

Title: Creating an icon from a script
Post by: mcore on 2020 February 01 10:21:02
Hi all -

I'm scripting my standard processing sequence.  I currently have scripts that calibrate and cosmetic correct new data, so that the first thing I need to do is subframe selection.  What I'd like to do is create subframe selection icons as the output of my script so that I can just click and go.  I've found the "writeIcon()" method of the ProcessInstance base class, but this only works to overwrite an existing process icon on the desktop.  What I'd like to do is create a new process icon and then write it.  Does anyone know how / whether this is possible?

Thanks.
Title: Re: Creating an icon from a script
Post by: Juan Conejero on 2020 February 03 09:20:29
Quote
What I'd like to do is create a new process icon and then write it.

This cannot be done yet. I plan on including a new Workspace core JavaScript object in version 1.8.9 of PixInsight, which will allow scripts to have full control over all workspaces, including workspace management, window and icon positions, dimensions and Z order, as well as creation of new process and image icons. So you'll have to have some patience to implement this; sorry for the inconvenience.