Problem with layer sets opening

Hi,
I have a problem open layer sets. In my script I get layers index and then iterate throught this layers.
Here is the script:
function getAllLayersByIndex(){
       function getNumberLayers(){
       var ref = new ActionReference();
       ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID("NmbL") )
       ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
       return executeActionGet(ref).getInteger(charIDToTypeID("NmbL"));
       function hasBackground() {
           var ref = new ActionReference();
           ref.putProperty( charIDToTypeID("Prpr"), charIDToTypeID( "Bckg" ));
           ref.putEnumerated(charIDToTypeID( "Lyr " ),charIDToTypeID( "Ordn" ),charIDToTypeID( "Back" ))//bottom Layer/background
           var desc =  executeActionGet(ref);
           var res = desc.getBoolean(charIDToTypeID( "Bckg" ));
           return res  
       function getLayerType(idx,prop) {      
           var ref = new ActionReference();
           ref.putIndex(charIDToTypeID( "Lyr " ), idx);
           var desc =  executeActionGet(ref);
           var type = desc.getEnumerationValue(prop);
           var res = typeIDToStringID(type);
           return res  
       function getLayerVisibilityByIndex( idx ) {
           var ref = new ActionReference();
           ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
           ref.putIndex( charIDToTypeID( "Lyr " ), idx );
           return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));;
       var cnt = getNumberLayers()+1;
       var res = new Array();
       if(hasBackground()){
    var i = 0;
          }else{
    var i = 1;
       var prop =  stringIDToTypeID("layerSection");
       for(i;i<cnt;i++){
          var temp = getLayerType(i,prop);
          if(temp != "layerSectionEnds") res.push(i);
       return res;
       function getLayerVisibilityByIndex( idx ) {
           var ref = new ActionReference();
           ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
           ref.putIndex( charIDToTypeID( "Lyr " ), idx );
           return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));
function makeActiveByIndex( idx, visible ){
    var desc = new ActionDescriptor();
      var ref = new ActionReference();
      ref.putIndex(charIDToTypeID( "Lyr " ), idx)
      desc.putReference( charIDToTypeID( "null" ), ref );     
      desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
   executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
var groups = getAllLayersByIndex();
    for(var i = groups.length-1; i >= 0 ; i--) {
      makeActiveByIndex( groups[i], true );
      ....working with layers....
I think, my problem is in function makeActiveByIndex, because it doesn't make active a folder and doesn't open it.
You can see it on this picture. Active layer set is "Skupina 1" and it is in layer set "hlavicka". But "hlavicka" is not open. WHY??
Can you help me fix this problem??
Thank you Domaneni

Hi, for the past days I've worked on a script to toogle opening and closing layeSets, I've taken the code that TeddyBear posted here: http://ps-scripts.com/bb/viewtopic.php?p=14773 and adjusted it a little bit, and that's what I came up with, I hope it will help you:
<javascriptresource>
  <name>BCM> ToogleOpen_CloseGroup...</name>
  <category>BCM</category>
</javascriptresource>
//For code readability
// http://ps-scripts.com/bb/viewtopic.php?f=9&t=3235
function getActiveLayerIndex() {
    var ref = new ActionReference();
    ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    return executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ));
function cTID(s){return charIDToTypeID(s)}
function sTID(s){return stringIDToTypeID(s)}
// =============================
// The main function
function closeGroup(layerSet) {
   var m_Name = layerSet.name;
   var m_Opacity = layerSet.opacity;
   var m_BlendMode = layerSet.blendMode;
   var m_LinkedLayers = layerSet.linkedLayers;
  var currINDEX = getActiveLayerIndex();
   var m_bHasMask = hasLayerMask();
   if(m_bHasMask) loadSelectionOfMask();
   if(layerSet.layers.length <= 1) {
      addTempLayerSetIn(currSetIDX-1);
      makeActiveByIndex(currSetIDX+2, false);
      ungroup();
      groupSelected(m_Name);
      deleteTempLayerSetbyIdx(currSetIDX+1);
   } else {
       makeActiveByIndex(currSetIDX, false);
      ungroup();
      groupSelected(m_Name);
   var m_Closed = activeDocument.activeLayer;
   m_Closed.opacity = m_Opacity;
   m_Closed.blendMode = m_BlendMode;
   for(x in m_LinkedLayers) {
      if(m_LinkedLayers[x].typename == "LayerSet")
         activeDocument.activeLayer.link(m_LinkedLayers[x]);
   if(m_bHasMask) maskFromSelection();
   return m_Closed;
// =============================
// Below are all necessary subroutines for the main function to work
function ungroup() {
   var m_Dsc01 = new ActionDescriptor();
   var m_Ref01 = new ActionReference();
   m_Ref01.putEnumerated( cTID( "Lyr " ), cTID( "Ordn" ), cTID( "Trgt" ) );
   m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
   try {
      executeAction( sTID( "ungroupLayersEvent" ), m_Dsc01, DialogModes.NO );
   } catch(e) {}
function addLayer() {
   var m_ActiveLayer          =    activeDocument.activeLayer;
   var m_NewLayer             =    activeDocument.layerSets.add();
   m_NewLayer.move(m_ActiveLayer, ElementPlacement.PLACEBEFORE);
   return m_NewLayer;
function hasLayerMask() {
   var m_Ref01 = new ActionReference();
   m_Ref01.putEnumerated( sTID( "layer" ), cTID( "Ordn" ), cTID( "Trgt" ));
   var m_Dsc01= executeActionGet( m_Ref01 );
   return m_Dsc01.hasKey(cTID('Usrs'));
function activateLayerMask() {
   var m_Dsc01 = new ActionDescriptor();
   var m_Ref01 = new ActionReference();
   m_Ref01.putEnumerated( cTID( "Chnl" ), cTID( "Chnl" ), cTID( "Msk " ) );
   m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
   try {
      executeAction( cTID( "slct" ), m_Dsc01, DialogModes.NO );
   } catch(e) {
      var m_TmpAlpha = new TemporaryAlpha();
      maskFromSelection();
      activateLayerMask();
      m_TmpAlpha.consume();
function deleteMask(makeSelection) {
   if(makeSelection) {
      loadSelectionOfMask();
   var m_Dsc01 = new ActionDescriptor();
   var m_Ref01 = new ActionReference();
   m_Ref01.putEnumerated( cTID( "Chnl" ), cTID( "Ordn" ), cTID( "Trgt" ) );
   m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
   try {
      executeAction( cTID( "Dlt " ), m_Dsc01, DialogModes.NO );
   } catch(e) {}
function selectLayerMask() {
   var m_Dsc01 = new ActionDescriptor();
   var m_Ref01 = new ActionReference();
   m_Ref01.putEnumerated(cTID("Chnl"), cTID("Chnl"), cTID("Msk "));
   m_Dsc01.putReference(cTID("null"), m_Ref01);
   m_Dsc01.putBoolean(cTID("MkVs"), false );
   try {
      executeAction(cTID("slct"), m_Dsc01, DialogModes.NO );
   } catch(e) {}
function loadSelectionOfMask() {
   selectLayerMask();
   var m_Dsc01 = new ActionDescriptor();
   var m_Ref01 = new ActionReference();
   m_Ref01.putProperty( cTID( "Chnl" ), cTID( "fsel" ) );
   m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
   var m_Ref02 = new ActionReference();
   m_Ref02.putEnumerated( cTID( "Chnl" ), cTID( "Ordn" ), cTID( "Trgt" ) );
   m_Dsc01.putReference( cTID( "T   " ), m_Ref02 );
   try {
      executeAction( cTID( "setd" ), m_Dsc01, DialogModes.NO );
   } catch(e) {}
function maskFromSelection() {
   if(!hasLayerMask()) {
      var m_Dsc01 = new ActionDescriptor();
      m_Dsc01.putClass( cTID( "Nw  " ), cTID( "Chnl" ) );
      var m_Ref01 = new ActionReference();
      m_Ref01.putEnumerated( cTID( "Chnl" ), cTID( "Chnl" ), cTID( "Msk " ) );
      m_Dsc01.putReference( cTID( "At  " ), m_Ref01 );
      m_Dsc01.putEnumerated( cTID( "Usng" ), cTID( "UsrM" ), cTID( "RvlS" ) );
      try {
         executeAction( cTID( "Mk  " ), m_Dsc01, DialogModes.NO );
      } catch(e) {
         activeDocument.selection.selectAll();
         maskFromSelection();
   } else {
      if(confirm("Delete existing mask?", true, "Warning")) {
         activateLayerMask();
         deleteMask();
function groupSelected(name) {
   var m_Dsc01 = new ActionDescriptor();
   var m_Ref01 = new ActionReference();
   m_Ref01.putClass( sTID( "layerSection" ) );
   m_Dsc01.putReference(  cTID( "null" ), m_Ref01 );
   var m_Ref02 = new ActionReference();
   m_Ref02.putEnumerated( cTID( "Lyr " ), cTID( "Ordn" ), cTID( "Trgt" ) );
   m_Dsc01.putReference( cTID( "From" ), m_Ref02 );
   var m_Dsc02 = new ActionDescriptor();
   m_Dsc02.putString( cTID( "Nm  " ), name);
   m_Dsc01.putObject( cTID( "Usng" ), sTID( "layerSection" ), m_Dsc02 );
   executeAction( cTID( "Mk  " ), m_Dsc01, DialogModes.NO );
   return activeDocument.activeLayer;
function addToSelection(layerName) {
   var m_Dsc01 = new ActionDescriptor();
   var m_Ref01 = new ActionReference();
   m_Ref01.putName( cTID( "Lyr " ), layerName );
   m_Dsc01.putReference( cTID( "null" ), m_Ref01 );
   m_Dsc01.putEnumerated( sTID( "selectionModifier" ), sTID( "selectionModifierType" ), sTID( "addToSelection" ) );
   m_Dsc01.putBoolean( cTID( "MkVs" ), false );
   try {
      executeAction( cTID( "slct" ), m_Dsc01, DialogModes.NO );
   } catch(e) {}
function TemporaryAlpha() {
   activeDocument.selection.store((this.alpha = activeDocument.channels.add()));
   activeDocument.selection.deselect();
   this.consume = function() {
      activeDocument.selection.load(this.alpha);
      this.alpha.remove();
function makeActiveByIndex( idx, visible ){
     if( idx.constructor != Array ) idx = [ idx ];
     for( var i = 0; i < idx.length; i++ ){
          var desc = new ActionDescriptor();
          var ref = new ActionReference();
          ref.putIndex(charIDToTypeID( 'Lyr ' ), idx[i])
          desc.putReference( charIDToTypeID( 'null' ), ref );
          if( i > 0 ) {
               var idselectionModifier = stringIDToTypeID( 'selectionModifier' );
               var idselectionModifierType = stringIDToTypeID( 'selectionModifierType' );
               var idaddToSelection = stringIDToTypeID( 'addToSelection' );
               desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
          desc.putBoolean( charIDToTypeID( 'MkVs' ), visible );
          executeAction( charIDToTypeID( 'slct' ), desc, DialogModes.NO );
function deleteActiveLayer(){
   // =======================================================
   var idDlt = charIDToTypeID( "Dlt " );
       var desc752 = new ActionDescriptor();
       var idnull = charIDToTypeID( "null" );
           var ref529 = new ActionReference();
           var idLyr = charIDToTypeID( "Lyr " );
           var idOrdn = charIDToTypeID( "Ordn" );
           var idTrgt = charIDToTypeID( "Trgt" );
           ref529.putEnumerated( idLyr, idOrdn, idTrgt );
       desc752.putReference( idnull, ref529 );
   executeAction( idDlt, desc752, DialogModes.NO );
function isLayerSet( idx ) {
     var propName = stringIDToTypeID( 'layerSection' );
     var ref = new ActionReference();
     ref.putProperty( charIDToTypeID( "Prpr" ) , propName);
     ref.putIndex( charIDToTypeID ( "Lyr " ), idx );
     var desc =  executeActionGet( ref );
     var type = desc.getEnumerationValue( propName );
     var res = typeIDToStringID( type );
     // alert(res);
     return res == 'layerSectionStart' ? true:false;
function openGroup1(theGroup) {
   currSetIDX= getActiveLayerIndex();
   if(isLayerSet( currSetIDX ))
    getNamesPlusIDsOfLayerSet();
  makeActiveByIndex(currSetIDX, false);
function getNamesPlusIDsOfLayerSet(){
   var ref = new ActionReference();
   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
   var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
  var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
   var Names=[];
   var x = 0;
   var y = 0;
   var r = 0;
   currINDEX = getActiveLayerIndex();
    var i = currINDEX;
   for(i; i > 0 ; i--){
        ref = new ActionReference();
        ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
        var desc = executeActionGet(ref);
        var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
        var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
        var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
        ls = typeIDToStringID(ls);
        // alert(layerName+": _ :"+ls);
        if(ls == "layerSectionStart"){x++};
        if(layerName.match(/^<\/Layer group/) )
          y ++;
          r = x - y;
          if(r == 0 && ls == "layerSectionEnd"){break};
          continue
        if(ls == "layerSectionContent"){makeActiveByIndex(i,false);break};
        var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
        var isLayerSet =( layerType == 'layerSectionContent') ? false:true;
Names.push([[Id],[layerName],[isLayerSet]]);
return Names;
function getLayersNb()//function to find out if the number of layers in the document
    var ref = new ActionReference();
    ref.putProperty( charIDToTypeID( 'Prpr' ), stringIDToTypeID('numberOfLayers') );
    ref.putEnumerated( charIDToTypeID( "Dcmn" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
    var desc = executeActionGet(ref);
    var numberOfLayers = desc.getInteger(stringIDToTypeID('numberOfLayers'));
    return numberOfLayers;
function toogleOpenCloseSet(){
  myALayerIDX = getActiveLayerIndex();
  myGroupP = app.activeDocument.activeLayer;
  if(!isLayerSet(myALayerIDX)){
      myGroupP = app.activeDocument.activeLayer.parent;
      if(myGroupP.typename != "Document"){
        if(isSetOpened1(myGroupP)){closeGroup(myGroupP)}else{openGroup1(myGroupP)};
  }else{
    if(isSetOpened1(myGroupP)){closeGroup(myGroupP)}else{openGroup1(myGroupP)};
function getFristLayerSetChildVisible(){
  xx = false;
   var ref = new ActionReference();
   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
   var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
  var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
   var Names=[];
    var x = 0;
    var y = 0;
    var r = 0;
   currINDEX = getActiveLayerIndex();
    var i = currINDEX;
   for(i; i > 0 ; i--){
        ref = new ActionReference();
        ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
        var desc = executeActionGet(ref);
        var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
        var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
        var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
        ls = typeIDToStringID(ls);
        var vis = desc.getInteger(stringIDToTypeID( 'visible' ));
        // alert(layerName+": _ :"+vis);
/*        if(desc.hasKey(stringIDToTypeID("visible")))
          alert(desc.getType(stringIDToTypeID("visible")));
        if(ls == "layerSectionStart"){x++};
        if(vis == 1 && Id!=parId && r!=0){
          var theOBj = {id:Id, lname:layerName, idx:i};
          xx =true;
          Names.push(theOBj);
          break;
        if(layerName.match(/^<\/Layer group/) )
          y ++;
          r = x - y;
          if(r == 0 && ls == "layerSectionEnd"){break};
          continue
    return Names;
function getLastChildIdx(){
  xx = false;
   var ref = new ActionReference();
   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
   var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
  var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
   currINDEX = getActiveLayerIndex();
    var i = currINDEX;
    var x = 0;
    var y = 0;
    var r = 0;
    var lastChIdx = 0;
   for(i; i > 0 ; i--){
        ref = new ActionReference();
        ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
        var desc = executeActionGet(ref);
        var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
        var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
        var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
        ls = typeIDToStringID(ls);
        var vis = desc.getInteger(stringIDToTypeID( 'visible' ));
        if(ls == "layerSectionStart"){x++};
        if(layerName.match(/^<\/Layer group/) )
          y ++;
          r = x - y;
          if(r == 0 && ls == "layerSectionEnd")
            lastChIdx = i;
            break;
        // alert(x+" _ "+y+" _ "+r+" _ "+layerName);
    return lastChIdx;
function getNbOfChilds(){
  xx = false;
   var ref = new ActionReference();
   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
   var count = executeActionGet(ref).getInteger(charIDToTypeID('Cnt '));
  var parId = executeActionGet(ref).getInteger(stringIDToTypeID( 'layerID' ));
   currINDEX = getActiveLayerIndex();
    var i = currINDEX;
    var nb = 0;
    var x = 0;
    var y = 0;
    var r = 0;
   for(i; i > 0 ; i--){
        ref = new ActionReference();
        ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
        var desc = executeActionGet(ref);
        var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
        var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
        var ls = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
        ls = typeIDToStringID(ls);
        var vis = desc.getInteger(stringIDToTypeID( 'visible' ));
        if(ls == "layerSectionStart"){x++};
        if(layerName.match(/^<\/Layer group/) )
          y ++;
          r = x - y;
          if(r == 0 && ls == "layerSectionEnd")
            break
          continue
        nb++;
    return nb;
function isSetOpened1( group ){
  app.activeDocument.activeLayer = group;
  xx = true;
  currSetIDX = getActiveLayerIndex();
  addTempLayerSetIn(currSetIDX-1);
  var fIdx = getActiveLayerIndex();
  makeActiveByIndex(currSetIDX+2, false);
  if(fIdx == getActiveLayerIndex())
    xx = false;
  deleteTempLayerSetbyIdx(currSetIDX+1);
  return xx;
function addTempLayerSetIn(idxx){
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc58 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref63 = new ActionReference();
            var idlayerSection = stringIDToTypeID( "layerSection" );
            ref63.putClass( idlayerSection );
        desc58.putReference( idnull, ref63 );
    executeAction( idMk, desc58, DialogModes.NO );
    // =======================================================rename
    var idsetd = charIDToTypeID( "setd" );
        var desc202 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref209 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref209.putEnumerated( idLyr, idOrdn, idTrgt );
        desc202.putReference( idnull, ref209 );
        var idT = charIDToTypeID( "T   " );
            var desc203 = new ActionDescriptor();
            var idNm = charIDToTypeID( "Nm  " );
            desc203.putString( idNm, "mb-dummy tempTestLayerSetOpen_Closed" );
        var idLyr = charIDToTypeID( "Lyr " );
        desc202.putObject( idT, idLyr, desc203 );
    executeAction( idsetd, desc202, DialogModes.NO );
    // =======================================================move
    var idmove = charIDToTypeID( "move" );
        var desc59 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref64 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref64.putEnumerated( idLyr, idOrdn, idTrgt );
        desc59.putReference( idnull, ref64 );
        var idT = charIDToTypeID( "T   " );
            var ref65 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            ref65.putIndex( idLyr, idxx );
        desc59.putReference( idT, ref65 );
        var idAdjs = charIDToTypeID( "Adjs" );
        desc59.putBoolean( idAdjs, false );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc59.putInteger( idVrsn, 5 );
    executeAction( idmove, desc59, DialogModes.NO );
function deleteTempLayerSetbyIdx(idxx){
  // =======================================================
  var idDlt = charIDToTypeID( "Dlt " );
      var desc = new ActionDescriptor();
          var ref = new ActionReference();
          ref.putIndex(charIDToTypeID( 'Lyr ' ), idxx);
          // ref.putIdentifier(charIDToTypeID( 'Lyr ' ), idxx);
          desc.putReference( charIDToTypeID( 'null' ), ref );
  executeAction( idDlt, desc, DialogModes.NO );
toogleOpenCloseSet();

Similar Messages

  • Problem with subform set

    Hi all ,
    I am facing a problem with subform set. When i use two subform sets with same set of conditions in a form, only the first subform set works while the second one does nothing. Did any of you faced the same problem ? If so Please let me know the solution you came up with. Thanks.
    SrPrabhu

    Hi scott,
    The problem is with subform set and not subform. In subform set, we can give conditions to make only one subform visible at a time that satisfies the condition. First create a subform set having more than one subform. Now apply the conditions to that subform set. Check if it works. I m sure it wil work. Now just make a duplicate copy of the same subform set. Place it in the same form so that now two subform sets are available. Now preview the form. U wil fine only one subform set working and the other one doesnt.
    We can use any number of subform set within a form. If different conditions are applied to each subform set , it works fine.
    i wonder now wat wud u do in case if we are in need of two subformset having the same condition in a form ?
    Thanks,
    Sr Prabhu

  • Hi I have problem with itunes, i opened by mistake song in itunes and after my itunes were like deleted ? Can you help me please ?

    Hi I have problem with itunes, i opened by mistake song in itunes and after my itunes were like deleted ? Can you help me please ?

    For general library squiffiness following an upgrade the easiest thing is to restore your last backup, but I guess if it were that simple you wouldn't be here.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps youshouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Weird Problem with FSB setting

    Hi all,
    I've just come across a weird problem with FSB setting.
    If I set FSB to 229 my machine runs @ 1.6Ghz only.
    When I set to 230 it runs @ 3.2Ghz (as it should).
    Any ideas what could be causing this?
    Thanks
    Mick

    If FSB @ =
      Strange thing.. What a magical 1MHz  

  • Problems with version sets

    I have PSE 6. When I open a JPG from the Organizer using Full Edit and then try to save, I do not get the option to save the image in a version set (even though I do have the Organizer option checked). However, I noticed that invoking Full Edit also prompts the Organizer to say there is a new file in the watched folders. This "new" file is the very same file in the very same location. If I accept to add the file to the Organizer I get two thumbnails in the Organizer, both pointing to the same file on disk. If I do this then the "Edit In Progress" banner appears on the "new" thumbnail and the editor does allow me to add the image to the version set. I am sure that I did not have to do this before, I would expect Full Edit to just open the image, mark it in the Organizer as being edited, not try to add it back to the catalog and allow me to save the edit in a version set. What might be causing this behaviour?
    I also have similar and I think related problems with RAW images too, but I am hoping that resolving the above will resolve the RAW issue too.

    I should have said that I did try that but it still prevented me from creating a new version in a version set when saving. It is as if the editor needs to start on a copy of the Organizer's entry to allow version sets, as if the original is somehow "locked". Could that be possible?

  • Problem with version sets in Elements 12

    I have just started using elelments 12.  I have been having problems with inconsistency in forming version sets.  Some sets forms as expected.  However, quite often after editing, when returning to Organizer the edited picture is not in a version set with the original and in fact is not even visible.  I can get to the edited version only through the "Open" tab in the Editor.  I have check the appropriate "Save in version set" in the save menu. Suggestions? 

    Seems you have the same problem :
    http://forums.adobe.com/thread/1309160?start=0&tstart=0
    The source of the problem is not clearly found today. It seems that happens on previously converted catalogs.
    A workaround seems to have been found : killing the autoanalyzer.exe process in the task manager.

  • Problem with Javascript and opening a new page

    Hi,
    I'm developping a website with Java Server Faces.
    I've a problem with JavaScript.
    I have a table, and each row of that table, has a button, to display more information about that specific row. I want to display this information in a new window. For this I want to use JavaScript.
    The new window, of course, needs some information of the other window, to show the right data.
    The first time I click the 'more-information-button', it works perfectly, but from than on, he keeps showing the same information...
    Here is my jsp-page of the first page (the one with the table):
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
             <f:loadBundle basename="languages.MessageBundle" var="bundle"/>
            <html>
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>- UCV-Period -</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                        <h:dataTable binding="#{UcvPeriod.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd" rows="5"
                            style="left: 24px; top: 168px; position: absolute" value="#{UcvPeriod.dataTable1Model}" var="currentRow">
                            <h:column binding="#{UcvPeriod.column1}" id="column1">
                                <h:outputText binding="#{UcvPeriod.outputUcvPeriod}" id="outputUcvPeriod" value="#{currentRow['UCVPERIOD']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText2}" id="outputText2" value="#{bundle.ucvPeriod_columnHeader_ucvPeriod}"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{UcvPeriod.column11}" id="column11">
                                <h:commandButton action="#{UcvPeriod.btnDetails_action}" binding="#{UcvPeriod.btnDetails}" id="btnDetails" value="+" onclick="window.open('Details.jsp')"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText21}" id="outputText21" value=""/>
                                </f:facet>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>Here is my action, when someone clicks on the 'more-information-button':
    public String bthnDetails_action() {
       Object s = outputUcvPeriod.getValue();
       BigDecimal ucvPeriod = (BigDecimal)outputUcvPeriod.getValue();
       this.getSessionBean().setUcvPeriod(new Integer(ucvPeriod.intValue());
       return "detail_ucvperiod";
    }Here is my constructor of the Detailspage.
        public Details() {
             this.txtUcvPeriod.setValue(this.getSessionBean().getUcvPeriod());
        }Here is the navigation part for this part of my faces-config.xml .
    <navigation-rule>
       <from-view-id>/UcvPeriod.jsp</from-view-id>
       <navigation-case>
           <from-outcome>detail_ucvperiod</from-outcome>
           <to-view-id>/UcvPeriod.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>Thx a lot....
    Anneke

    See the tutorial "Sharing Data Between Two Pages" at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/data_sharing_twopages.html and the FAQ "How can I pass data between pages without creating SessionBean variables in Creator?" at http://devservices.sun.com/premium/jscreator/standard/reference/faqs/technical/javasource/passing_data.html. Since you can open a new window when your button is clicked, the tutorial and FAQ will explain ways to pass your data to the new window.

  • Problem with fingerprint setting

    Hey, i bought an iphone 5s yesterday. I set up the fingerprint yesterday and it worked fine. But after that i faced some problem with the system so i reset the wholephone and edit and deleted my original fingerprint. but after that, my phone cant reenter the fingerprint. it can't read any fingerprint and the name is changed to touch id. what should i do with it?

    Hello annteoeena,
    Congratulations on your iPhone 5s, and thank you for the details of the issue you are experiencing when using Touch ID.  I recommend following the steps below for an issue like the one you described:
    Troubleshooting Touch ID
    Verify that you are using the latest version of iOS.
    Ensure that your fingers and the Home button are clean and dry.*
    Note: Cover the Home button completely. Don't tap too quickly, don't press down hard, and don't move your finger while Touch ID is scanning.
    Tap Settings > General > Passcode & Fingerprint > Fingerprints and verify:
    Passcode Unlock or iTunes & App Store is enabled.
    One or more fingerprints have been enrolled.
    If one finger isn't working, tap Edit in Settings > General > Passcode & Fingerprint > Fingerprints > Edit to delete and then reenroll the finger.
    If that finger still isn't working, try enrolling a different finger.
    If you are unable to enroll any of your fingers, take your iPhone 5s to an Apple Retail Store, Apple Authorized Service Provider, or contact AppleCare for further assistance.
    Find the full article here:
    iPhone 5s: Using Touch ID
    http://support.apple.com/kb/HT5883
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Problem with COM port opening

    I made an application using COM port to dialog with a microcontroleur and i have some troubles with the opening of the port. i developed it under window XP pro and labview 6.1 and i have no problem when i launch my application on an XP PC having labview installed or on a window 98 PC without labview (just the runtime engine). But when i launch it on an XP pc with only the runtime engine, it seems to launch correctly but in fact, there is a problem with the COM port opening. The menu allowing to chose the port number is inactive and has no effect, like if the software wouldn't recognize the material port on the PC. And consequently, nothing happens when the dialog should start.
    Thank tou for your precious help
    Julien LEGRAND
    French Natio
    nal Institute for Sea Reseach

    Is the VISA run-time engine installed? I don't understand why it would work on the win98 machine unless you have an older installation of it there.

  • Problem with character set - Reports 11.1.1.4

    Hi!
    I have a problem with Oracle Reports 11g regarding character set configuration. The default character set WE8ISO8859P1 works, so PDF reports have a regular display except for Eastern European (EE) letters which are replaced by "¿" sign.
    So, when I set any other character set in reports.sh, which would be a normal step to get EE letters, I'm always getting Greek Alphabet in PDF reports. Why Greek Alphabet?
    The character sets I tried to use are: EE8ISO8859P2, UTF8 and AL32UTF8.
    I changed uifont.ali and included PDF Subset with all four Arial font variants and, of course, I placed all fonts in fonts folder which is pointed by REPORTS_FONT_DIRECTORY.
    In Reports Builder everything works fine, but when I have to deploy the report to the Reports Services, the problem occurs.
    Also, when I've tried to execute PDF report using In-Process Reports Server (rep_wls_reports_hostnameasinst1) instead of AS Instance Reports Server (RptSvr_hostnameasinst1, which is a regular server), I'm getting Greek Alphabet in PDF reports even if the default character set is WE8ISO8859P1 in reports.sh. What is wrong with it? Where is Greek Alphabet configured?
    The production environment is 64-bit Oracle Linux 5.6 with Weblogic 10.3.4 and Forms&Reports 11.1.1.4. Forms works fine with character set EE8ISO8859P2 defined in default.env file.
    Thanks in advance!
    Regards,
    Dejan

    Thank you, Denis!
    Doc 300416.1 was very useful but Note 356221.1 - A Practical Methodology on Porting Reports from Windows to Unix with Different Font is actually crucial for configuring Reports on Linux.
    Also, there is a bug in 11.1.1.3 and 11.1.1.4, which can be fixed using the patch ( Note 1138405.1 - PDF Reports With Font Subsetting Raises Error "Bad /Bbox" on 64-Bit Linux ).
    Kind regards!

  • Problem with desaturation when opened in ACR

    When I open a .jpg image as camera raw (v. 6.2.0.29), then immediately save that image as a .jpg (quality 12) from CS5 (v. 12.0.1x32) without any edits (but as a different file name), the newly saved .jpg is significantly desaturated in color when compared with the original.  This does not occur if I open the .jpg without going through ACR and then immediately save (as a new file name) without any edits.
    In puzzling over this, I've also noticed that when I open a .jpg in CS5 as a camera raw, then immediately open the same .jpg without going through camera raw and compare them side-by-side, there are significant differences between the two histograms.
    What in the world am I doing wrong?  Since it only happens when I open a .jpg as camera raw, and not in CS5 apart from ACR, I'm guessing that it has to be something in ACR.  However, I have not yet been able to find a problem with the settings in ACR, and no changes I have made in ACR seem to affect the outcome.
    Any ideas what I'm doing wrong, or where I might go looking?
    Thanks in advance...
    ACB

    Check the ACR output colorspace; it's identified in the link at center bottom.  If it's ProPhoto then your jpegs will look very unsaturated when viewed in a non-color managed application, such as Internet Explorer.  Click on the link to change to sRGB for general email and web output.
    Richard Southworth

  • Photoshop Actions: Problem with layer groups

    I have recorded several photoshop actions with multiple adjustment layers in layer groups. They work perfectly fine, as long as I do not run a second action with a layer group in it.
    As soon as I run a second action with layer groups, the layer order is completely random and messed up. How can I avoid this problem?

    Best practices: Usage
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Problem with character set UTF-16 LE

    Hello.
    There were difficulties with character set change, using function convert ()
    The matter is that in the list v$nls_valid_values the character set AL16UTF16LE does not appear, during too time the inquiry is successfully carried out
    convert ([some-national-characters], ' CL8MSWIN1251 ', ' AL16UTF16LE ').
    But at giving on an input of the data stored in CLOB, there is an error "a character set is not supported"
    What are possible ways of the decision of a problem?

    You can try to use DBMS_LOB. SUBSTR to access LOB data like in the following example:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    SQL> declare
      2  v_i clob;
      3  v_o clob;
      4  begin
      5  v_i := 'a';
      6  v_o:=convert(dbms_lob.substr(v_i,1,1),'AL16UTF16LE', 'CL8MSWIN1251');
      7  end;
      8  /
    PL/SQL procedure successfully completed.

  • Problem with Character set

    Hi,
    I am facing some problems with Oracle character sets.
    I have set the database character set as UTF8.
    I have set the environment variable NLS_CHAR to Portuguese_Portugal.UTF8.
    I insert a Portuguese text for varchar and clob columns in a table.
    However when I select the text from that table, I get some junk values for the clob.
    Any help is appriciated. Thanx in advance.
    Yash
    null

    Hi Yash,
    Can u tell me how to insert values in a nchar/nvarchar column in
    Indian language scripts?
    I have set database characterset to 'IN8ISCII'? But while
    inserting values in the table I am getting error as characterset
    mismatch'
    I have tried it using UTF8 chracterset also??
    As fa as your problem is concerened, I think u have to set the
    nls_ characterset value$ in props$ table
    and same for nls_nchar_characterset column also..
    Thanks in advance
    Manoj mehta

  • Problems with initial set up for mail and other things

    I am having issues with mail set up and getting printers and other things work with Mac Pro Book, since i am new convert i am feeling really frustrated with these things, anyone out there has experince in mac mail set ups and other instatlations like msn messanger etc.

    Sorry you are having problems but you need to provide more detailed information about the problems such as what type of email account are you trying to set up in Mail - .Mac, IMAP or POP and is this account provided by your ISP used for connecting to the internet or by an email account provider?
    What happens including error messages provided when trying to create the email account in Mail?
    Regarding a printer problem, this is the Mail & Address Book forum. You should post a question about printer issues with detailed information such as the make and model of your printer and what you have tried to this point at the Printer & Faxing forum here.
    http://discussions.apple.com/forum.jspa?forumID=756
    Installing MSN Messenger should be easy. I believe Messenger does not include an installer and is provided as package via a disk image that only requires dragging the application from the mounted disk image to your Applications folder which copies the application package from the mounted disk image to your hard drive.
    What problems are you having with installing Messenger?

Maybe you are looking for

  • Script for Required fields acting strange on extra spaces at end of Name/Description

    Found this script on this forum, which I added to my submit button. var emptyFields = []; for (var i=0; i<this.numFields; i++) {      var f= this.getField(this.getNthFieldName(i));      if (f.type!="button" && f.required ) {           if ((f.type=="t

  • Urgent Issue with X230 Windows 8.1

    I have upgraded my ThinkPad X230 to Windows 8.1.  I get the following two message every time I start 1. Power Manager Group: An error occurred while loading a resource DLL. 2. Problem starting C:\Program Files (X86)\Thinkpad Utilities\PVMTR64V.DLL. A

  • Connecting 2 local Mac's - .mac authentication question

    I have a Macbook Pro and an iMac, both running 10.5.4. I used to be able to connect between them both in finder, and using Screen Sharing, and it would automatically authenticate using my .mac account. Now it works one way (from the MBP to the iMac.)

  • Can cold fusion do this

    Can a page be created that sets a field that displays information located in an excel spreadsheet located on a different server? Basically there is a cell within an excel spreadsheet that gets updated daily, and I want the coldfusion to reflect the c

  • Qyery dying out

    How to optimize this query without using the expalin plan just by seeing the query some one can give some suggesstion can we break this query in any way.if yes how. samant SELECT 'SERVICE_ORDER', a.service_order_key, GREATEST( NVL(a.soe_update_ts,'19