Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Plugin and Companion App SDK
Viewing all articles
Browse latest Browse all 54282

Path to Photoshop Plugins/Panels Assets Folder

$
0
0

I am one of those who is scrambling to recreate a panel that was made in Configurator to HTML5 so please bear with me.

 

For a javascript I am trying to find the path to a file in the "assets" folder within my panel for both Mac & Windows. I want the path to open a specific file. Here is the base code:

 

function selLss1(){var idOpn = charIDToTypeID( "Opn " );

    var desc176 = new ActionDescriptor();

    var idnull = charIDToTypeID( "null" );

    desc176.putPath( idnull, new File( "/assets/file.psd" ) );

executeAction( idOpn, desc176, DialogModes.NO );

}

 

"/assets/file.psd" is the file and I need to know how to tell Photoshop how to find and open this file in Mac's and Windows.

 

Thanks in Advance - Sam


Viewing all articles
Browse latest Browse all 54282

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>