Groups > Corel > Corel Paint Shop Pro 8 > Re: init file / macro ?




init file / macro ?

init file / macro ?
Sun, 10 Feb 2008 02:54:10 -050
Is there any way to set up a macro
that is run whenever PSP8 starts up?

And/or, whenever an image file is opened?
Post Reply
Re: init file / macro ?
Sun, 10 Feb 2008 11:33:41 -060
JustMe wrote:
> 
> Is there any way to set up a macro
> that is run whenever PSP8 starts up?

PSP doesn't have macros (i.e. keystroke record/playback). It
does use scripts however. If you initiate PSP with a command
line that has the /script=Name_of_script parameter it will
run a the script when it starts.

> And/or, whenever an image file is opened?

I can't think of a way to trigger script execution upon the
occurrence of arbitrary events in PSP such as opening images,
creating layers, using specific tools, and so on.

If you ask your questions in the Scripting newsgroup giving
specifics of what you are actually trying to accomplish someone
like Suz Shook might be able to offer better advice. I have
no idea whatsoever as to what your script is supposed to do
but in some cases it might be much simpler to run the script
in batch mode on a folder full of images to make processed
copies of the originals and then to do your subsequent work in
PSP on these already processed images.
Post Reply
Re: init file / macro ?
Mon, 11 Feb 2008 12:08:03 -050
Spandex Rutabaga wrote:
> JustMe wrote:
>>
>> Is there any way to set up a macro
>> that is run whenever PSP8 starts up?
>
> PSP doesn't have macros (i.e. keystroke record/playback). It
> does use scripts however. If you initiate PSP with a command
> line that has the /script=Name_of_script parameter it will
> run a the script when it starts.
>
>> And/or, whenever an image file is opened?
>
> I can't think of a way to trigger script execution upon the
> occurrence of arbitrary events in PSP such as opening images,
> creating layers, using specific tools, and so on.

I don't know if you can trigger a script when an image is opened, either.  I 
can't think of a way to do this, but if you have a script you want to 
trigger each time you open an image, for example, you could assign that 
script to a keystroke, and then just hit that keystroke when you open the 
image.  Or you could record a script that opens an image and then does 
whatever else you want to do when you open an image, and then make the 
FileOpen step Interactive, commenting out the FileList and Folder 
parameters.  Run this script when you want to open an imag, and it will 
present the Open dialog for you with the last folder from which you opened 
files active.  Once you select the file to open, the script would then run 
the rest of your commands. Sounds like this might work for you.  SUz

>
> If you ask your questions in the Scripting newsgroup giving
> specifics of what you are actually trying to accomplish someone
> like Suz Shook might be able to offer better advice. I have
> no idea whatsoever as to what your script is supposed to do
> but in some cases it might be much simpler to run the script
> in batch mode on a folder full of images to make processed
> copies of the originals and then to do your subsequent work in
> PSP on these already processed images. 


Post Reply
Re: init file / macro ?
Tue, 12 Feb 2008 03:24:26 -050
SuzShook wrote:
> (. . .)
> I don't know if you can trigger a script when an image is opened, either. 
I 
> can't think of a way to do this, but if you have a script you want to 
> trigger each time you open an image, for example, you could assign that 
> script to a keystroke, and then just hit that keystroke when you open the 
> image.  Or you could record a script that opens an image and then does 
> whatever else you want to do when you open an image, and then make the 
> FileOpen step Interactive, commenting out the FileList and Folder 
> parameters.  Run this script when you want to open an imag, and it will 
> present the Open dialog for you with the last folder from which you opened

> files active.  Once you select the file to open, the script would then run

> the rest of your commands. Sounds like this might work for you.  SUz
> (. . .)

Thanks, Suz, I'll look in that direction and see what I can do with it.
Sounds promising.
Post Reply
about | contact