Apply modification layer or other action to multiple pages
-
- Mitglied
- Beiträge: 131
- Registriert: Do 11 Sep 2008 21:03
- Wohnort: Tolmezzo (UD) Italia
Apply modification layer or other action to multiple pages
Is it possible to apply a modification layer or some action to every page from a multipage document? For example: add a histogram correction to all 200 pages of a PDF document, merge Layers and convert entry document to black&white.
-
- Entwickler
- Beiträge: 4176
- Registriert: Di 19 Nov 2002 15:49
Re: Apply modification layer or other action to multiple pages
I am assuming you're on Windows:
If you don't mind using the beta version of PhotoLine, the easiest way is to use the attached script:
- Record an action for a single page that achieves the desired result. The script sets the first layer of a page as the active layer, and the action should take that into account.
- You can either start the script by using the command line and by typing "cscript c:\path\to\script\ActionToEveryPage.vbs" or by copying it to the PhotoLine preferences folder in the "Automation" subfolder (if it doesn't exist yet, you'll have to create it). In the second case, it appears in the main menu under "Filter > Scripts" after a restart of PhotoLine.
- When you execute the script, it will ask you for the name of an action and will apply that action to every page of the active document. Spelling and uppercase/lowercase of the action name has to be correct.
On macOS it works analogously.
Martin
If you don't mind using the beta version of PhotoLine, the easiest way is to use the attached script:
- Record an action for a single page that achieves the desired result. The script sets the first layer of a page as the active layer, and the action should take that into account.
- You can either start the script by using the command line and by typing "cscript c:\path\to\script\ActionToEveryPage.vbs" or by copying it to the PhotoLine preferences folder in the "Automation" subfolder (if it doesn't exist yet, you'll have to create it). In the second case, it appears in the main menu under "Filter > Scripts" after a restart of PhotoLine.
- When you execute the script, it will ask you for the name of an action and will apply that action to every page of the active document. Spelling and uppercase/lowercase of the action name has to be correct.
On macOS it works analogously.
Martin
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
-
- Mitglied
- Beiträge: 131
- Registriert: Do 11 Sep 2008 21:03
- Wohnort: Tolmezzo (UD) Italia
Re: Apply modification layer or other action to multiple pages
My mistake not to mention my OS, but you're wrong. I'm on macOS 10.13.6.
Do you mean there will be a new function to do this in next version of Photoline?!Martin Huber hat geschrieben: ↑Mo 17 Dez 2018 16:27 If you don't mind using the beta version of PhotoLine
Can't figure how. I tried to create a "Automation" folder inside "~/Library/Preferences/Photoline", but can't see any new command in Menu "Filter".
-
- Entwickler
- Beiträge: 4176
- Registriert: Di 19 Nov 2002 15:49
Re: Apply modification layer or other action to multiple pages
Then you'll need an AppleScript version of the script. I've attached one.
To use it, you can either copy it to "~/Library/PreferencesPhotoLine/Automation" or double-click it in Finder. Double-clicking should start the Script Editor (an Apple application) where you can start the script. Script Editor even allows to save the script as an application.
Before executing the script, start PhotoLine and load your document.
Martin
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
-
- Entwickler
- Beiträge: 4176
- Registriert: Di 19 Nov 2002 15:49
Re: Apply modification layer or other action to multiple pages
No, it just means that we are continually enhancing the scripting interface of PhotoLine.borgo1971 hat geschrieben: ↑Di 18 Dez 2018 18:17Do you mean there will be a new function to do this in next version of Photoline?!Martin Huber hat geschrieben: ↑Mo 17 Dez 2018 16:27 If you don't mind using the beta version of PhotoLine
Martin
-
- Mitglied
- Beiträge: 131
- Registriert: Do 11 Sep 2008 21:03
- Wohnort: Tolmezzo (UD) Italia
Re: Apply modification layer or other action to multiple pages
OK, thanks. I'll try it and I will study how to expand PhotoLine automation with AppleScript. But for simple tasks like add the same modification layer to all pages of a document, is this the unique way?Martin Huber hat geschrieben: ↑Mi 19 Dez 2018 11:36 Then you'll need an AppleScript version of the script. I've attached one.