Manage Document with parent folder with subfolder

Dear All Friends
i want to create document management system where all document manage dynamicaly with Folder -->Subfolder-->Subfolder. There is no restiction to create Subfolder
Like
Parent Folder is A and  subfolder are B,C,D,E,F
A-->B--C-->D -->Document 1
Document 2
Document 3
and want to display these folder as an list menu.
How can i do this..
Thnaks

Vedant wrote:
i want to create document management system where all document manage dynamicaly with Folder -->Subfolder-->Subfolder. There is no restiction to create Subfolder
Like
Parent Folder is A and  subfolder are B,C,D,E,F
A-->B--C-->D -->Document 1
Document 2
Document 3
Use the XMLDB Repository.
and want to display these folder as an list menu.
Create a dynamic list based on the XMLDB views.

Similar Messages

  • Quality management document with exercise

    Hi friends
      Any one please send the link Quality management  document with exercise
    thanks in advance

    Refer
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/a6/df293581dc1f79e10000009b38f889/frameset.htm
    Quality Management has eight sub-modules
    1) Quality Planning
    2) Quality Inspection
    3) Quality Control
    4) Quality Certification
    5) Quality Notification
    6) Test Equipment Management
    7) Stability Studies
    8) Inspection using Multiple Specification
    You can go to Productio Lifecycycle Management (PLM) form of SDN.SAP also
    or refer
    http://erpgenie.com/index.php?option=com_content&task=category&sectionid=5&id=77&Itemid=76
    regards,
    Chintan

  • Importing/managing documents with DM6

    Setting up DM6 was fine and it is syncing organizer and media files fine.   I don't have much need for media files, so I don't care that it is easier.   My issue is I have been unable to determine how to import and manage documents (xls, doc, pdf) I need.   I have looked at every menu and I don't see how to do it.  DM5 was awkward at times, but you could work with documents. 
    Has anyone found how you import documents with DM6?  I hope it is something easy I overlooked like a setting change.

    Hi and Welcome to the Forums!
    IMHO, DTM is the most difficult method by which to manage files on the BB. The only usefulness I find is if I need to transcode media files in order for them to play properly on my BB...otherwise, simply using the USB-drive method in Windows Explorer is the simplest method for managing files. See this article:
    http://supportforums.blackberry.com/t5/BlackBerry-Desktop-Software/HOWTO-use-your-blackberry-as-a-US...
    While it's a little dated and talks about prior versions of DTM plus some of the on-device menu settings may be in a different place based on your OS, the basic premise is the same...tether via USB and then have, in your PC interface, two additional drive letters representing your Device Memory and your Media Card Memory. Then you simply use Windows Explorer to manage the files just like you would with any other USB drive (e.g., thumb drive, etc.).
    Hope that helps!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Fetch Details of Transport Management Documents with Document IDs.

    Hi,
    I have a requirement in which I have to fetch details like Partner IDs, Transportation mode etc. for various TM documents like Freight Order, Forwarding Agreement etc on the basis of their Document IDs.
    I could find that Documents are stored as Business Objects in SAP TM system which we can explore with transaction /BOBF/CONF_UI.
    Could anyone please help me further with how can I fetch the details for a TM document from Business Objects.
    Thanks,
    Shalabh

    Shalabh ,
    The only way to fetch data from BOBF is to dig in a standard way, i can only suggest some code with methods.You can use them as ref. to fetch required data.
    This is a sample to get your Freight order root , key is your parent Key.
      DATA:
               lt_key               TYPE /bobf/t_frw_key,
              lt_root              TYPE /scmtms/t_tor_root_k,
              lo_srvmgr            TYPE REF TO /bobf/if_tra_service_manager.
    CALL METHOD lo_srvmgr->retrieve
             EXPORTING
               iv_node_key = /scmtms/if_tor_c=>sc_node-root
               it_key      = lt_key
             IMPORTING
               et_data     = lt_root.
    similarly you can use associations to fetch further nodes from BOBF.
    CALL METHOD lo_srvmgr->retrieve_by_association
             EXPORTING
               iv_node_key    = /scmtms/if_tor_c=>sc_node-root
               it_key         = lt_key
               iv_association = /scmtms/if_tor_c=>sc_association-root-stop_first
               iv_fill_data   = abap_true
               iv_edit_mode   = /bobf/if_conf_c=>sc_edit_read_only
             IMPORTING
               et_data        = lt_stop
               et_target_key  = lt_stop_key.
    Hope this Helps.
    Thanks
    Sarab.

  • Automator and applescript to copy new files in a folder with same name as parent folder

    I have an iMac with a pictures folder (Finder folder) containing several subfolders with pictures. As per now, all these subfolders are imported into an iPhoto library (and the structure of the Finder pictures folder is thus maintained: The iPhoto events are named the same as the Finder subfolder). I.e. I have not created any albums in iPhoto.
    I have also set up a workflow, where new iPhone photos are automatically being synced to specified Finder folders within the iMac pictures folder. So what I want to do is to make a workflow to import potential new photos from week to week into the existing iPhoto structure. I know iPhoto has this Autoimport folder, so this one is unpacked and "mapped". So, this is what I´m hoping to do:
    Automator (iCal - want to do this on a weekly basis):
    - Get specified Finder items -- set to target folder = iMac pictures folder
    - Get folder content (with subfolders)
    - Filter Finder items
         - Items from the last 7 days (which then would be any new files created last week)
    - Applescript/shell script loop(?)
         - Get folder name for each file´s (from previous step) parent folder
         - Create new folder with same name as the file´s parent folder (if not already existing) under the iPhoto Autoimport folder
         - Copy the given file into the folder from above
    - Run iPhoto application (Automator task), which then should just auto import the new photos according to the Finder folder structure
    Whith the workflow above, I aim to maintain the existing iPhoto structure, and just import new photos into the existing structure. Creating folder names under the Autoimport, similar as the existing Finder folder names / iPhoto events should make it possible to have the new files imported under the existing event, right?

    Anyone?
    I have now switched to Aperture (from iPhoto) due to Aperture´s capability to handle Finder folder structure, and due to the possibility of having the pictures within Aperture as referenced files to the pictures within the Finder folders (i.e. possibility to delete pictures from both library and Finder folder at the same time).
    So I have a superior Finder folder called "Album". Within "Album" I have several subfolders (sub albums) containing pictures. The "Album" folder with subfolders are imported into Aperture as "Projects and albums", and the pictures are uploaded within the Aperture structure as referenced files. So for now the Aperture structure is more or less a direct mirror of the Finder folder structure, whereas "Album" is the project.
    And this is my current workflow in Automator, but I´m searching help with my Applescript:
    - Get specified Finder items (target folder = the superior Finder folder "Album")
    - Get Folder content
    - Filter Finder items (to look for potential new files to import into Aperture)
         - Kind is not folder
         - Date created last X days
    The output files from this task enters an Applescript
    on run {input, parameters}
           repeat with f in input (**Loop**)
                   tell application "Finder"
                          set fileName to name of (f)
                          set parentFolder to name of container of (f)
                          tell application "Aperture"
                                 tell library 1
                                        tell project "Album"
                                               if (exists album parentFolder) then
                                                 ** I then would like to check if fileName already exist within the existing album**
                                                 ** If not existing, I would like to import file f into the existing album as a referenced file**              
                                               else if not (exists album parentFolder) then
                                                       make new album with properties {name:parentFolder}
                                                ** I then would like to import file f into the new album as a referenced file**
                                               end if
                                        end tell
                                 end tell
                          end tell
                   end tell
           end repeat
    end run

  • Can DNSServer Powershell module cmdlets be used to add a host record with a blank name? i.e. "(same as parent folder)"

    Giving Add-DnsServerResourceRecordA a blank name yields an error (basically saying that the 'Name' parameter cannot be null or empty). In DNS Manager (dnsmgmt.msc)
    adding such a host record yields a record with the same name as the parent folder, denoted by "(same as parent folder)" in the Name column.
    Is there some flag I can pass to Add-DnsServerResourceRecordA to achieve the latter functionality? Is there some other way to achieve this in Powershell?
    I currently have the line of PS below, and if $name="" I get the error.
    Add-DnsServerResourceRecordA -IPv4Address $ip -ZoneName $zone -Name $name -ComputerName $dns

    Thanks, Calin!
    This could be added as an example here: http://technet.microsoft.com/en-us/library/jj649925.aspx
    Now that I see your answer Example 6 looks like it was supposed to use -Name "." but part of the line is missing so it just looks broken instead.

  • XML document with the folder heirarchy

    Can you create an XML document having the current heirarchy of folders and all their custom attributes in IFS. If yes HOW? If no what other way is there to get all the folders and their custom attributes.
    null

    Yes, it is possible to create a folder hierarchy with custom attributes via XML in iFS.
    You would first create an XML type definition file for one or more extended folder types with the corresponding custom attributes. Then, you would create instances of your custom folder types. The values of the custom attributes would be supplied as the values of elements which correspond to thos attributes. The parent folder of each instance would be specified using the <FOLDERPATH> element.
    Instructions and examples are provided in the Oracle iFS Developer's Guide, chapter 4. Although this chapter illustrates how to extend the Document class, and create instances of Documents, the same can be done with Folders.

  • Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?

    Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?

    Forgive my ignorance but I have never hear of iTunes Document Manager Pro. If you mean Document Manager Pro, i was able to find that. Back to your problem, have you tried opening one of those files in the iOS iWorks apps? Form the quick read that I did about this, .cwk files can be opened by Pages, Numbers or Keynote, depending on what type of document that it is and those files can be read by Document Manager Pro, after properly saving them. I don't see that you can go directly from the .cwk file in Document Manager Pro without converting them first.
    I took a very quick look at the app, so I may be a missing something about its capability.

  • How to subscribe a folder or a document with read-permission

    Hi,
    We´re using SAP NetWeaver 2004s, SPS10.
    Without read- and write-permissions you can´t open the details-iview for a document or a folder. Well, how is it possible to subscribe an object (service permission = "Subscribe (Myself only)" ist set) without opening the details-iview?
    That´s a big problem for us.
    Thanks for help,
    Sven Keller

    Hi Sven,
    the missing Details command is a bug and will be solved with SPS12 of NW2004s.
    For more infos check this thread: https://forums.sdn.sap.com/thread.jspa?threadID=330797&tstart=0
    Hope this helps,
    Robert

  • Is there a way to drag, copy, export parent folder shown in light room with multiple child folders to smug mug?

    I have a parent folder called FHS Dance Competition, that contains several folders (one per team).   I have this structure in my computer hard drive which I uploaded with one click to light room.    In the past I've had to manually create each folder, copy the name, drag in the photos, etc.  Very time consuming.    Is there a way to drag or copy, or export the parent folder shown in light room to the lower portion of the screen where the smug mug piece is?

    Ron,
    I too need to make "Real Copies" of images and hate doing anything directly from the OS because of the chance that my LR catalog gets out of Sync with the actual images on the computer.  So I make the copies inside LR with an export routine and then move the copies inside of LR with the normal drag and drop.  Once the export preset is created it can be executed from the Library Grid by right-clicking on the image (or selected images) to make the copies.  My settings are as follows in case you are interested:
    This is the first time I have posted an image before and I am not sure if you will be able to read it or not.  The contents from the export preset in the image above are as follows if that helps:
    s = {
    id = "3AF0E3D2-BC6A-4D53-A7BE-B7A6C4D673AC",
    internalName = "Make Real File Copy",
    title = "Real File Copy",
    type = "Export",
    value = {
    collisionHandling = "overwrite",
    exportFilters = {
    exportServiceProvider = "com.adobe.ag.export.file",
    exportServiceProviderTitle = "Hard Drive",
    export_colorSpace = "sRGB",
    export_destinationPathSuffix = "",
    export_destinationType = "sourceFolder",
    export_useSubfolder = false,
    extensionCase = "lowercase",
    format = "ORIGINAL",
    includeVideoFiles = false,
    initialSequenceNumber = 1,
    jpeg_limitSize = 100,
    jpeg_useLimitSize = false,
    metadata_keywordOptions = "lightroomHierarchical",
    minimizeEmbeddedMetadata = false,
    outputSharpeningLevel = 2,
    outputSharpeningMedia = "matte",
    outputSharpeningOn = false,
    reimportExportedPhoto = true,
    reimport_stackWithOriginal = true,
    reimport_stackWithOriginal_position = "below",
    renamingTokensOn = true,
    size_doConstrain = false,
    size_resolution = 300,
    size_resolutionUnits = "inch",
    tokenCustomString = "RC",
    tokens = "{{image_name}}_{{custom_token}}",
    tokensArchivedToString2 = "{{image_name}}_{{custom_token}}",
    useWatermark = false,
    watermarking_id = "<simpleCopyrightWatermark>",
    version = 0,
    Let me know if you have any questions.
    Jeff

  • Using Content Query webpart for specific Document library with multiple managed metadata - Document with multiple metadata tags not showing up

    Hi,
    I am having an issue where when I insert a Content Query webpart into a page, and filter to managed metadata, all the right documents show up except one document that happens to have two metadata tags attached to it.  The content query webpart is set
    to only look through a specific document library.  I'm not sure what I am doing wrong.
    Here is the one document with two metadata tags:
    Below is the Content Query:

    Hi,
    As I understand, you did not get the results with multiple metadata tags through Content Query web part in SharePoint 2013.
    Check things below:
    1. Check if you have set the item limit more than the display items in Presentation section of the web part. If the item number more than item limit, the rest items will not show.
    2. Check if the item you cannot find uses the content type you have set in the content type section of content query web part.
    When you edit the properties of the item, you will see the content type the item is using.
    Best regards
    Sara Fan
    TechNet Community Support

  • How do I manage photos using a folder - subfolder type structure?

    How do I manage photos using a folder - subfolder type structure as I have done previously within Windows? For example, my photos were stored with a folder for each year and sub-folders for each month whicheach  held the photos. Can I do this in iPhoto?

    For example, my photos were stored with a folder for each year and sub-folders for each month whicheach  held the photos
    Why bother?
    Check out the search box at the bottom of the Window. (Click on the Magnifying glass, it opens it) Now click on the mgnifying glass in the search box) and select 'Date'. Now you can find all the photos from any day, month or year. If you want to find the photos from a range - say a paticular week - then you can do that with a Smart Album.
    Organising photos by date means you have to remember the date the shot was taken, and after a while, and after a few thousand shots, this gets harder and harder to do, so you spend more and more time rooting through folders.
    iPhoto offers a range of organising tools and each offers more possibilites to quickly find the shot you're looking for. For instance:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 45k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • Ipad, filing, folders, opening a document with more than one app...

    Hi
    I am wondering about iPad filing, documents and the future that iOS 5 and iCloud hold.
    Am I right in thinking that there will still be no file/folder structure and that documents will be held individually by apps?
    This creates two problems for me:
    1)  I need to access the same document (e.g. a pdf file) from more than one app. For example, say I need to use iAnnotate to mark it up and Sente to file it. However each app keeps their own copy of the document, so the annotated copy from iAnnotate is not the same copy as the one filed correctly in the Sente database.
    2) How do I keep the files for a specific project together? Say I have source documents, word-processing documents, presentations, images etc all related to one project: how do I keep them all together? If we had tagging  (as in openmeta or similar) I could tag them - works beautifully on the desktop but not available on the iPad. If we had folders I could at least group them in folders... What is is the iPad solution?
    M

    Here's how I address # 1:
    I use DropBox as my central hub to keep documents accessible and synced between my iPad and my laptop. That means that I export, share, copy or print the document, with my changes, to DropBox from whatever application I'm using. For example, if I open a PDF in PDF Expert (the app I use for reading and annotating) I can "open" a copy in DropBox with my annotations. For Pages and other iWork files I use DropDAV which enables me to save to DropBox via WebDAV. For other apps like Safari that don't have DropBox integration, I use Save2PDF to "print" a PDF to the appropriate DropBox folder.
    As to #2, two things come to mind. The first is that you can use the search function to find related files if you put your tag in the title or somewhere else searchable. The second is that I set up a file structure in DropBox on my laptop that meets my needs (and is also one way to begin to emulate a file structure on the iPad). For example, i keep my current course files, with their presentations, documents, and spreadsheets, in DropBox. But many of my projects have so many components and so many images, etc, I've become used to having components in different applications (Aperture, iTunes, etc) and I do rely on my laptop (and its external drives) for my central and final project management. For things in process, though, the iPad works very well.
    ICloud may change all this. :-)

  • Opening a document with a dialog open

    I am trying to open a document with a window open created by javascript, but I get an error when the window is open and I try to open the document. See attached:
    Is there no way to have a window open and the application open a document at the same time?
    See code, do you see any errors:
    #target "InDesign-7.0"
    #strict on
    UserInteractionLevels.neverInteract;
    var dlg;
    Validate the input by the user
    function validate()
         if(dlg.iPanel.inputPath.text == "")
                alert("Error, please define a directory to convert.");
                return -1;
        if(dlg.oPanel.outputPath.text == "")
                alert("Error, please define an output directory.");
                return -1;
        return 0
    define user text file
    input to define file path
    function getInput()
        var input_folder = Folder.selectDialog( 'Select the directory where you wish to open the files: ', '' );
        if (input_folder != null)
            this.parent.inputPath.text = input_folder.toString();
            this.parent.inputPath.enabled = false;
    define user output path
    function getOutput()
    var output = Folder.selectDialog( 'Select the directory where you wish to output the files: ', '' );
    try
    this.parent.outputPath.text = output.toString();
    catch(e)
    alert("Path is undefined");
    this.parent.outputPath.enabled = false;
    return;
    function for writting out
    errors.
    function log_status(msg, file)
    if(errorFile.exists == true)
    alert("File  exist")
    errorFile.open("e", "", "")
    errorFile.write(msg + "\n");
    errorFile.close();
    else
    alert("File no exists");
    errorFile.open("w", "", "")
    errorFile.write(msg+ "\n") ;
    errorFile.close();
    return;
    open indesign file
    function openFile(file)
        try
        app.open(File(file));
        catch(e)
        alert(e);   
    return;
    Export PDF
    function exportPDF(output)
    main function to convert
    indesign files to pdf
    function main()
        var errorFileObj = new File("c:/errorFile.txt");
        var successFileObj = new File("c:/successFile.txt");
        errorFileObj.open("w", "", "");
        successFileObj.open("w", "", "");
        if(validate() == -1)
            return;
        var input_folder = new Folder(dlg.iPanel.inputPath.text);
        files_array = input_folder.getFiles( '*.indd' );
        //dlg.close(1);
        for(var i = 0; i < files_array.length; i++)
            try
                openFile(files_array[i]);
            catch(e)
                errorFileObj.write(files_array[i]+ "\n") ;
                continue;
            try
                //exportPDF(output);
                successFileObj.write(files_array[i]+ "\n") ;
            catch(e)
                errorFileObj.write(files_array[i]+ "\n") ;
                continue;
            alert(files_array[i]);
        successFileObj.close();
        errorFileObj.close();
        alert ("Files finished converting");
    create an instance of GUI for
    user input
    function createGUI()
    dlg = new Window('dialog', 'Indesign to PDF:', [100,100,480,300]);
    dlg.iPanel = dlg.add('panel',[5,10,375,80], 'Define Input');
    dlg.iPanel.inputText = dlg.iPanel.add('statictext', [10,12,125,25], 'Browse for directory:');
    dlg.iPanel.inputBtn = dlg.iPanel.add('button', [10,30,110,50], 'Browse');
    dlg.iPanel.inputPath = dlg.iPanel.add('edittext', [120,30,350,50], '');
    dlg.iPanel.inputBtn.onClick = getInput;
    dlg.oPanel = dlg.add('panel',[5,80,375,150], 'Define Output');
    dlg.oPanel.outputText = dlg.oPanel.add('statictext', [10,12,165,25], 'Browse for output directory:');
    dlg.oPanel.outputBtn = dlg.oPanel.add('button', [10,30,110,50], 'Browse');
    dlg.oPanel.outputPath = dlg.oPanel.add('edittext', [120,30,350,50], '');
    dlg.oPanel.outputBtn.onClick = getOutput;
    dlg.startBtn = dlg.add('button', [225,160,375,185], 'Start Conversion');
    dlg.startBtn.onClick = main;
    dlg.show();
    createGUI();//entry point for the script

    Okay, this works....LAME....
    #target "InDesign-7.0"
    #strict on
    UserInteractionLevels.neverInteract;
    var dlg;
    var files_array;
    Validate the input by the user
    function validate()
         if(dlg.iPanel.inputPath.text == "")
                alert("Error, please define a directory to convert.");
                return -1;
        if(dlg.oPanel.outputPath.text == "")
                alert("Error, please define an output directory.");
                return -1;
        return 0
    define user text file
    input to define file path
    function getInput()
        var input_folder = Folder.selectDialog( 'Select the directory where you wish to open the files: ', '' );
        if (input_folder != null)
            this.parent.inputPath.text = input_folder.toString();
            this.parent.inputPath.enabled = false;
    define user output path
    function getOutput()
    var output = Folder.selectDialog( 'Select the directory where you wish to output the files: ', '' );
    try
    this.parent.outputPath.text = output.toString();
    catch(e)
    alert("Path is undefined");
    this.parent.outputPath.enabled = false;
    return;
    function for writting out
    errors.
    function log_status(msg, file)
    if(errorFile.exists == true)
    alert("File  exist")
    errorFile.open("e", "", "")
    errorFile.write(msg + "\n");
    errorFile.close();
    else
    alert("File no exists");
    errorFile.open("w", "", "")
    errorFile.write(msg+ "\n") ;
    errorFile.close();
    return;
    open indesign file
    function openFile(files_array)
        for(var i = 0; i < files_array.length; i++)
            try
                app.open(File(files_array[i]));
            catch(e)
                alert(e);
                continue;
    return;
    Export PDF
    function exportPDF(output)
    main function to convert
    indesign files to pdf
    function main()
        var errorFileObj = new File("c:/errorFile.txt");
        var successFileObj = new File("c:/successFile.txt");
        errorFileObj.open("w", "", "");
        successFileObj.open("w", "", "");
        if(validate() == -1)
            return;
        var input_folder = new Folder(dlg.iPanel.inputPath.text);
        files_array = input_folder.getFiles( '*.indd' );
        dlg.close ();
        //dlg.destroy();
        for(var i = 0; i < files_array.length; i++)
            try
                openFile(files_array[i]);
            catch(e)
                errorFileObj.write(files_array[i]+ "\n") ;
                continue;
            try
                //exportPDF(output);
                successFileObj.write(files_array[i]+ "\n") ;
            catch(e)
                errorFileObj.write(files_array[i]+ "\n") ;
                continue;
            alert(files_array[i]);
        successFileObj.close();
        errorFileObj.close();
        alert ("Files finished converting");
    create an instance of GUI for
    user input
    function createGUI()
    dlg = new Window('dialog', 'Indesign to PDF:', [100,100,480,300]);
    dlg.iPanel = dlg.add('panel',[5,10,375,80], 'Define Input');
    dlg.iPanel.inputText = dlg.iPanel.add('statictext', [10,12,125,25], 'Browse for directory:');
    dlg.iPanel.inputBtn = dlg.iPanel.add('button', [10,30,110,50], 'Browse');
    dlg.iPanel.inputPath = dlg.iPanel.add('edittext', [120,30,350,50], '');
    dlg.iPanel.inputBtn.onClick = getInput;
    dlg.oPanel = dlg.add('panel',[5,80,375,150], 'Define Output');
    dlg.oPanel.outputText = dlg.oPanel.add('statictext', [10,12,165,25], 'Browse for output directory:');
    dlg.oPanel.outputBtn = dlg.oPanel.add('button', [10,30,110,50], 'Browse');
    dlg.oPanel.outputPath = dlg.oPanel.add('edittext', [120,30,350,50], '');
    dlg.oPanel.outputBtn.onClick = getOutput;
    dlg.startBtn = dlg.add('button', [225,160,375,185], 'Start Conversion');
    dlg.startBtn.onClick = main;
    dlg.show();
    createGUI();//entry point for the script
    openFile(files_array);

  • Making a document with horizontal (or top) binding spine, e.g. for calendars

    On request of Peter Spier I will post a script here to make a document with top binding for e.g. calendars. The script supposes you have made your document (calendar) on normal facing or non facing pages.

    Dave Saunders script to make a booklet:
    //DESCRIPTION: Shuffles pages for booklet printing
    Written by Dave Saunders
    Latest Revision: August 15, 2005
    Copyright ©2005 PDS Associates
    if (app.documents.length == 0) {
    alert("There are no open documents.");
    exit();
    // Make sure that the pages are a multiple of four
    myPages = app.documents[0].pages;
    if (myPages.length % 4 != 0) {
    alert("Document length isn't a multiple of four.");
    exit();
    // Document is suitable for converting to a booklet
    Before proceeding, check to see if document needs to be saved
    if (app.documents[0].modified) {
    if (confirm("Document has unsaved changes. Click OK to save them and proceed.")){
    app.documents[0].save(app.documents[0].fullName);
    } else {
    exit();
    // Some trickiness to get a copy of the document opened
    if (app.version == 3) {
    app.userInteractionLevel = UserInteractionLevels.neverInteract;
    } else {
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
    myFN = app.documents[0].fullName;
    myName = app.documents[0].name;
    for (n=0; 1000>n; n++) {
    myTN = app.documents[0].filePath + "/" + myName.split(".indd")[0] + String(n) + ".indt";
    if (File(myTN).exists) { continue } // Template already exists, try another name
    app.documents[0].save(File(myTN),true); // Save as template
    app.documents[0].close();
    app.open(File(myTN)); // Open another untitled copy
    File(myTN).remove();
    break; // This loop will drop through if you already have 1000 template files with the same
            // name as your document with 0 - 999 as postfix; This is highly unlikely, but if it does
            // happen, I just go ahead and work on the original; the only warning will be that the
            // booklet document won't be untitled; it'll have the same name as your original document.
    if (app.version == 3) {
    app.userInteractionLevel = UserInteractionLevels.interactWithAll;
    } else {
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    app.documents[0].documentPreferences.allowPageShuffle = false;
    for (i=0; myPages.length > i; i++) {
    origSection = myPages[i].appliedSection;
    origNumbering = origSection.pageNumberStyle;
    origSection.pageNumberStyle = PageNumberStyle.arabic;
    pageName = myPages[i].name;
    sectName = origSection.name;
    if (sectName != "") {
      pageName = pageName.split(sectName)[1];
    pageNo = Number(pageName);
    // Following versioning logic for new section provided by Teus de Jong
    if (app.version == 3){
      newSection = app.documents[0].sections.add(undefined, undefined, {pageStart:app.documents[0].pages[i], continueNumbering:false, pageNumberStart:pageNo, pageNumberStyle:origNumbering, marker: origSection.marker, name: origSection.name});
       origSection.pageNumberStyle = origNumbering;
    } else {
      newSection = app.documents[0].sections.add({pageStart:app.documents[0].pages[i], continueNumbering:false, pageNumberStart:pageNo, pageNumberStyle:origNumbering, marker: origSection.marker, name: origSection.name});
      origSection.pageNumberStyle = origNumbering;
    app.documents[0].documentPreferences.allowPageShuffle = true;
    for (i=0; (myPages.length/2)>i; i++){
    if (i % 2 == 0) {
      app.documents[0].pages[myPages.length - 1].move(LocationOptions.before,app.documents[0].pages[i*2],BindingOptions.leftAlign);
    } else {
      app.documents[0].pages[myPages.length - 1].move(LocationOptions.after,app.documents[0].pages[i*2],BindingOptions.rightAlign);
    // Just in case the shuffling has affected the position of a text-wrapped group:
    app.activeDocument.textPreferences.zOrderTextWrap = !app.activeDocument.textPreferences.zOrderTextWrap;
    app.activeDocument.textPreferences.zOrderTextWrap = !app.activeDocument.textPreferences.zOrderTextWrap;
    To use the script, copy and paste to a text editor and save as a plain text file with an appropriate name in the form YourName.js (for CS) or YourName.jsx (for CS2) in the Scripts folder of the Presets folder of your InDesign CS or CS2 application folder (you could put it in a subfolder if you wish). Then to run the script, with your document open, double-click its name in the Scripts palette.

Maybe you are looking for