Export Layers as Files: Top Level Layers and Layers Sets

Is there a script that can do the following that ImageReady was capable of?
File/Export Layers as Files/
I know there is a script that can just export the layer as files, but what I want to do is export the "Top Level Layers and Layer Sets" so that I can send several layers grouped under a folder as one image.
Thanks! - j

Something like this should work:
// enable double clicking from the
// Macintosh Finder or the Windows Explorer
#target photoshop
// Make Photoshop the frontmost application
app.bringToFront();
// Start at the top of the layers stack and select each
// layer in turn
for (var i = 0; i < activeDocument.layers.length; i++) {
activeDocument.activeLayer = activeDocument.layers[i];
// Put all your processing functions... //
duplicateSelectedLayers(activeDocument.activeLayer.name);
var psdSaveOptions = new PhotoshopSaveOptions();
app.activeDocument.saveAs( File( "~/Desktop/" + activeDocument.name + ".psd" ), psdSaveOptions);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
// ...in the area between these two comments. //
function duplicateSelectedLayers(soParent){
var id2277 = charIDToTypeID( "Mk " );
var desc304 = new ActionDescriptor();
var id2278 = charIDToTypeID( "null" );
var ref144 = new ActionReference();
var id2279 = charIDToTypeID( "Dcmn" );
ref144.putClass( id2279 );
desc304.putReference( id2278, ref144 );
var id2280 = charIDToTypeID( "Nm " );
desc304.putString( id2280, soParent );
var id2281 = charIDToTypeID( "Usng" );
var ref145 = new ActionReference();
var id2282 = charIDToTypeID( "Lyr " );
var id2283 = charIDToTypeID( "Ordn" );
var id2284 = charIDToTypeID( "Trgt" );
ref145.putEnumerated( id2282, id2283, id2284 );
desc304.putReference( id2281, ref145 );
executeAction( id2277, desc304, DialogModes.NO );

Similar Messages

  • How do we fetch the top-level users and groups for a particular resource

    Hi Experts,
    I need to fetch the top level users and groups (permissions) for a particular resource, Currently i am able to fetch the effective users list.
    Thanks.

    To elaborate...
    Here we need the users and groups who have direct access to the resource. We dont want to resolve groups.
    Please help us with the apis to use in our java code to fetch the users and groups.

  • How make the Top-level Navigation and Content Area in one page as a whole?

    I want to make the Top-level Navigation and the Content Area in the one page as a whole displayed in user interface.In the default framework,the Top-level Navigation and the Content Area were contained  in 2 pages, So the vertical scroll bar could only control the Content Area. I want to control the full page with  one vertical bar like the page of "www.sdn.sap.com" Web.

    Hi Jianguo,
    One advantage of the external facing portal solution (SP14) is that the framework page is displayed in a single frame. Perhaps this could be of use to you.
    Hope this helps.
    Daniel

  • When I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    when I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    Oh, dear.
    If you use PSE as your external editor for iphoto, you need to save the images back to iphoto by using Save, not Save As and not changing anything like the name or format that would bring up the Save As window. (You may need to adjust the editor prefs>saving files>on first save to save over existing.)
    OR you can export the photos from iphoto to the desktop, use file>open in the editor and then change whatever you want and either import the saved image to the organizer or import it back to iphoto as a new file. What you are doing is extremely risky, particularly to the iphoto library which you may easily damage by your workflow.
    I would start the organizer holding down the shift key, then create a new catalog and switch to the new one. Then try opening the editor without opening an image and see if you get any farther.
    PSE and iphoto are not designed to be used as you've been doing. You are trying to write to the iphoto library from outside iphoto, which is the fastest known way to corrupt the library and lose all your photos.

  • Top-level KW and exiftools

    My KW are in overarching categories - animals, places, etc. - with a bunch of kw in each - monkey, deer, Peru, Canada, etc. The top level words are set not to export, and all works fine for exporting. The top level kw are still written to the XMP of the DNG though, and when doing kw copy operations with exiftools they get copied. Any thoughts on avoiding this?
    THANKS

    A checkbox under "Include on Export" that reads "Do not write to file XMP" would be a good addition. If you open the raw in a program like ACDSee, these show up as well.

  • Top Level Navigation and Web Page Composer

    Dear all,
    I've a Site on Web Page Composer, and on this I've many Web Pages, so I've generated a Site Navigation. The Site Navigation generate a Top Level Navigation entry (Portal Role with External Connector), in this case all pages are displayed on a single menu entry. I would like to separate the pages on some Top Level Navigation Entries, what is the recommended way to do it? Create the pages on separated Sites and generate Site Navigation for each on?
    To clarify I would like a menu structure like this:
    Info  (Top Level)
    Page1                        
    Page2                        
    Page5
    Customers (Top Level)
    Page 3
    Page 4
    Page 6
    Employees (Top Level)
    Page 7
    Page 8
    And just an one site with all pages on Web Page Composer.
    Best regards

    Hi,
    every Site Navigation creates only 1 navigation file that you can integrate into the users navigation.
    In your case:
    Role (PCD)
    Folder -> Info
    Folder -> Customers
    Folder -> Employees
    Create for every folder (that are entry points) in the role a web site in WPC.
    Ex:
    Web Site: Info
    Web Pages:
    Page1
    Page2
    Page5
    Create a site navigation and add the site navigation to your folder Info.
    br,
    Tobais

  • Can't export an EPS file from Photoshop CS5 and open in Illustrator CS5.

    I'm on Mac OS X Lion 10.7.5
    I am making DVD covers for print. The barcodes for the DVD covers have to be done in Illustrator. But the original designs are done in photoshop including the text. For years this hasn't been a problem. Right before adding the barcodes I create an EPS file from photoshop, open that file in Illustrator and all my text is automatically coverted to perfect crisp clean vectors, viola! I add the barcodes and export the PDF for the printers.
    But now I can't open my EPS files in Illustrator CS5 even though I'm exporting them the same way I always have from Photoshop CS5. Illustrator says... "The operation cannot complete because of an unknown error." --> Note it does not give an error number after this warning like I see it does for so many other people.
    I have been trying to fix this for over 10 HOURS spanning 2 days! I'm infuriated I can't get help from Adobe on this and have read all the forums and don't see my problem listed anywhere.
    I've tried:
    - Deleting the .plist file and the Settings folder & resetting my permissions
    - Uninstalling and Reinstalling Illustrator
    - Turning off all other applications
    - Creating more disk space on my hard drive (even though I have 200gb available)
    - Restarting the computer
    - Disabling my Font book and still I can't open the EPS file
    I thought maybe it's possible it's the font I'm using Fontesque OT so I even tried converting text to objects prior to exporting the EPS file from photoshop to illustrator and turning off my font book, but still it won't open. And if I open the PSD directly in Illustrator, text comes out a bit fuzzy in the PDF I export.
    If anyone can provide any solutions I would be so grateful! I'm at my wits end here, this should have taken under an hour to do and now it's ruining my entire weekend. I'm completely panicked because I was suppose to have these to my client over the weekend so they could turn them in for Print frist thing on Monday morning and of course Adobe provides no chat support or phone support after 7pm on weekday or on the weekend which is when this all started.

    I never even thought of reinstalling photoshop, but I think this was a font issue. I'd never saved an EPS with Fontesque OT Regular enabled, only Fontesque OT Bold. Somehow I think the font was causing the problem because ridding the font from the equation allowed me to open the EPS file.
    After 12 HOURS of trying different things I found a WORK AROUND...
    I had to:
    - Select the Text in Photoshop (with Fontesque OT enabled)  --> Select Create Work Path --> Covert to Shape on each of the text items
    - Save EPS file out of Photoshop
    - Disable Fontesque OT font in Font Book
    - Then open EPS in Illustrator add in my Barcodes and export the PDF
    (the barcodes have to be added in Illustrator because they need to be pure 100% black with no CMYK color in them. You can't save them out of Photoshop that way, only Illustrator, otherwise I would have made my pdf straight out of photoshop like any other normal human
    This work around is the only way I could get the EPS files to open in Illustrator and still have the text remain super crisp like a vector.
    NOTE to others in the future about crisp text from Photoshop to Illustrator:
    - Simply "converting to shape" did not preserve the vector. You have to Select Create Work Path --> then Covert to Shape on each of the text items (with the font enabled) for this to work and preserve the crispness of the text. Even creating "smart object" did not truly preserve my vectors or the text crispness in the EPS file once I imported it into Illustrator.
    DrStrik9 thank you SO MUCH for trying to help me. You did give me ideas that helped me figure out the workaround and also helped me feel not so alone as I struggled through this. I'm going to follow up with your other suggestions about reinstalling photoshop and also checking my RAM, etc. But I just want to that you so so so SOOOO much for all your time and consideration in this matter. I hope you have a wonderful amazing week ahead and that someone does something very nice and thoughtful for you too

  • When I export a AAF file from Protools 9 and Import the file into Logic ProX the drum track is out of sync.  I created the drum loop using NI Maschine.  Has anyone else seem this??

    When I export an AAF file/project from Protools 9 using an external drive and import the AAF into Logice Pro X the drum track does not play correctly.  It is out of sync with the rest of the track.  I created the drum loop as a plugin using Native Instruments Maschine. Has anyone else had this problem??  Also how would I go about exporting the midi tracks from the Protools session.  The midi track does not show when the file is imported to Logic Pro X.  The midi data should export with the AAF file correct??

    Are you using any plugins in Logic?
    In Preferences/Audio  under the General tab, how do you have the plug-in-latency compensation set?

  • In application builder the top level vi is always set to "run when opened"; how do I turn this off so I don't have to change it each and every time I build a .exe??

    I build a lot of executables using Application Builder under LabVIEW and in every one I build, I don't want the top level vi to take off and run when I open the executable. Currently, I edit each .exe I build within Application Builder and change the option of "run when opened" from Yes to No for the top level vi. All the other subvi's are already set to No. It would seem as though there should be some way to "turn this off" if you will so the top level vi is not always set to "run when opened" by default within Application Builder. Is there such a solution that anyone knows of?? Any help would be apprec
    iated... thanks...

    Indeed the Application builder forces "run when opened" to true for top levels VIs. If you don't want your VI to make any real work when the application starts, you should simply put a do-nothing loop in the beginning of the VI that will loop until the user presses a boolean. It will be more intuitive for users to press a Run button on the FP than clicking on the white Run arrow in the bar.
    LabVIEW, C'est LabVIEW

  • How can LabView export Power point file page per page and read it by picture(jpeg type)?

    I want to get data from power point,read it page by page and show data as picture ( jpeg type)
    anyone know how to do,Please discuss in this topic.
    I'm really need your help so much.
    and if need active X,What is dll file for it ? and How to get dll file exam.vb6runtime , dotnetfix ?
    Thank you Sr.

    There is no tool for this already in the world? (getting the jpgs)
    my try would be:
    digg in the MS KBs about command line options of PP
    start PP with the (system) execute vi , full screen presentation (automatic show with known delay??)
    use the (system) send key vi to step through the presentation (if no auto mode is possible)
    use the screen shot function to cature the screen and search this forum on how to save it as a jpg (or png? )
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • How can I export a pages file to a .doc and retain the formatting?

    Every time i have tried the export and save as a copy features the formatting gets screwed up and leaves me with strange page margins and all my spacing is off. I have to submit a double spaced document with 1" page margins. I have tried the double space feature in pages and using a single space format and then physically putting a space in between lines. Either way i end up with a single spaced paper with an extra long and wide page on the .doc save/export. Any tips on how to retain the formatting between pages and word?

    Dylan
    I have emailed back the fixed file and Word Export.
    You had a return after every single line. That is not necessary, it is a Word Processor and will wrap text as needed. Just hit return for the ends of paragraphs.
    You also had extra returns in the Header, I was unsure of what you wanted there so made it double spaced like the rest.
    There is an excellent book "The Mac is not a Typewriter" by Robin Williams, not sure if it is still in print but it is a good read.
    Peter

  • Passing structures bet top level functions and DLL's

    I need to access information stored in a structure(manipulated within a DLL)
    from
    the calling function. I defined the structure in the DLL include file and
    #include "dll_include.h"
    in the source code. The dll function manulipates the contents of the structure
    as desired; however,
    I can not get access to that structure from the calling function. If anyone
    has any ideas, I would
    certainly appreciate the help
    Phil

    Hi Phil
    I think the key for this problem is simply to export that structure in the
    dll that you want to access from the other app.
    for example if you write in your dll_include.h file something like this:
    typedef struct
    ULONG ID;
    CHAR Name[32];
    } MY_APP_PERSON,*P_MY_APP_PERSON;
    typedef void (*SET_PERSON)(void);
    then in your dll source write:
    #include "dll_include.h"
    DLLEXPORT MY_APP_PERSON DllPerson;
    DLLEXPORT void SetPerson()
    DllPerson.ID = 3;
    lstrcpy(DllPerson,"Daniel A.B");
    In your other application which uses this dll write:
    #include "dll_include.h"
    static P_MY_APP_PERSON AppPerson;
    static SET_PERSON SetPerson;
    void main()
    HINSTANCE dllHandle;
    dllHandle=LoadLibrary("Persons.dll");
    if(dllHandle)
    AppPerson=(P_MY_APP_PERSON)GetProcAddress(dllHandle,"DllPerson");
    SetPerson=(SET_PERSON)GetProcAddress(dllHandle,"SetPerson");
    // Watch here with the debbuger the AppPerson structure state it
    will probably containt dirty data
    SetPerson();
    // Now watch again the value of AppPerson and see it was changed
    by calling SetPerson
    Phil Spratt wrote in message
    news:[email protected]..
    >
    > I need to access information stored in a structure(manipulated within a
    DLL)
    > from
    > the calling function. I defined the structure in the DLL include file and
    > #include "dll_include.h"
    > in the source code. The dll function manulipates the contents of the
    structure
    > as desired; however,
    > I can not get access to that structure from the calling function. If
    anyone
    > has any ideas, I would
    > certainly appreciate t
    he help
    > Phil

  • How do I create a LLB that includes the top level VI and all SubVis for LabVIEW 8.0.1?

    I've searched the boards, and I have not found a solution for creating
    a LLB with all subVIs for LabVIEW 8.0.1.  I've seen the answer to
    use Save With Options.  I haven't been able to locate this. 
    I'm not too familiar with all of LabVIEWs options, so I greatly
    appreciate any help that can be offered on this.

    You can do Save As... and then go to Duplicate Hierarchy to new location and then under Packiging options, select custom and then check the box that says save as llb.
    Yo u can also specifiy the loaction of the files in this screen.
    Kenny
    Kenny

  • Export to AVI file too large! The secret setting to smaller AVI files is?

    The recent death of a internationally respect friend has put me in a position of creating a memorial video for an upcoming event—and it should have been finished 2 days ago! So I'm pressed for time.
    The problem is the display format: a large digital picture frame that also shows stereo video, but only in AVI format. We've tried .mov, .mpeg, .divx, .wmv, .vcl, .mpg1 to 4... Nope. It's got to be .avi or the picture frame balks. (Really, any .avi movie plays fine and no other format works.)
    So I've taken the 5-minute memorial video, exported it as AVI and it comes out okay—except the smallest file size I can get is over 1.12GB! Whew! By comaprison, exporting to DIVX would get it down to around 100MB with decent quality. But 1.12GB is simply too huge for such a short video.
    What's the correct export in FCE for lowest possible AVI yet still have good video?

    Note: All video was transferred from a Panasonic NV-GS250 digital tape camera. It's 5 years old.
    I've played with three codecs and the lowest file size I can achieve is roughly 400Mb in Cinepak Low Quality at 25fps, but regardless of the Cinepak setting (very low or very high) the picture quality is awful and washy, colors pixelate and come and go—and it doesn't matter if the video is showing still images or motion. Not useful at all. The colors are "millions" and changing that to 256 immediately shoots the file(s) up to over 12GB! (Yet I'd think it should be the other way around.)
    Cinepak, DV-PAL, and DVCPRO-PAL are the three compressions I've tried, and the PALs convert with good picture quality and good sound to a minimum 1.2GB all the way up to over 20GB for a 5-minute video; Interlaced or Progressive doesn't reduce anything; of these None is the lowest. I +haven't tired+ DVCPRO50-PAL and neither any NTSC compressions (because I live in Germany). But this is for a digital picture frame—that I cannot change and for some weird reason will only support AVI—and it's not a T.V., rather it's no different that any modern flatscreen computer display. So how should PAL or NTSC make a difference?
    Sound compression has been tried at ALaw 2:1 and µLaw 2:1, but they also seem to keep the overall file size too large. So I've been working more with None. Using 8 bit actually increases file size over 16 bit, and I've noticed little difference between mono or stereo.
    I've worked with FCE for nearly 2 years and have never had such a headache over file sizes. But now I've met my match with AVI.

  • How to exclude top-level keywords from export?

    Hi,
    I have keywords organised into a hierarchical structure; I never want the top-level keywords to appear in the exported image but can't find a quick way to do it.
    I can make it work by going to one of it's children and editing that keyword tag, unchecking the "export containing keywords" however I can't see a way of batch performing this action and the number of keywords I have make it impractical to do one by one.
    I tried clicking on the top-level keyword and unchecking the export option. It still exports and is even listed when I make the keyword tags dropdown "Will Export".
    If any of your gurus know the answer or can explain how I am misunderstanding the export terminology, please let me know...
    Thanks,
    Steve
    PS I have tried exporting with & without option "Write Keywords as Lightroom Hierachy"

    Thanks for that - its nearly right but I had tried doing that already and it didn't work.
    The reason why is when simply unchecked the Export Containing Keywords and Export Synonyms remain ticked but greyed out. I assumed that having been greyed out they are no longer effecting the output in any way but I was wrong.
    So, simply uncheck ALL the items in that dialogue box for top-level terms.
    Thanks again!

Maybe you are looking for

  • How do you automatically stick images together without merging?

    I have to make an animation for a game, and I have to put a large numer of images exactly next to eachother in a line. This takes a lot of time to do by hand. Is there a way (or software) to do this automatically? Thanx! -x-

  • Software Updates for Remote PXI System/DAQ-mx Self Test

    1) In MAX, I'm attempting to run the Labview Realtime Software Installation Wizard. When I select the software for install, I get an error "Cannot Process Install because other Dependencies are required: Labview RT 7.1.1". What should I do to correct

  • Report KSB2 - CO Committment line item  for Cost center

    When the report is executed, system provides the Fiscal year as next year data. Can some body help me in understanding why system behave like this. regards ARvind

  • Die Abgleichung mit outlook funktioniert nicht mehr

    Ich benütze Outlook als Kalender etc. auf meinem Notebook. Seit drei vier Wochen kann ich die Termine mit meinem I-Phone und I-Pad über I-Cloud nicht mehr abgleichen. Im Outloo lässt sich das I-Cloud Kalender Fenster nicht mehr aktivieren. Der Termin

  • Layer3 switch and router

    I have a network that I need to connect to the internet. All internal vlans point to a couple of layer 3 switches. On the layer 3 switch I connected a router for internet access. On the inside interface of the router I gave it an ip address of 10.1.0