Path to Photoshop Plugins/Panels Assets Folder

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

Perfect Tom - works like a charm.
One last question and I hope not to bother you anymore.
This is going back to the last script you helped me with in opening a file from the extension panels folder (everything is working perfectly). I want to add one last item to the script that automatically closes the file from the extension folder without saving. These are template files that I do not want the user changing.
The steps of the script are:
1. Open the file from the extensions folder
2. Duplicate the layer to another open file
3. Close the file - This is where I want the file closed without saving in case the user duplicates the layer in to the same file that came from the extension folder.
I have this code, but do not know how or where to put it:
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
/* LSS 1  */
// Open File
function selLssall(inPanelLocation)
  var idOpn = charIDToTypeID( "Opn " );
    var desc176 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc176.putPath( idnull, new File( inPanelLocation + "/lss/lss-1.psd" ) );
  executeAction( idOpn, desc176, DialogModes.NO );
// Duplicate Layer and select the file to insert the layer into
    ErrStrs = {};
ErrStrs.USER_CANCELLED=localize("$$$/ScriptingSupport/Error/UserCancelled=User cancelled the operation");
try {var idDplc = charIDToTypeID( 'Dplc' );    
    var desc1020 = new ActionDescriptor();    
    var idnull = charIDToTypeID( 'null' );        
    var ref834 = new ActionReference();        
    var idLyrsp = charIDToTypeID( 'Lyr ' );        
    var idOrdn = charIDToTypeID( 'Ordn' );        
    var idTrgt = charIDToTypeID( 'Trgt' );        
    ref834.putEnumerated( idLyrsp, idOrdn, idTrgt );    
    desc1020.putReference( idnull, ref834 );
    executeAction( idDplc, desc1020, DialogModes.ALL );
    } catch(e){if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;
            } else{alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=The command is currently not available"));}}
// Close File - this is where I want the file close with out saving it
    ErrStrs = {};
ErrStrs.USER_CANCELLED=localize("$$$/ScriptingSupport/Error/UserCancelled=User cancelled the operation");
try {var idClssp = charIDToTypeID( 'Cls ' );
    executeAction( idClssp, undefined, DialogModes.ALL );
    } catch(e){if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;
            } else{alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=The command is currently not available"));}}
One again thanks - Sam

Similar Messages

  • Photoshop CC Image Assets Folder Question

    Can I move my Photoshop CC generated Image Assets folder away from the native file and keep it connected for updating?

    It will only generate assets to the parent folder.  You can move the folder, but it will recreate it.

  • @loader_path problem for photoshop plugin on Mac

    Hi experts,
    One of my photoshop plugin (a file format plugin) depends on Qt, so I add the libQtCore.4.dylib and libQtGui.4.dylib in the same folder of my binary in my bundle ( that is '/Contents/MacOS' ), and reference them as @loader_path in my plugin.
    My plugin is a universal binary. it works all fine with the 64bit photosho , but the problem is in 32bit of photosho, when I click the 'About' to display my about dialog and then click open to open my file, photoshop said 'Out of RAM'. This problem doesn't happen if I click open first and then about.
    I tried to put the Qt libraries in the /usr/local/bin, and referece them in my plugin with full path, (that is /usr/local/bin/libQt**), all things are all right, So I'm wordering if there is some problem with the plugin loading with the '@loader_path‘ reference.
    Any help will appreciate.
    Thanks,
    D.J.

    Here are the links for downloading.
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 , CS4 Web Standard | CS3 | CS2
    See this link if you still have issues: Troubleshoot download problems

  • Assets folder in my website

    I'm using Dreamweaver cs3 and when I designed this site I was
    unaware of the assets folder so my images, script, and templates
    folders are floating around the root site folder not neatly placed
    in the assets folder. Will it work if I create a folder, name it
    assets, and place all the necessary other folders inside it?
    Jacqueline

    > I'm using Dreamweaver cs3 and when I designed this site
    I was unaware of the
    > assets folder so my images, script, and templates
    folders are floating around
    > the root site folder not neatly placed in the assets
    folder. Will it work if I
    > create a folder, name it assets, and place all the
    necessary other folders
    > inside it?
    > Jacqueline
    >
    Do any file moving or renaming in the Dreamweaver Files
    Panel, then click
    yes to updating paths in files.
    If you move things outside of dreamweaver on the hard drive,
    you will get
    broken links.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Path to the extension panel's directory from ExtendScript .jsx

    Hi!
    Is there a way to get the path to extension panel's folder from the external (or embedded) .jsx script?
    Both $.fileName and  "catch( err ) {  where = File(err.fileName); }" return the path to "Adobe Photoshop CS5".
    Thank you!

    I read the original post wrong.
    This is the function I use for InDesign scripts:
    getScriptsFolder = function() {
        try {
            var script = app.activeScript;
            return new Folder( script.parent.parent );
        } catch(e) {
            // we are running from the ESTK
            var script = File(e.fileName);
            var a = script.absoluteURI.split( "/" );
            var a1 = [];
            for ( var i = 0; i < a.length; i++ ) {
                a1.push( a[ i ] );
                if ( a[ i ] == "Scripts" ) {
                    a1.push( a[ i + 1 ] );
                    break;
            return new Folder( a1.join( "/" ) );
    Running as a script in ID, it'll just return the scripts folder. But, if that line errors, ES error objects contain a reference to the script File.
    I don't know if this will work in the context of a CS Extension panel or not, but it's certainly worth a try.
    Bob

  • Can't find workflow panels/actions folder in PSE 9

    Hello.
    I'm tring to install an action (APE-High-Impact.atn; MarkGaler.com) which is looking for a workflow panels/actions folder. I don't find any such. Am using PSE 9, Win 7.
    Got any suggestions please and thanks in advance,
    Jim

    Ok those are the program files, not the program data.
    Try pasting or typing this path into the search box at the bottom of the start menu and then hit the enter key.
    C:\ProgramData\Adobe\Photoshop Elements\9.0\Locale\en_us\Workflow Panels
    right click inside the search box and choose paste:
    then this should appear and then press the Enter button on the keyboard:
    then a folder view similar to this should open:

  • Why are some images being exported to Assets folder?

    On my desktop I have the structure of an Assets folder and within that a Images folder.  When I export to HTML it puts a few of the images in the Assets folder.  They are ones that are hyperlinked from a smaller image so that when they click on the smaller image the larger jpg opens in a new window.  I have security on the Assets folder on the server so I don't want these to go in there.  I am having to manually move them into the Images folder and then update the links in the HTML files.  Is there a way to make them go into the Images folder like all the rest of the images are automatically doing when I export?  By the way I don't want them to be a Lightbox slideshow.  They are large images so I want them in a window so the person viewing them can move around in the browser to view the image if they have a smaller monitor.

    Using Acrobat DC and the acrobat arrow tool. By right clicking on an image a submenu pops up. One of the items in that list is "Edit Image".  Ordinarily or historically this would then open the image in Photoshop as a temp file. Edits could be made and saved and the image would be auto updated back into the PDF.  In DC when selecting edit image, the document goes into a edit mode and the entire file gets converted into RGB color.  From here one could again right click on the same image and get the option to edit using another program, (like photoshop).  When returning back to document mode, the RGB conversion remains.
    I determine the files are converted to RGB by using the inspector tool in Acrobat as well as looking at the colorspace in Photoshop
    I determined the files were CMYK by building them that way and again verifying using Pitstop inspector.
    Following screen grabs show image before / and after selecting "Edit Image"

  • How do I use a shape as a Path in Photoshop?

    i've tried creating a path in Photoshop and tried dragging the shape from the library but it will not drag to a path. When I drag a shape to a layer in Photoshop it is rasterized.
    How do I get a shape to go onto a path in Photoshop? Also, If this can be done, will the path still be editable with points and handles as is normal for paths?
    TIA,
    Ken

    Have you tried googling »photoshop watermark tutorial«?
    There used to be a Watermark Panel available.
    http://av.adobe.com/russellbrown/Watermark_SM.mov

  • Cannot export a panel into adobe cs5 plugin/panels

    this is the error message I reecive
    after creating and saving the panel in my documents folder
    can not export the panel to the cs5 plugins\panels

    Hi
    The images you posted are not displayed
    Anyway if you work on a windows system ,are you sure you run Configurator 2  as an administrator ( right click on  Adobe Configurator 2 program  icon > run as administrator) in order to export your panel to the cs5  plugins/ panels folder ?

  • Have Photoshop remember panel size

    My panel has dynamic content so its size need to be adjusted by the user after it has loaded.
    However, whenever I restart Photoshop the panel resizes to the dimensions set in Configurator.
    Is it possible to have Photoshop remember its last size?
    My panel is created with Configurator 4.

    This should already be possible if the "Persistent" option is set to "Yes". In Configurator, you can find this setting on the righthand side, in the "Basic Attributes" section.
    If you have already exported a panel, you can modify it without re-exporting by modifying your panel's xml file. This should be located within its "content" folder, and would be named after the project, as: "<ProjectName>.xml". Inside that file, usually about 5 lines down, is a line that contains the property setting "persistent=" (either "true" or "false"). Set that to true, and the panel size should be maintained between sessions.
    I just tested with a project of mine to make sure I wasn't full of it, and it worked even after shutting down and restarting PS.

  • Want to find assets folder in BC.

    I want to add a pdf file and then link it to a sentence. For that I have to find asset folder in muse.

    Hi,
    Kindly select the text or text frame that you want to add the hyperlink to, click on the Hyperlinks drop-down from the toolbar, and select "Link To File".
    Then, browse to the pdf file on your machine, and click on Open; this will automatically add the pdf to the assets. You may check the assets panel in Muse for the same.
    Hope it helps,
    Sonam

  • Photoshop Plugins in Creative Cloud?

    Can I use my Photoshop plugins, such as Portraiture or Retouch Me, in Creative Cloud?

    I fixed the issue for those interested.
    I copied the "imagenomic" folder that was in my CS6's plugin folder (Mac) to the CC's plugin folder.  I then "double clicked" the plug in and viola, when I now open Photoshop CC Portaiture shows up under my filters.
    dswebb, let me know if this works for you.

  • Creating my first Photoshop plugin

    Hi all,
    I am a programmer, I program in PHP, and Obj-C, I know C++ quite fair. I also Design web templates & code them. I need a plugin for photoshop, I searched it but I couldn't find it. So I thought I will try creating it for mysel & if it was nice I will share it too. But unfortunately I don't much help online for creating a very basic photoshop plugin.
    By the way, here are my requirments for that plugin:
    Most when I create my templates, I group layers e.g Button, Banner, CommentBox etc etc. Now all the related layers are gouped, but if I sometime want to move 2 layers from Buttons, 3 layers from Banner, & 1 layer from CommentBox group, so I select all those layers (Searching for them in my Layer palette ) & move all together. Now I want to move them again I will search for all these layers again across those groups, so I want to save layer selections. e.g I select a few layers across different groups, & save the selection as 'LeftObjects' & similarly select some more layers and save this layer selection as 'RightObjects'. Now whenever I need to select all those left layers together I click the 'LeftObjects' selection & select all the layers for me saving me from searching for those layers.
    I would really appreciate if someone could help, or suggest me  a step by step guide to a basic Photoshop plugin. I am a pretty good learner, so I would do it, but I just need a start.
    Thank you all
    Cheers.

    Actually you can do that with java script and a flex panel, but I don't see why because you can just use the link layers already in Photoshop, the only downside of linking is that you can't define any name for the link layer set.
    Anyway if you still want to develop that you can do it with javascript and flex or html5 for CC.
    For the Flash panels (Cs4,Cs5,Cs6) you can find the documentation here: Adobe Photoshop Panel Developer's Guide, as for the html5 panels for CC there are some great tutorials here: http://www.davidebarranca.com/.
    Also here are some java script functions to get the selected layers id's and select an array of id's.
    function getSelectedLayersIds(){// get the selected layers identifiers
      //( these id's are unique and they will not change if the layer name is changed or it's position in the layers editor will change)
      var idxs = getSelectedLayersIdx();// first get the indexes
      var selectedLayersIds = [];
      //for each index get the layer id
      for( var i=0;i<idxs.length;i++){
      selectedLayersIds.push(getIdfromIdx(idxs[i]));
      return selectedLayersIds;
    function hasBackground(){// function to check if there is a background layer
        var res = undefined;
        try{
            var ref = new ActionReference();
            ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID("Nm  "));
            ref.putIndex( charIDToTypeID("Lyr "), 0 );
            executeActionGet(ref).getString(charIDToTypeID("Nm  ") );
            res = true;
        }catch(e){ res = false}
        return res;
    function getIdfromIdx( idx ){// get the id from index
      var ref = new ActionReference();
      ref.putIndex(charIDToTypeID('Lyr '), idx);
        var desc = executeActionGet(ref);
        desc = desc.getInteger(charIDToTypeID("LyrI"));
        return desc;
    function getSelectedLayersIdx(){// get the selected layers index( positon in layer editor)
         var selectedLayers = new Array;
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
         var desc = executeActionGet(ref);
         var add = 1;
         if(hasBackground()){alert('hBck');add = 0}
         if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
              desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                   selectedLayers.push(  (desc.getReference( i ).getIndex()) + add);
         }else{
              var ref = new ActionReference();
              ref.putProperty( charIDToTypeID('Prpr') , charIDToTypeID( 'ItmI' ));
              ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
              srs = hasBackground()?executeActionGet(ref).getInteger(charIDToTypeID( 'ItmI' ))-1:executeActionGet(ref).getInteger(charIDToTypeID( 'ItmI' ));
              selectedLayers.push( srs);
         return selectedLayers;
    function doesIdExists( id ){// function to check if the id exists
      var res = true;
      var ref = new ActionReference();
      ref.putIdentifier(charIDToTypeID('Lyr '), id);
        try{var desc = executeActionGet(ref)}catch(err){res = false};
        return res;
    function multiSelectByIDs(ids) {
      if( ids.constructor != Array ) ids = [ ids ];
        var layers = new Array();
        var id54 = charIDToTypeID( "slct" );
        var desc12 = new ActionDescriptor();
        var id55 = charIDToTypeID( "null" );
        var ref9 = new ActionReference();
        for (var i = 0; i < ids.length; i++) {
        if(doesIdExists(ids[i]) == true){// a check to see if the id stil exists
             layers[i] = charIDToTypeID( "Lyr " );
             ref9.putIdentifier(layers[i], ids[i]);
        desc12.putReference( id55, ref9 );
        var id58 = charIDToTypeID( "MkVs" );
        desc12.putBoolean( id58, false );
        executeAction( id54, desc12, DialogModes.NO );
    The way I see the panel will be like this:
    first get the selected id's with the "getSelectedLayersIds()"  command , and create a metadata with the name of the set and the array of id's, also add in the panel one button with the name of the new set. I am thinking of the metadata because you can save it with the document and every time you will open the document you can read that data to populate your panel with the already saved sets.
    When you want to select back the layers from one set, just click on the button set from the panel, and from the metadata of the document search the name of the set and get the corresponding array of id's, than just use the "multiSelectByIDs( the array)" to select the layers.
    That's it I hope I was clear enough.

  • How to use imported paths from Photoshop/Illustrator as motion guides

    Hi folks,
    I've been raking the internet with no success for an answer to my question, but I've had no luck so far.
    What I'm hoping to achieve animation wise is to have a shape move around a set path that was created in Photoshop. The reason being, it's a very specific shape (near enough a square but with curved corners and a chunk missing out of one of the sides), and I used the paths feature in Photoshop to create it and stroke the path for the smoothest possible effect. What I'd ideally like to do is import the same path I used to create the shape into Flash Professional CS6 and then use that same path to guide a small symbol around the edge of the square.
    So far, I've worked out how to apply motion to a symbol through basic tweens, and then I can draw out a line using the pencil tool and apply that to the tween so it follows the pencil line instead of just going from point A to point B. The problem is, this looks awful...I'm not good enough with a mouse to create absolutely perfect shapes freehand, so I just want to be able to use the Photoshop path as my motion guide instead of having to make another one from scratch.
    I've looked around for various importing methods, the most success I've had is exporting the paths to an Illustrator file, and then importing the Illustrator file into Flash directly. However, I have NO idea where these paths go when they're imported, or how to access them. If I import them to the stage, they seemingly disappear before I've even seen them, and if I import them to the library they just aren't there.
    I could also do with a brief description of how paths work in Flash - I'm familiar with the Photoshop layout, what with the paths appearing in a panel next to the layers one (makes perfect sense to me, as you can just switch between the two panels to view whatever you want). I just don't understand how they work in Flash and what I should be looking for....
    Many thanks in advance for any help!
    Todd

    I had a play around with some variations of this. What I can't grasp is why Flash won't recognise my shape layer as a motion path. I've tried breaking it down, that doesn't work... I traced it narrowly in Photoshop and imported it as a thin line with a gap (so essentially a line with two ends), and it comes into Flash as a bitmap or something of that sort. I found an option that traces the bitmap, and appears to convert it into a shape layer...I've managed to find the optimal settings so the line is joined all the way through apart from the start and end points. The only thing is, Flash seems to not even notice this as a guide layer when I apply it to the symbol I'm trying to animate. It just doesn't even notice it's there. The object moves straight from point A to point B in a straight line, the guide layer does nothing to adjust the motion... Is it not possible for the traced line to act as a motion guide? It's a shape, it is a single line with a start point and an end point, and there are no other instances of anything else in the layer - just the line and nothing else.
    This seems way more difficult than it should be...I'm sure Adobe could have integrated a MUCH easier system for importing paths from Photoshop that actually exist in Flash rather than disappearing into some abyss instead!
    Here is a screenshot of what I'm working with: http://gyazo.com/4c1046767e1ee8bf99f65751b9ba81b8
    The long black oval is the shape I'm trying to animate. I've tried applying tweens to it while it's in shape form and while it's in every different symbol form, all to no avail.
    The black line is what I'm trying to use as the guide. Having looked online, people seem to be able to just use the "paste in place" option and it somehow knows exactly what they mean and animates around the line perfectly. I tried that and it didn't work (no surprise there), and then I tried the motion guide layer setup and it also didn't work. I'm not sure if tracing a bitmap into a shape layer somehow removes any possibility of the line being recognisable as a line or something...could that be the case?
    Is there a simple way to turn a shape layer (in this case the black line) into a motion guide that I'm missing? I thought just turning the layer into a guide layer would do the trick, but obviously not :/

  • Photoshop Plugin with License Key

    Hi,
    I want to hire a developer to build a plugin for my Photoshop resource website.
    I have a couple of questions and I'm hoping they can be answered here
    1. Is it possible to license key plugins for Photoshop (so we/I can control their use)
    2. Is it possible to push assets to a plugin from a web server - i.e push new packs of graphics like textures etc and have them automatically available inside the plugin by the userclicking"update" or "refresh" on the plugin
    3. Where do I hire a developer that can build Photoshop plugins?
    Thanks,
    Adam

    Hi,
    1) It is possible but it is not much of a protection, although it is option for asking from users some info (e-mail) at which you will send license key.
    2) Update from server is also possible.
    3) I suppose that someone here will see your post and react. (You can contact me, and depending on what you need my company may be interested )
    Regards,
    Momir

Maybe you are looking for