Load selected images AND Apply Action from Browser

Here everybody can post his problems with PhotoLine
gennadiy
Mitglied
Posts: 51
Joined: Tue 23 Jan 2018 10:06
Location: Russia

Load selected images AND Apply Action from Browser

Post by gennadiy »

Is it possible to do this for one action from the browser? Sometimes it would be useful such an opportunity.
Martin Huber
Entwickler
Entwickler
Posts: 3721
Joined: Tue 19 Nov 2002 15:49

Re: Load selected images AND Apply Action from Browser

Post by Martin Huber »

The context menu of the browser has the command "Apply Action". Is that what you are looking for?
gennadiy
Mitglied
Posts: 51
Joined: Tue 23 Jan 2018 10:06
Location: Russia

Re: Load selected images AND Apply Action from Browser

Post by gennadiy »

I would like to be opened in the editor, and then the action applied to the open.
For example, I need to create a copy of the layer and apply some filter to the selected from the browser.
Martin Huber
Entwickler
Entwickler
Posts: 3721
Joined: Tue 19 Nov 2002 15:49

Re: Load selected images AND Apply Action from Browser

Post by Martin Huber »

You can do that with a simple script:

Code: Select all

Dim pl
Dim doc

Set pl = CreateObject("PhotoLine.Application")

For Each doc In pl
	doc.DoOperation "Action", "Name", "DocumentAction"
Next
This script applies the action named "DocumentAction" to each opened document.
To execute the script you will have to save it as text file with the extender ".vbs", for example "ActionToDocuments.vbs". Double-clicking in Explorer will execute it.

So the needed steps are:
- Select the files in PhotoLine's Browser
- Open them using the context menu
- Execute the script by double-clicking it in Explorer.

Martin