Separate user initiated ( On Job ) as well as automatic ( On Cataloged ) Extensis Portfolio Server Side Scripts that apply an item's orientation value ( e.g. Landscape , Portrait , or Square ) to a desired Custom Field.
- Via the Portfolio Administration ( :8091 ) Web interface , verify the current version of your Portfolio instance. Although the provided Server Side Scripts may work on earlier Portfolio versions , Portfolio version 3.6.3 ( or greater ) is recommended.
- Windows Server : Via the Windows File Explorer , navigate to the
C:\Program Files(x86)\Extensis\Portfolio Server\data
folder and create thecustom-scripts
sub-folder ( if not already present ).- Verify that the
C:\Program Files(x86)\Extensis\Portfolio Server\data\custom-scripts
folder is now visible within the Windows File Explorer.
- Verify that the
- Macintosh Server : Via the Macintosh Finder , navigate to the
/Applications/Extensis/Portfolio Server/data
folder and create thecustom-scripts
sub-folder ( if not already present ).- Verify that the
/Applications/Extensis/Portfolio Server/data/custom-scripts
folder is now visible within the Macintosh Finder.
- Verify that the
- Copy the individual scripts ( .js file extension ) to your Portfolio instance's operating system specific
custom-scripts
sub-folder.
- Your Portfolio instance's
server.log
will contain individual[extensis.portfolio.server.scripting.ScriptManager] custom script '[script_name].js' was added
entries indicating proper script installation.- Verify that the user initiated script entry is now listed as a selection within the Portfolio Web and/or Desktop Client interface's Run Script tool.
- Note that automatic ( On Cataloged ) Server Side Scripts do not appear as selections within the Portfolio Web and/or Desktop Client interface's Run Script tool.
- Verify that the user initiated script entry is now listed as a selection within the Portfolio Web and/or Desktop Client interface's Run Script tool.
- Server Side Scripts should be viewed , edited , and maintained using a standard programmer's text editor :
- Windows 👉 Notepad++ ( https://notepad-plus-plus.org ).
- Macintosh 👉 Atom ( https://atom.io/ ).