Number of list

Hi guys,.

I have a folder on my desktop, called: myFiles

and several subfolders inside.

Is possible to list all the names of the folders that exist in

the myFilesfolder?

I would like to show the total records with an Alert()

Thanks a lot guys!

No problem!

#target estoolkit
function test(){

    function getFolderTree(root, maxNestLevel){
        var arr = [], c = 0;
        if(typeof maxNestLevel == "undefined"){
            maxNestLevel = Infinity;
        }
        getChildFolders (root, arr, c, maxNestLevel);
        return arr;
    };

    function getChildFolders(folderItem, collectionArray, counter, maxNestLevel){
        collectionArray.push({
            name : folderItem.displayName,
            nestLevel : counter,
            path : decodeURI(folderItem.fsName)
        });
        var f = folderItem,
        folders = f.getFiles(function(fl){
            return fl instanceof Folder;
        });

        for(var i = 0; i < folders.length; i++){
            if(i == 0){
                counter++;
                if(counter > maxNestLevel){
                    return;
                }
            }
            getChildFolders(folders[i], collectionArray, counter, maxNestLevel);
        };
    };

    function makeMessage(arr){
        var msg = "", thisObj;
        for(var i = 0; i < arr.length; i++){
            thisObj = arr[i];
            msg += (i + 1) + ") " + "Nest[" + thisObj.nestLevel + "] " +  thisObj.name + "\r";
        };
        return msg;
    };

    var root = Folder.desktop.selectDlg('choose a root folder');
    if(!root){
        return;
    }
    alert(makeMessage(getFolderTree(root, 1))); // change the number to determine the max nesting level you want to show!

};
test();

Tags: Illustrator

