Layers in groups to files, keeping directory structure

I have a PSD of thmebnails organized using layer groups and I want to export individual layers as files, but keep them in folders that mimic the layer group names.
For example:
PSD Layers Palette:
Layer Group Alpha
     Layer 1
     Layer 2
     Layer 3
Layer Group Beta
     Layer 1
     Layer 2
So when I save the layers to files, I would like to automatically be able to create a folder called Layer Group Alpha and put Layer 1, Layer 2, and Layer 3 as individual files inside. Then create a folder called Layer Group Beta and do the same with those files, etc.
Is this a thing?
Thanks in advance for any help and advice.

This should create the folders off the documents path and save the layers as jpegs....
#target Photoshop
app.bringToFront();
main();
function main(){
if(!documents.length) return;
var doc = activeDocument;
var LayerSetLayers=[];
var lSets = getLayerSets();
for(var z in lSets){
var lset = getChildIndex(Number(lSets[z]), true );
LayerSetLayers[Number(lSets[z])] = lset;
var allLayers=new Array;
for(var s in lSets){
    var layerSetTemp = LayerSetLayers[Number(lSets[s])];
    for(var f in layerSetTemp){
        allLayers.push(Number(layerSetTemp[f]));
for(var a in lSets){
    var layerSetName = getLayerNameByIndex( Number(lSets[a]));
    var outputFolder = Folder(doc.path +"/" + layerSetName);
    if(!outputFolder.exists)  outputFolder.create();
    for(var t in LayerSetLayers[Number(lSets[a])]){
        selectLayerByIndex(LayerSetLayers[Number(lSets[a])][t]);
        dupLayers("temp");
        var saveFile = File(outputFolder + "/" + activeDocument.activeLayer.name + ".jpg");
        SaveJPEG(saveFile,8);
        app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
function getLayerSets(){
   var ref = new ActionReference();
   ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
   var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
   var Lsets=[];
try{
    activeDocument.backgroundLayer;
var i = 0; }catch(e){ var i = 1; };
   for(i;i<count;i++){
       if(i == 0) continue;
        ref = new ActionReference();
        ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
        var desc = executeActionGet(ref);
        var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
        if(layerName.match(/^<\/Layer group/) ) continue;
        var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
        var isLayerSet =( layerType == 'layerSectionContent') ? false:true;
        if(isLayerSet) Lsets.push(i);
return Lsets;
function getLayerLayerSectionByIndex( index ) {  
   var ref = new ActionReference();
   ref.putIndex(charIDToTypeID('Lyr '), index);
   return typeIDToStringID(executeActionGet(ref).getEnumerationValue(stringIDToTypeID('layerSection')));
function getLayerNameByIndex( index ) {
    var ref = new ActionReference();
    ref.putIndex( charIDToTypeID( 'Lyr ' ), index );
    return executeActionGet(ref).getString(charIDToTypeID( 'Nm  ' ));
function skipNestedSets( layerIndex ){
   var isEnd = false;
   layerIndex = app.activeDocument.layers[app.activeDocument.layers.length-1].isBackgroundLayer ? layerIndex-2:layerIndex;
   while(!isEnd){
      layerIndex--;
      if( getLayerLayerSectionByIndex( layerIndex ) == 'layerSectionStart' ) layerIndex = skipNestedSets( layerIndex );
      isEnd = getLayerNameByIndex(layerIndex) == '</Layer group>' ? true:false;
   return layerIndex-1;
function getChildIndex(idx, skipNested ){
   var layerSetIndex = idx;
   var isEndOfSet = false;
   var layerIndexArray = [];
   while(!isEndOfSet){
      layerSetIndex--;
      if( getLayerLayerSectionByIndex( layerSetIndex ) == 'layerSectionStart' && skipNested ){
         layerSetIndex = skipNestedSets( layerSetIndex );
  if(getLayerLayerSectionByIndex( layerSetIndex ) == undefined) break;
      isEndOfSet = getLayerNameByIndex(layerSetIndex) == '</Layer group>' ? true:false;
     if(!isEndOfSet ) layerIndexArray.push( layerSetIndex );
   return layerIndexArray;
function selectLayerByIndex(index,add){
add = (add == undefined)  ? add = false : add;
var ref = new ActionReference();
    ref.putIndex(charIDToTypeID('Lyr '), index);
    var desc = new ActionDescriptor();
    desc.putReference(charIDToTypeID('null'), ref );
       if(add) desc.putEnumerated( stringIDToTypeID( 'selectionModifier' ), stringIDToTypeID( 'selectionModifierType' ), stringIDToTypeID( 'addToSelection' ) );
      desc.putBoolean( charIDToTypeID( 'MkVs' ), false );
   try{
    executeAction(charIDToTypeID('slct'), desc, DialogModes.NO );
}catch(e){}
function getIDXs(){
   var ref = new ActionReference();
   ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
   var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
   var IDX=[];
try{
    activeDocument.backgroundLayer;
var i = 0; }catch(e){ var i = 1; };
   for(i;i<count;i++){
       if(i == 0) continue;
        ref = new ActionReference();
        ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
        var desc = executeActionGet(ref);
        var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
        var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
        if(layerName.match(/^<\/Layer group/) ) continue;
        var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
        var isLayerSet =( layerType == 'layerSectionContent') ? false:true;
        if(!isLayerSet) IDX.push(i);
return IDX;
function dupLayers(NewDocName) {
    var desc143 = new ActionDescriptor();
        var ref73 = new ActionReference();
        ref73.putClass( charIDToTypeID('Dcmn') );
    desc143.putReference( charIDToTypeID('null'), ref73 );
    desc143.putString( charIDToTypeID('Nm  '), NewDocName );
        var ref74 = new ActionReference();
        ref74.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc143.putReference( charIDToTypeID('Usng'), ref74 );
    executeAction( charIDToTypeID('Mk  '), desc143, DialogModes.NO );
function SaveJPEG(saveFile, jpegQuality){
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = jpegQuality;
activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);

Similar Messages

  • Standby Redo Log Files and Directory Structure in Standby Site

    Hi Guru's
    I just want to confirm, i know that if the Directory structure is different i need to mention these 2 parameter in pfile
    on primary site:
    DB_CONVERT_DATAFILE='standby','primary'
    LOG_CONVERT_DATAFILE='standby','primary'
    On secondary Site:
    DB_CONVERT_DATAFILE='primary','standby'
    LOG_CONVERT_DATAFILE='primary','standby'
    But i want to confirm this wheather i need to issue the complete path of the directory in both the above paramtere:
    like:
    DB_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    LOG_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    Thanks in advance for your help

    Hello,
    Regarding your 1st question, you need to provide the complete path and not just the directory name.
    On the standby:
    db_file_name_convert='<Full path of the datafiles on primary server>','<full path of the datafiles to be stored on the standby server>';
    log_file_name_convert='<Full path of the redo logfiles on primary server>','<full path of the redo logfiles on the standby server>';
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    How are you creating the standby database ? Using RMAN duplicate or through the restore/recovery options ?
    You can create the standby redo logs later.
    Regards,
    Shivananda

  • Keeping directory structure with Catalog backup.

    So I have all my pictures in seperate directories on my computer. When using my catalog backup it just copies every file into a root directory, is there a way to preserve the directory structure that its making the backup from?

    Which verson of Photoshop Elementa are you running?
    In general, the way that the Photoshop Elements Catalog
    b Backup
    command works is that it renames the files during the backup process and it creates a Control File. Then when you use the Elements
    b Restore
    command, it can rebuild the folder structure as it was and place the photo (or video, audio) files in the same folder as it was at the time of the backup.

  • Keep directory structure for extra files after installation

    I'm working on an AIR project in Flash CS5 that has some additional support files in a folder called "data".  In my publish setting, I included this folder.  When I run a test install of the AIR file, I no longer have a "data" folder in my installation directory.  How can I have the installer create this folder so I can access the support files?
    BTW, I'm on a Mac and only see the .app file after installation.  The support files will hold application preferences that need to be read and written to.

    Unfortunately, I am not able to reproduce the prodblem. To reproduce I added a folder called testFiles in the AIR Settings Window(In Included Files Section) shown below. And I got the same in Program Files when i installed the app.
    Am i doing anything different than you? BTW I am testing on Windows for now.

  • Simplesave sd320a does not show saved files or directory structure, disk full?, I can restore

    I was saving files from an old win95 machine to bring them to a new laptop which is windows 7.  I plugged in the drive which is not full and I can only see the hp launcher.  In drive properties this drives shows 100 pct full.
    I can and did pull up an old simple save backup and restore pictures.
    The windows 7 machine is a locked down work machine.  Maybe the file structure was changed by the windows 95 machine and now my windows 7 machine can not see the root directory?
    I have not written to the drive since storing all of the pictures from the 95 machine and unplugging the external hard drive.
    I am looking for help on how to see the files in the root directory that I simply use the copy command to move them on to the external drive.

    OldGhias,
    Have you found a solution yet? I don’t know if I will be of any help but I was curious and no one else has chimed in yet.
    I don’t quite understand all of your statement.
    To clarify, you were making SimpleSave backups from Win95 and cannot see them all on the Win7 laptop?
    Or
    You were copying files over (SimpleSave utility not used) and you cannot see those files on Win7 but you can on the Win95 machine?
    Do you have another Win7 machine you could connect the external to, to see if the files are still not showing (one that is not locked for work)?
    On the drive that shows full, can you see it in Disk Management showing the correct size of the drive and also another CD drive? Not your real CD/DVD drive, it’s actually a CD emulator that is attached to the HDD for encrypting the backups and all SimpleSave’s have them.
    Lastly, did you reformat the SimpleSave drive to Fat32 first?
    My understanding is that USB support was quite limited on Win95 machines. Since Win95 is Fat32 and the SimpleSave drive is by default NTFS, I would think it would not work.

  • Making a Directory Structure with JTree.

    Hello,
    Can anyone boss here help me to code to make a
    File System Directory structure through JTree?
    The outlook should be like the Windows Explorer...
    From : [email protected]

    * HarishTree.java
    * Created on September 7, 2004, 2:56 PM
    * @author 120002314
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    import java.io.File;
    import java.awt.event.ActionListener;
    import javax.swing.JToolBar;
    import java.lang.System;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import javax.swing.filechooser.FileSystemView;
    public class HarishTree {
    public static void createAndShowGUI() {
    //creating a tree with drives in the toolbar
    TreeBar bar = new TreeBar();
    JScrollPane scrollpane = new JScrollPane(bar.tree);
    JToolBar toolbar = bar.CreatingTreeBar();
    JPanel panel = new JPanel(new BorderLayout());
    panel.add(toolbar);
    // Display it all in a window and make the window appear
    JFrame.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("FileExplorer");
    frame.getContentPane().add(scrollpane, "Center");
    frame.getContentPane().add(panel,BorderLayout.NORTH);
    frame.setSize(400,600);
    frame.setVisible(true);
    frame.setResizable(false);
    public static void main(String[] args) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    java.lang.System.gc();
    * The methods in this class allow the JTree component to traverse
    * the file system tree and display the files and directories.
    class FileTreeModel implements TreeModel {
    // We specify the root directory when we create the model.
    protected JFile root;
    public FileTreeModel(){}
    public FileTreeModel(JFile root) { this.root = root; }
    // The model knows how to return the root object of the tree
    public Object getRoot() { return root; }
    // Tell JTree whether an object in the tree is a leaf
    public boolean isLeaf(Object node) {  return ((JFile)node).isFile(); }
    // Tell JTree how many children a node has
    public int getChildCount(Object parent) {
    String[] children = ((JFile)parent).list();
    if (children == null) return 0;
    return children.length;
    // Fetch any numbered child of a node for the JTree.
    // Our model returns File objects for all nodes in the tree. The
    // JTree displays these by calling the File.toString() method.
    public Object getChild(Object parent, int index) {
    String[] children = ((JFile)parent).list();
    if ((children == null) || (index >= children.length)) return null;
    return new JFile((JFile)parent,children[index]);
    // Figure out a child's position in its parent node.
    public int getIndexOfChild(Object parent, Object child) {
    String[] children = ((File)parent).list();
    if (children == null) return -1;
    String childname = ((File)child).getName();
    for(int i = 0; i < children.length; i++) {
    if (childname.equals(children)) return i;
    return -1;
    // This method is invoked by the JTree only for editable trees.
    // This TreeModel does not allow editing, so we do not implement
    // this method. The JTree editable property is false by default.
    public void valueForPathChanged(TreePath path, Object newvalue) {}
    // Since this is not an editable tree model, we never fire any events,
    // so we don't actually have to keep track of interested listeners
    public void addTreeModelListener(TreeModelListener l) {}
    public void removeTreeModelListener(TreeModelListener l) {}
    class TreeBar implements ActionListener{
    public JTree tree = new JTree();
    public File[] roots = File.listRoots();
    JToolBar toolbar = new JToolBar();
    public TreeBar(){
    FileTreeModel model = new FileTreeModel(new JFile(System.getProperty("user.home")));
    tree.setModel(model);
    tree.setCellRenderer(new MyRenderer());
    public JToolBar CreatingTreeBar(){
    for(int i=0;i<roots.length;i++){
    JButton button = new JButton(roots[i].getPath(),new MyRenderer().inicon);
    button.addActionListener(this);
    button.setActionCommand(roots[i].getPath());
    toolbar.add(button);
    toolbar.setFloatable(false);
    toolbar.setRollover(true);
    return(toolbar);
    public void actionPerformed(java.awt.event.ActionEvent e) {
    FileTreeModel model = new FileTreeModel(new JFile(e.getActionCommand()));
    tree.setModel(model);
    class MyRenderer extends DefaultTreeCellRenderer {
    ImageIcon inicon = createImageIcon("1.gif");
    ImageIcon exicon = createImageIcon("2.gif");
    ImageIcon leaficon = createImageIcon("3.gif");
    public ImageIcon createImageIcon(String path) {
    java.net.URL imgURL = TreeIconDemo2.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    public Component getTreeCellRendererComponent(
    JTree tree,
    Object value,
    boolean sel,
    boolean expanded,
    boolean leaf,
    int row,
    boolean hasFocus) {
    super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
    if (leaf){
    setIcon(leaficon);
    }else
    if(expanded)
    setIcon(exicon);
    else
    setIcon(inicon);
    return this;
    class JFile extends File{
    public JFile(String path){
    super(path);
    public JFile(File parent,String child){
    super(parent,child);
    public String toString(){
    FileSystem fs = new FileSystem();
    if(fs.isFileSystemRoot(this))
    return(this.getPath());
    else
    return(fs.getSystemDisplayName(this));
    class FileSystem extends FileSystemView{
    public File createNewFolder(File containingDir) throws java.io.IOException {
    return(this.createFileObject(containingDir,"harish"));

  • How to create a tree based on directory structure

    I want to create a hierarchical tree in Forms 6i based upon a file system directory structure (similar to Windows Explorer). How can I populate a tree with this information, is there something that I can call or write that would return the file system structure in a format that I can populate my tree?
    Any advice would be greatly appreciated.
    Thanks
    Richard

    Your link does not seem to work.They're re-jigging all the links to accomodate the hot poop on Oracle's latest and greatest, 10G. So at least the website is on schedule even if the actual software delivery dates have slipped :P
    We can still get D2KWUTIL from here: http://te chnet.oracle.com/software/products/forms/content.html
    Cheers, APC

  • Organize iTunes file list by Directory Structure instead of artist/album?

    Hello, I have searched for different audio players for os x which might have this feature but so far have had no luck. What I'm looking for is a feature similar to that of foobar2000 for win32 where I can organize my music by directory structure without the iTunes automatic organization by artist/album. Is there a way I can accomplish this in iTunes with some sort of xml config or hidden options? Thanks.

    You don't have to have iTunes move music around on your hard drive (Preferences>Advanced>General, uncheck Keep iTunes Music folder organized and Copy files to iTunes Music folder when adding to library) but I suspect that's not what you're asking. You can't automatically view music from within iTunes by directory structure. iTunes organizes by ID3 tags ("mp3 tags"). You could, I suppose, spend a lot of time replicating your directory structure by using folders and playlists within iTunes but you'd probably have to do it all by hand.
    You could check out Doug's Scripts to see if there are some scripts that might help.
    http://dougscripts.com/itunes/index.php

  • Trying to copy a directory structure without all of the files.

    Hi,
    Is there a way to copy a directory structure with a number of subdirectories without all of the directory files coming along with it. I thought the cpio command would do that but I can't figure out how to use it.

    CPIO needs a list of files, normally you generate them with 'find', so that would work.
    There's an old thread about this on comp.unix.solaris. Personally, I like my 'rsync' solution. :-) But reading the entire thread may be a good idea.
    http://groups.google.com/group/comp.unix.solaris/browse_thread/thread/e84b458b3ce4b3b8/
    Darren

  • Directory structure and files in Oracle Application server 10g and 11g

    Hi all,
    I am doing a lab migration from 10g to 11g based on the use of JAXB. There were some directory structures used in 10g to store the JAXB jar files and some other custom jar files. I want to know the equivalent folder structures in SOA 11g server. The 10g server directories are mentioned below:-
    1.<OracleAS_Home>\webservices\lib.
    2. server.xml located at <OracleAS_Home>\j2ee\home\config in 10g. Where can I find the equivalent file to "server.xml" in 11g server?
    3. <OracleAS_Home>\bpel\system\classes\com\oracle\bpel\xml\util.
    4. <OracleAS_Home> \bpel\system\classes.

    Here are the equivalents as per best of my knowledge:
    1. <WebLogic Home>\server\lib
    For example, D:\Middleware\wls1036\wlserver_10.3\server\lib
    2. config,xml located at <Domain_Home>\config\
    For example, D:\Middleware\wls1036\user_projects\domains\ArunBaseDomain1036\config\config.xml
    3. It should be the same as 10g (instead of OracleAS_Home, it will be ORACLE_Home) if you install the BPEL product. Since, I have not installed BPEL/SOA, I am not very sure.
    4. It should be the same as 10g (instead of OracleAS_Home, it will be ORACLE_Home) if you installed the BPEL product.
    Also, I would recommend that you consider using ORACLE Smart Upgrade (JDeveloper component) to help you with the upgrade process. It exactly points out these mappings of file/directory structures AND the necessary configuration changes as well.
    If you are requirement, is only about making the library jars available to your application, then consider reading the below discussion.
    Re: XIncludeAwareParserConfiguration cannot be cast to XMLParserConfiguration
    Arun

  • Changing file name and directory structure for use outside of iPhoto

    Hi,
    I was wondering if its possible to get iPhoto to name the files from my library to reflect the names that I've given the files in iPhoto. I'm thinking along the lines of iTunes, where its possible to chose in the preferences how the files are named, and there is some logical directory structure, such as "Artist/Album/01 - Track 1.mp3". These file names are updated to reflect any changes made in iTunes.
    I've heard the argument that I shouldn't ever want to do anything with the files themselves because iPhoto can do everything I would ever want to do, but I want to organize the files so that not all of my organizational work is lost if I decide to stop using iPhoto and transition to a different system. Any suggestions would be appreciated.
    Thanks,
    Adrian

    Adrian
    No it's not possible.
    You can rename the files before bringing them into iPhoto, you can rename them with the titles on Export (Use the File -> Export command, it gives you the option to use the title and filename) but when it's inside iPhoto you cannot rename the files.
    However, all is not entirely lost. Using Film Rolls (View -> Film Rolls) you can move pics between rolls, name rolls, create rolls and so on, as long as you do this in the iPhoto Window, and these changes will be reflected in the iPhoto Library Folder.
    If at some point you decide to chuck iPhoto then (if the new app won't read iPhoto database files) you can simply export each album you've created to a Folder (using the File -> Export command as I suggest above), this, along with exporting slideshows will preserve your organisational efforts.
    The iTunes database has a rather simple job to do: track a file and it's assorted metadata. iPhoto, on the other hand, tracks a file and it's assorted metadata, plus a Modified version, plus a thumbnail. If you consider what happens when you edit a pic, for instance - Copy Original, perform edit, save modified version, remove Original Thumbnail and then create new one - you can see it's a rather more complex job.
    Finally, the standard warning: It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss. Any changes you make must be made in the iPhoto Window.
    Need more info? by all means post again.
    Regards
    TD

  • Exception handling in File adapter when directory structure is incorrect

    hi,
    How can exception handling part be done in File adapter in cases where directory structure is incorrect, or directory
    we are referring to is not present.
    thanks
    Yatan

    If you are polling then there will be error message in log files.But i dont think we can do exception handling in such cases.
    Cheers

  • Changing directory structure & song file locations: iTunes query

    I have an external hard-drive which I have loaded with thousands of songs over the years but have never really used it. Now, I want to organise my iTunes songs but my limited knowledge has brought me to a stop... Please help!
    On the external HDD, songs are located all over the place - the directory structure is bad - and I want to simplify it under a new structure. Some songs are also on my iMac's HDD which I also want to centralise on the external HDD. What is the best way to do this?
    Also, I don't have any play lists organised so I don't mind if I loose the library information and start again UNLESS the library information also includes SONG information (artist, title, etc.). Could it be a good idea, then, that I simply start again? Specifically:
    1. Can I just use Finder to move files around and change the directory structure on the external HDD?
    2. Can I start from scratch and copy all the music files onto a new external HDD with the new, simple directory structure I want and then re-point iTunes using the "iTunes media folder location" tab? Will I lose all the song file information?
    3. What do I do with the iTunes library? Is it best to "reset" the library somehow or should I do all of this moving using iTunes and therefore avoiding dealing with the library file?
    Thanks!!!

    Driggs wrote:
    1. Can I just use Finder to move files around and change the directory structure on the external HDD?
    you could use finder, but it would be far better if you'd let iTunes handle the moving and organizing.
    2. Can I start from scratch and copy all the music files onto a new external HDD with the new, simple directory structure I want and then re-point iTunes using the "iTunes media folder location" tab? Will I lose all the song file information?
    if you want to start from scratch, i would leave the files where they currently are. again, let iTunes handle it (see below).
    3. What do I do with the iTunes library? Is it best to "reset" the library somehow or should I do all of this moving using iTunes and therefore avoiding dealing with the library file?
    i would start over. launch iTunes with the option key pressed. click on +create library+. in iTunes, go preferences > advanced and point iTunes to the desired location (i.e. your external drive). in the same tab, disable +copy files to iTunes media folder when adding to library+ temporarily.
    now start adding content (file > add to library). when done, go back to preferences > advanced and re-enable +copy files to iTunes media folder when adding to library+. next, go file > library > organize library and select both options like so
    hit ok. iTunes will now move files as necessary and organize them. when finished, your iTunes music folder on the external drive will look like this
    none of your music files will be renamed. artwork you added manually will be retained, however, artwork that came with purchases from the iTunes store may be lost. that can easily be added later on though.
    post back if you need further advice.
    good luck !

  • What should be directory structure for Custom MDS files?

    Hi,
    I have personalize a page and then exported the personalization.
    Now my requirment is to migrate this personalization to other server, for which clients want steps specific to UNIX.
    My doubt is where should I copy these files on the server to import the personalization using XMLImporter command? ( Client do not have JDev on his server, so can not use impot command)
    my custom_top structure is like '/u02/int/applmgr/CUSTOM/xbol/11.5.0'
    The customization is part of product 'OTA'
    I am confused about where to put(Directory structure on custom top) customization and other MDS file to import using XMLImport.
    This customization is also using a Custom LOV for which, I have given the path xbol/oracle/apps/ota/admin/enrollment/webui/XbolGradeRN.
    For now I have transfered the file from window based JDeveloper and things are working fine. I need the UNIX directory structure for MDS files.
    Please help to clear my this doubt.
    Regards,
    Adarsh

    There is nothing specific to UNIX since the files are never picked from the file system on a production instance. You can place them under a temp directory with the proper package structure, the same way you exported personalizations for the seeded pages and the same custom package structure for your new pages and run import command. It's only how you run your import command matters, if you have placed the files in the proper package under some temp directory just give the -rootdir to point to your temp directory and no -rootPackage option.

  • How get SharePoint Library Folders and Files directory structure in to my custom web site.

    Hi,
    Actually my requirement is, I would like to pass site name and document library name as a parameter and get a folders and files from the document library and form the directory structure by using Treeview control in my web site.
    How should i get? Using Web service / object model?
    Web service would return the dataset as a result so from that how could i form the directory structure using Treeview control.
    I will select specified files and folders then i ll update sharepoint document library columns for corresponding selected files.
    Can anyone help over this, that would be great appreciate.
    Thanks in Advance.
    Poomani Sankaran

    Hello,
    Here is the code to iterate through sites and lists:
    //iterate through sites and lists
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(webUrl)) {
    using (SPWeb oWebsite = site.OpenWeb())
    SPListCollection collList = oWebsite.Lists;
    foreach (SPList oList in collList)
    {//your code goes here }
    Then use RecursiveAll to get all files and folders.
    http://www.codeproject.com/Articles/116138/Programatically-Copy-and-Check-In-a-Full-Directory
    http://sharepoint.stackexchange.com/questions/48959/get-all-documents-from-a-sharepoint-document-library
    Here is the full code:
    http://antoniolanaro.blogspot.in/2011/04/show-document-library-hierarchy-in-tree.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Error while connecting to SAP Server from Windows XP Client.

    Hi, I am facing the problem while i am trying to connect my Windows XP Clients( With Service Pack 3, DI-API Installed and Microsoft SQL Server Native Client Installed) to SAP server i got follwoing Error. Connection Failed : SQL State : '08001' SQL S

  • Cost element (Field name SAKTO)

    Hi all, We need to update the existing cost element field with new one in the Master Reciepe, Can any one give me all other areas across modules where this field has to be updated. Pls be kind to explain in detail. Thanks in advance Regards, KK

  • Customer workflow Issue(Infospace User)

    Hi Export, In ECC 6.0. I have workflow for customer/vender creation. I got a work item in my inbox , it will show me Infospace User instead of Creator(Initiator). So my question is who is 'Infospace User'. I am trying Analyze  this issue through work

  • Putting an already running SQL to background

    Hi Gurus, This sounds like a stupid problem but I'm sure most DBAs have faced it. Is there a way to move a long running SQL (like a create table as select * from big_table) to background process? I was contemplating whether there is a similar UNIX-li

  • No tools menu!

    Hi there, just got a brand new Nokia N79 and I can't find the tools menu!  When I push the menu button (left of green phone), it brings up a 'stack' of cards view with Internet, Contacts, Music, Photos, TV & Video, Games, Maps but know tools option.