Similar Questions

  • How to apply the created style as a number of list twice but the new paragraph begins number 1?

    Hi all

    I work in design and I created a style sheet that applies the list of numbers in the paragraph highlighted.

    NOOW I am facing a problem. If the same style on the same page but for another paragraph he continues with the next number in the first list of numbers, as it actually should start with number 1.

    Does anyone know how to start the next list of numbers with number 1 again even if I apply the same style of number again to a different point on the same page?

    Please let me know.

    Thanks in advance for your help.

    Quick fix:

    Right-click / CTRL-click (to get the context menu) on the first line of the second number list and select Restart numbering from the list of options.

    Repeat as needed for the following lists.

  • Maximum number of list to multiple selection on a page

    Greetings,

    I use the Application Express 4.2.1.00.08. I have a problem in one of my pages. I have several items (123 from today ' hui), and two of them are lists of multiple selections. They are all the same... created is based on a named LOV, together forever, used Source Source Type defined on the database column... and they all work fine, except the last. Don't just save to the database.

    I tried:
    -Delete and recreate from scratch - does not save
    -Deletion and recreation of one copy of another list selection multiple work - does not save
    -Change the view state for one of my multiple selections of work lists to never (to have a less rendered multiselect list) - does not save
    -Keep everything the same but by changing the type of element (text field) - saves
    -Keeping all the same, but change to a normal selection list (no) - saves

    So, I came to the point of wondering... is there a limit on how many multiple-selection list can be on a page?

    If so, does anyone know a kind of workaround?
    If this isn't the case, anyone has an idea why I'm having this problem?

    Thank you for your comments,
    Mathieu

    I found something. If I move the item to another region, it works again, but not in all regions. I tried to create a new region and delete my article in there, but it doesn't seem to work. I'll keep looking.

    Thank you
    Mathieu

  • Number of list and bulleted list w / Custom Style sheet

    Hello
    I am a new user to RoboHelp 7 and must say that I find useful but also painful to use. I'm trying to solve something that looks like a bug in RoboHelp 7, but before I give in and accept defeat, I wanted to check with the forum.

    I of FrameMaker 8 and import the files to HR where I use them to create WebHelp projects.

    This is an accelerated procedure:
    1. I import my files with a stylesheet predefined matching styles of FM.

    2. I have also check the option convert to HTML list and the bullet and numbering styles the value defined by the user.
    -After importing RH did the usual thing and creates a bunch of stylesheets in itself

    3. I select all files in the pod of the list of subjects and apply a new style sheet custom. This allows me to have a style sheet for all HTML files with the correct layout and formatting

    4. I have generate the output and HR uses the new style sheet reference
    HTML shows files that the output is not the same as the HTML generated, shown in the mode of the editor HTML HR

    -View Editor: < class li = 'style' >
    -Display: < li >

    6. If I make a change (for example, add a space) and save the HTML file and build the project again the HTML code is correct in the browser

    It could be argued that it is not a big problem; However, with a large project that begins to look more like a nightmare ;)

    Does anyone know of this problem and if so can it be solved?

    Kind regards
    Jon

    Thanks Milot,
    I hope that my company will see your 'solution' as an argument to upgrade licenses FM and FM 9 and 8 HR HR. Would be so nice if Adobe would let us by licenses cheaper that we bought just FM 8 and RH 7 2 months ago. 7 HR isn't really worth the money spent to date in my mind.

    Once again thank you for answering my questions.

    Kind regards
    Jon

  • Model number of list

    Dear,
    I use model list "Drop-down Menu with image", the problem is that I have Marion have the menu drop-down submenu

    See the image below:

    http://i47.Tinypic.com/2dtq7b9.jpg

    If I use the copy of the menu drop-down submenu (custom), I get the drop down menu submenu but not image:
    See:
    http://i50.Tinypic.com/24ql45e.jpg

    could someone give me an idea?

    Thanks in advance.
    Celio

    Hello

    You need to create clean images.
    Verify that the list template and you can see that image is "hard coded".
    Themes/generic_list.gif

    You can take this image as a model and create clean images.
    Change model
    #IMAGE_PREFIX #themes/generic_list.gif to #IMAGE #.

    Displays the images that you define in the list

    BR, Jari

  • InDesign cs4 - from a list, but not with the number one

    Hello

    I think remember me an option 'start at number' for lists in previous Indesigns. He can not see in my indesign cs4

    Want the list at number 12 instead of number 1.

    Bullets and numbers...

    Choose: Numbers (rather than None or balls)

    Under Mode, choose Start At:

  • Siri keeps trying to dial a number that does not exist

    I ask Siri to call the iPhone to my wife and she asked me which of the two numbers, I.  Problem is, there is only one number. I checked the Contacts on my Mac Pro, as well as on the iPhone. His only real number is listed.  How can I me Siri to stop trying to call a non-existent number?

    If you have not yet tried, reboot the iPhone, then try to Siri.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • I want to be able to copy the addresses several address different books/lists - how to?

    I would like a master address book and then be able to put addresses in group lists - sometimes the same address must not included in a number of lists/group - how can I do this? I don't seem to be able to copy an address on several lists. Thank you Tim

    Hold down the CTRL key while dragging the contact between books. You will see a sign more suggest a copy instead of move.

    You can also create mailing lists within the address book to use to treat the group emails. Here is the Info for this.
    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Create_Mailing_List

  • What is the number of MB of Satellite A300 part - 1 L 0 PSAGCE

    Hello

    I've got Toshiba A300 model No. - 1 L 0 PSAGCE-03100UGR.

    But there is a problem with graphics ATI 3450 (M82 chipset). After installing the correct drivers, I got blue screen on startup of Windows - and it says this file ati2... dll gives the problem. The same situation occurs on both Windows XP and VISTA.

    What is the reference number of the laptop computer motherboard mentioned? I intend to sell all parts of this laptop that is why I would like to know the part number.

    Part number is listed in the Toshiba database only then you have to find someone who has access. What you write when you sell your laptop, is that this motherboard is for A300 PSAGCE part number with.

    Someone who needs new motherboard will know what that means.

  • Contact 'ghost' single, not appearing is not in the list of contacts

    Hi all

    I started using my Z5 a few days ago. When I first connected with Google, a few contacts I had (from Windows Phone, so most contacts are stored there) were imported to the phone. One of them was my brother.

    When I imported my contacts list full, contact my brother remained 'Max', but looking at the texts or calls on his part, the number is listed as 'me '. This contact does not appear in my contact list and I can't interact with the entry by visiting contact (deletion, change of name, etc.).

    I don't know what caused this! I only have contacts with display of phone numbers (which is the only information on this contact ghost), and that the contacts from my Google account (which have been imported). Suggestions appreciated.

    Those who are related somehow. Are you ready to clear data for the contacts under settings-applications-all storage and use a backup we'll say to restore your contacts? The action will delete all your contacts that are stored on the device.

  • The unit private lists

    Is there a way I can limit the private lists of subscribers so that they can:

    (1) do not have access to this feature or

    (2) limits the amount of subscribers per list?

    In later versions of 4.x, you will find that the 'Features' of the object of class of Service page has the ability to limit the number of lists and the number of users per list that are available to Subscribers associated with this COS. However, the minimum for both is 1, so you cannot completely disable the functionality in this way...

  • Invalid product identification number?

    When microsof supportt asks for my "product identification number" is listed under > control panel/system and security/system/activation< i="" type="" it="" in="" the="" box="" and="" click="" "continue"="" it="" comes="" up="" as="" an="" invalid="" iproduct="" id="" number="" but="" its="" a="" brand="" new="" windows="" 7="" x64="" home="" premium="" install="" and="" shows="" windows="" activation="" as="" "successful="" activation".?="" its="" the="" same="" if="" i="" let="" microsoft="" support="" find="" the="" product="" id="" nuumber="">

    The demand for the product ID it is to establish your eligibility for support - free if you have an OEM license, you will need to go to the manufacturer of your device to the software support (this is why licenses are less expensive)

  • delete the list of multilevel numbers

    This seems to be a stupid question, but is it possible to remove a number from list when it is created?  How I did something, I changed and I now have additional lists numbers I would like to remove from the selection, but I can understand or find a way to clean it.

    number_list.png

  • Provision of 50 lists of model selection

    Hello

    I use APEX 4.2, model 50 mobile

    When I use the element as 'select list' list appear in a different layout according to the number of list item, I spot these item and see if I use less that 10 point appear in the 1st layout, when I have between 10 and 15 the 2nd layout and appear if more than 15 3rd layout appears is there, select any solution to keep all as 1 list layout?

    Thank you

    Hi Hani,

    I think what you are referring to selection lists with more than 10 items in a modal page instead of inline.

    You can force the line selection list by placing the following text in the form field HTML attributes of elements to the selection list.

    data-native-menu = 'true '.

    see you soon,

    Ron

  • Photoshop invites to indicate the serial number after the purchase of subscription of photography

    Hello, recently I got subscription photography. After the signed cloud photoshop wonder a serial number.

    I had a conversation with a representative of adobe, who advised me to contact technical support, he said that the side Adobe I have no registered subscription (even though I have one in my profile and I have an order id).

    On the contact page, it has been said that management is too important, so I'm here...

    My products can display only the things that were saved, which you can't do because PS - CC requires a serial number, so maybe it is normal that nothing is listed, there, again.

    Check the evidence of your subscription, here, in the section orders:

    https://www.Adobe.com/account/account-orders.html

    For mine, I see a subscription purchase confirmation and the list of transactions monthly, similar to what is shown in two parts on creative.adobe.com.

    If none is at this link www.adobe.com then there may be a problem buying due to payment order repairman not Adobe, and you can find relief with someone like the Beverly who seems to solve problems of purchase/credit popular, after they display on this forum; However, your topic forum post, referring to the serial number of problems, by not buying not problems, offers a technical support solution, so it can be overlooked by someone like Beverly.

    If something is listed for your purchase on www.adobe.com , the issue could be a problem with licenses or the app Manager CC data stored on your local computer, whatever done PS - CC think he needs a serial number, and probably a technical support person to connect remotely and hack something to get PS - CC to understand you are allowed.  Logging usually outside and in the CC Manager is enough to have the Manager CC rescan and figure things, but usually happens in cases where a serial number is not required for the app Manager CC does not see that the PS is allowed.

    Another idea is that perhaps the type of purchase, you did through DigitalRiver has a sort of serial number associated with that would be included in a letter of confirmation of the order, to verify all e-mails or digital recipes that you received during the order process to see if a serial number is listed.

    Finally, where do you have the PS - CC version you have installed?  If it wasn't in the either a button in the application of CC-Manager or an icon on the creative.adobe.com pages, then it may be the wrong version, and the fix would be to uninstall what you have and download and install the version CC-Manager/creation, and it might be useful to do, anyway, even if you don't think that you have installed the correct version in case something does not quite work in the first installation.  I don't know if your European location would cause the wrong version to download.

Maybe you are looking for

  • Install XP Probook 1 440

    Hello I need to install win XP on a 440 G 1 probook, but I can´t to disable the AHCI option in order to configure correctly to the new installation of win XP, can anyone help me with this? is there a chance to "unlock" this BIOS option or simply an o

  • left mouse Botton does not not on my laptop

    The botton by clicking left on my laptop suddenly stop working. It does absolutely nothing when I click nothing happens I tried to go to the control panel-other currencies-mouse... but then mouse that everything seems fine so I know not what happened

  • How to call the function cascade BlackBerry

    I begineer in blackberry c ++. I do two class is testobject and second in test .i call the onther text function average () and nexttext(); so please how to call this function. // Default empty project template #include "TestObect.hpp" #include #inclu

  • Category Web recording ASDM

    Hello! Play the URL filtering x 5506 and management by using ASDM (using version 6.0) It works well, but I get only connect by category. Is it possible to see all sites visited, not only the catergory?  I'd be good to dig deeper in the forest part of

  • EPM 11.1.2.4 and planning in offline mode

    Hi allI wanted to know if 'Planning offline' is still a feature available in Oracle EPM 11.1.2.4 and, if so, where can I find the customer.Thank youbidi