Need to report of newspaper by script

Hello

I need to match the names of 'paragraph style' Template "Standard InDesign style names.xls" file (we have already defined our standard of style names in excellent sheet), if no matter what style name change between model and sheet, excel to generate the journal report for him do not match "paragraph style name".

For example my paragraph model style file names: TT, CT, H1, H2, H3

My paragraph style names excel sheet: TTL, CT, H1, H2 H4

Here the style mismatched names is excel sheet: TTL, H4 this detail is to bring in newspaper report.

Pls help by script.

Thank you

hasvi

Hi Hasvi,

Thanks to csm_phil, because the code written by him.

First of all, you must convert the excel file to the format of files "*.csv or delimited by tabs. (I use commas .csv file).

Use the code below:

var myFile = File.openDialog("Choose a tab delimitted txt file:");
if (!myFile){
exit();
}       

var myArray = []
myFile.open('r');
while (myFile.eof==false){
    var line=myFile.readln().split(",");
    myArray.push(line[0]);
    }  

var myDoc = app.activeDocument;
var myPstyles = app.activeDocument.allParagraphStyles;  

Array.prototype.contains = function(obj) {
    var i = this.length;
    while (i--) {
        if (this[i] === obj) {
            return true;
        }
    }
    return false;
}  

var myMissingStyle =[];
for(i=2; i

To create a report:

var monFichierTexte = new File("~/Desktop/abc.txt")

myTextFile.open (w)

myTextFile.write (myMissingStyle)

myTextFile.close ();

Alert ("completed")

Thank you

Siraj

Tags: InDesign

Similar Questions

  • Need help with a basic host script?

    All I recently started using Powershell scripts and as big a language it is that I'm still learning at the 'very' early stages. All I would do is create a script that reads some hosts from a text file, and then it receives some info on all the virtual machines associated with this host. I know that the get - vm command can do for ALL the virtual machines in VC but when I run my script it seems to get the information for the VC together and NOT on a per-host basis. (We have several hosts within the domain and require info VM only a couple). Ive checked some samples but nothing that allows me to get the info I need Heres my script so far (very basic, I know!)  $hostlist = (get-vmhost-name (get-content c:\hosts.txt) | select name) #Get VMs for each host foreach ($esx in $hostlist) {$VMs = get - vm foreach ($vm in $VMs) {Write-host $vm. Write-host $vm name. $vm.numcpu MemoryMB Write-host Write-host $vm. Guest}} I know its really basic so far, but all I'm trying to achieve is just get some info on some VMS and report to the console (I know that I can send the information to a spreadsheet myself so now worries it) thank you very much for you help in advance

    You can limit the virtual machines, you receive chaining cmdlets Get-VmHost and Get - Vm together like this

    $hostlist = (get-vmhost -Name (get-content c:\hosts.txt) | select Name)
    
    #Get VMs for each host
    foreach ($esx in $hostlist) {
      $VMs = Get-VMHost $esx | Get-VM
      foreach ($vm in $VMs) {
        Write-host $vm.Name
        Write-host $vm.MemoryMB
        Write-host $vm.numcpu
        Write-host $vm.Guest
      }
    }
    
  • Need to report dynamic APEX version 4.2

    Hi all

    Can someone tell me how to get the report assumes that FIN_0112_AP_outstanding_Analysis in the tab of production in APEX Version tab.

    As you can see there are a lot of report to select the report in the screenshot of 1st and 2nd screenshot we have subtab defined in the output so parent tab regardless of the report that I will select in home page, it will go to the special subtab now my requirement, it's that I don't want to see all the subtab report so whatever the report I will select in home page indicating the sub-tab enough to show.

    for example: if I select report = Homepage FIN_0112_AP_outstanding_Analysis then this tab is enough to display in the output tab of the mother and all the other tab need to hide.

    Report_Selection.jpg

    Parent_Child_Tab_Report.jpg

    LnTInfotech wrote:

    It is true that we must control the sub-tab so that what ever the report I will select in home page that report is enough to show in the sub-tab. But I've never used the expression so could you please let me know how I can use the value of element in the Expression 1 = Expression 2 condition.

    as I P1_REPORT_SELECTION parameter in the homepage and the report_name column on the page of IR report. I would like to know how can I use expression so that home page report show only this report subtab.

    Do you understand the concept of the use of conditions to control the rendering and processing of base APEX?

    1. change each tab.

    2. go in the Conditions of the definition of the tab section.

    3. set the Status Type of point value / Expression 1 column = Expression 2.

    4. the value Expression 1 P1_REPORT_SELECTION.

    5. set 2 Expression of the value of P1_REPORT_SELECTION LOV for the tab.

  • APEX 5, interactive report remove 'Control Panel' script no longer works

    I'm trying to hide (remove) interactive report 'Control Panel' captured below so that users cannot change the report either.

    I found this thread here.

    https://community.oracle.com/thread/3686632

    Remove the interactive report 'Control Panel' script no longer works

    I tried #1 and #2. The two does not work in 5 APEX.

    By #3, I'm not sure that I put the code in the right place. But I loved not below, and it does not work.

    Can someone help me hide from opening the page control panel?

    1. in the footer

    < script type = "text/javascript" >

    $x_Hide ('apexir_CONTROL_PANEL');

    < /script >

    2 (page inline css section)

    Table #apexir_CONTROL_PANEL {display: none ;}}

    3 to implement a dynamic action on the page to hide the control panel at help:. this.affectedElements.find hide() (".to-IRR-controlsContainer"); the loading of the page.

    Kiran Pawar says:

    Hi JonDaegu-Oracle,

    JonDaegu-Oracle wrote:

    I open this IRR with this url a bit of a wiki page and I want to open this IRR without any user input and make it look like a page static as much as possible.

    .../f?p=200:21:0::no:CIR:IREQ_RELEASE,IREQ_PLATFORM:11.2.0.4,Linux:Yes

    And I tried your solution and it does not work yet. Am I missing something here?

    Set your static region ID like IR: customer_ir

    Ah. The ID attribute is dynamic. It was a busy day.

    It make much sense to do so if the IR has nothing to do with customers. Probably a better idea to use a more generic selector (assuming that there is of course no other IRs on the page):

    .a-IRR-controlsContainer {
      display: none;
    }
    
  • Needs of report to show all columns

    Hello, I have two interactive reports on two different pages, and I'm unable to show all columns. It will automatically appear all the columns. I know that I can show them all with Actions / Select the columns / > >, but I can't expect all of my users to do each time that they reopen the browser. They want that search the IRs without pressing Actions each time.

    In my 1st report, I just a column of money, but it will not appear automatically. How can I get the GAL_PUMPED to automatically display column without using the Actions menu each time?

    SELECT UFT.SITE_NUM, UFT.TANK, UFT.FUEL_TYPE, sum(UFT.GALLONS) GAL_PUMPED
    FROM  futrak.FUEL_TRANSACTIONS  UFT
    WHERE to_char(UFT.TRAN_DATE,'MON-YYYY') < to_char(SYSDATE,'MON-YYYY')
    GROUP BY UFT.SITE_NUM, UFT.TANK, UFT.FUEL_TYPE
     

    In my 2nd report, only columns of fth automatically, will not display the columns of ftd. How all the columns in the two tables to automatically display without the Actions menu each time? Also, the unit is supposed to be the last column, but this problem makes the 3rd column after using select columns. I'm stuck with APEX 4.0 and may not use plugins, but I want to hack everything that will help solve this problem. I'd appreciate any help or advice, thank you.

    SELECT fth.SITE_NUM, fth.TANK, sum(ftd.GALLONS), ftd.FLEET_ID, ftd.EXPENSE_TO_PROJECT, ftd.EXPENSE_TO_TASK, fth.UNIT_NUM
    FROM FUEL_USAGE_HEADER fth,
      FUEL_USAGE_DETAIL ftd
    WHERE 
      fth.FUEL_USAGE_ID = ftd.FUEL_USAGE_ID
    AND fth.PROCESSED_DATE is null 
    AND to_char(fth.TRANSACTION_DATE,'MON-YYYY') < to_char(SYSDATE,'MON-YYYY')
    GROUP BY fth.SITE_NUM, fth.TANK ,ftd.FLEET_ID, ftd.EXPENSE_TO_PROJECT, ftd.EXPENSE_TO_TASK, fth.UNIT_NUM
    order by 1
     

    Display all Columns.png

    Login to your application as a developer when running. Modify the report in the way that your users need. Save the report, select "default report parameters.

  • need help to run the perl script invoking ESX ssh command power CLI

    I tried with the VCLI function call, but my perl script does not work... If I want to download my script for ESX (not ESxi) perl file, then run the command that will display the value in the directory/tmp, then pull the output file in/tmp local VC no matter what directory

    something like this article using plink.exe http://communities.VMware.com/message/1260100#1260100

    comm and I want to run ""iam_extract_global.pl perl - customer < customer name > - /tmp/xxxxxx.mef outfile " "


    so I need pul /tmp/xxxxx.mef to the local directory

    Try to place the string values in the first 3 lines in quotes.

    $User = "root".
    $Pswd = "xxxxx".
    $ESXname = "xxxxxxx".

  • Assist in the creation of HTML report of the PowerShell script

    Hello

    I'm looking for help taking a script work and have it create an HTML report.

    I found a script that LucD post by helping another poster to gather cluster information that I've tweaked to collect information that I'm looking for. The script works and will collect the information necessary for all 3 of our vCenter servers but I'm trying to get this information in a HTML report similar to what Alan was with vCheck5.

    Below is the output of the script and have attached the script, etat_hebdomadaire - VMwareClusterResourceSummary.ps1 and an example of what I'm trying to archive, weekly report - VMware Cluster Resource Summary.htm.

    Thanks for any help you can provide.

    vCenter Server Name: vCenter1
    Name of the data center: Data Center Office 1
    Name of the cluster: Office Group 1
    Number of guests: 8
    Number of data warehouses: 19
    Number of Virtual Machines: 625
    Total of processor (Ghz): 314.98
    Consumed current processor (Ghz): 143.69
    Courses available processor (Ghz): 171.29
    Minimum 7 days CPU usage (%): 13.90
    7 days of use of the processor maximum (%): 53.09
    7 days of CPU usage (%) average: 28.80
    Total memory (GB): 1023.97
    Current consumption memory (GB): 782.86
    Current available memory (GB): 241.12
    Minimum 7 days memory usage (%): 59.43
    Day 7 use of the maximum memory (%): 75,41
    7 days average memory usage (%): 66.38
    Total space (GB): 14395.25
    Current space (GB): 9948.26
    Current available space (GB): 4446.99

    Hello Arnold, creating such a report will involve a lot of HTML and CSS coding, which is not my strong btw

    The best example is of course script vCheck to Alan.

    In the attached script I borrowed / stole the code HTML and CSS of the script from Alan.

    The result is far from what you are considering, but I hope that it will give you at least a framework for more customization.

  • Need DS report

    Hi-

    Need a store of data with the following field report,

    DSName

    Type

    CapacityGB

    UsedSpaceGB

    FreeSpaceGB

    Data Center

    Netfs path

    -Number of host connected to the data store

    -Home details

    Your help is much appreciated, thanks in advance.

    Try this

    Get-Datastore | Select Name,Type,
        @{N="CapacityGB";E={"{0:f0}" -f ($_.CapacityMB/1KB)}},
        @{N="UsedSpaceGB";E={"{0:f0"} -f (($_.CapacityMB - $_.FreeSpaceMB)/1KB)}},
        @{N="FreeSpaceGB";E={"{0:f0}" -f ($_.FreeSpaceMB/1KB)}},
        @{N="Datacenter";E={$_.Datacenter.Name}},
        @{N="NFS path";E={$_.Extensiondata.Info.Nas.RemoteHost + ":" + $_.Extensiondata.Info.Nas.RemotePath}},
        @{N="Connected hosts";E={[string]::Join(',',($_.Extensiondata.Host | %{(Get-VIew $_.Key).Name}))}}
    

    I don't know what you mean by "the host details".

  • need help with first vsphere powercli script

    Greetings,

    Asked me to write a script to iterate over all the virtual machines in a given folder and to stop.  The name of the folder is blue (and is deep in several files).

    So far, I have:

    $svr = Connect-VIServer-Server svr-protocol https-user--password...

    $fldr = get-file-server $svr - blue name

    I don't know what to do next.  I would like to somehow get a picture of the VMS in the Blue folder, and then run:

    {foreach ($vm to $vmlist)

    Get - VM $vm | Stop-VMGuest

    }

    How can I do this?  Ideally, it should be wrapped in a function that I could pass the name of the file, because I really need to stop the virtual machines in the blue folder and a few others, too.

    Any help would be greatly appreciated.

    Thank you

    -John

    You can specify the file on the location of the Get-VM cmdlet parameter.

    Something like that

    foreach( $vm in (Get-Vm -Location (Get-Folder Blue)) {
        $vm | Shutdown-VMGuest
    }
    

    In PowerShell and PowerCLI, there is of course more then a way to get there.

    It should work as well

    Get-Folder Blue | Get-VM | %{
       Shutdown-VMGuest -VM $_
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need for reports and the analysis down server move to a different server

    I lost my original for RA and re-installed server components on another server, however, when I try to access the workspace site, I get the message * "did not find a server Hyperion Reporting and analysis 'former name of the server running" at the port of 6800. Please check your connection string server and confirm that the server is configured. *

    I re - run the Setup and configuration without result. Is there a configuration file that I have to update somewhere?

    This essentially means that the HSS register always points to the old name of the server for the RA_FRAMEWORK component. You will need to check through the report of registry if there several instance of the RA registered (one with the old server) framework and the other with the new server. If Yes, you can remove the old a registry through the epmsys_registry command line tool and reconfigure with the new server.

    If you need help with the same, if it please raise a SR with Oracle support and should be able to guide you through.

  • Report in the batchloader script

    Hello

    I'm writing a script that should return to 2 reports to an e-mail, based on the results (in a batch!).

    If successful: Validation report (lngReportID = 87)
    If failure: report of Process Monitor (lngReportID = 109)

    Although I get the first part of work, I'm stumbling on the second.

    the only difference between these 2 reports is that the latter requires Cat and period.

    could someone suggest a way to solve this problem?

    Here is the script I have right now for the second part...


    'Create report '.
    Set objReport = CreateObject ("upsWReportingDM.clsReportPublisher")
    objReport.mInitialize API

    "Set the parameters
    objReport.mParametersClear
    objReport.mParametersAddNew "CatKey", "12".
    objReport.mParametersAddNew 'Period', '2004-01-31.
    "The report
    objReport.mReportPublishToFile CLng (lngReportID), CStr (strPublishPath2), CLng (lngPublishType)

    the script fails on the last line.

    Thank you
    Ben

    I fixed it by creating a custom with a Where clause clause. works very well.

    Thank you

  • I need the report path multi

    Hello guys,.

    In my env 10g + DB 10g, we need to run oracle report server from a path or some of the other path.

    We have now that in oracle forms, we can do that by using files different env and map these files env to sections of formsweb.cfg. In this case, we can separate our test and prod case record forms

    So anyway is that we can separate the rdf files?

    The main problem is in regedit only, we can define the rdf (REPORTS_PATH) path. But when things come to have the same name of rdf in two files: test and prod, the first condition in the regedit value will be taken into account.

    Is there anyway we can choose the rdf if section formweb.cfg is test or prod?

    Thanks for the help
    Joe

    You can configure the paths file rdf/rep for different environments in the following file:

    *.conf fichier.*






    and in the url, add

    EnvId = Dev
    or
    EnvId = Test

    For more information:

    http://download-East.Oracle.com/docs/CD/B14099_10/bi.1012/b14048/pbr_conf.htm#sthref149

    I hope this helps.

  • Flash beginner needs help with Movie Clips/Action script

    HI -.

    I'm having a problem with my video clips playing simultaneously and cannot, for the life of me, know what I did wrong. I'm new to flash so I can I have created something wrong but this is what I have so far:

    11 layers, total: 1 layer with 10 buttons, each button with the following actionscript code:


    on (release) {}
    gotoAndPlay (85);
    }


    When the number changes with regard to keyframes, the next film is about.

    I have 10 films, total, but they are only video clips, mainly photo slideshow with audio, does everything in the library.

    The problem occurs when I click on the second or third button. Not only the movie I selected starts to play, but all previous clips are as well, he has completely blurred all the sounds. I don't know what Miss me in action script, as my Action layer has a stop command to this topic at each keyframe where there is a new clip to play.

    I tried to add a stopAllSounds command, but I'm afraid that does nothing because it is not an "audio file" in itself playing in the timeline panel.

    I'm at the end of my rope and really need help to understand this one. My project is hanging in the balance on this point, I wrote everything correctly and it works beautifully.

    Help, please!

    Thank you
    Caroline

    Start your sounds in frame 2 and place stopAllSounds() on each keyframe where begins a movieclip.

  • need a report on the status of delivery and response for the beneficiaries of the capaign

    Hi, I need to make a report on the State status of response to the beneficiaries of the capaign and discount but cannot find them in the area of subject campaign or the subject of the campaign, any idea response area?
    Thank you

    Just the history of campaign response is the report you're looking for. The fields that you may find useful are.

    The response status - this shows the message open, click, disengagement etc.
    State of delivery - Hard bounce, soft bounce etc.

    To get more details on the above results add the following.

    Type of answer-, this will show the URL TO which the user has clicked a click where you have several followed links in an e-mail. It will also show the reason for hard bounces. This is important because not all hard bounces will trigger the 'Never Email' flag to check. This happens for emails with the statutes of rebound in wrong address.
    Just moved address or unknown address.

  • Need to report on all database objects changed

    Is there a way to create a report that displays all the database objects that have changed in a given period of time?  We have FT SQL running, so I can see that they have been collected, I just can't understand how a report out of it.  When I create a report, I can't find anything on the follow-up to add changes.

    Details of change tracking can be exported, but right now a good 'report' is not available.  Because this data is stored in the repository of IP, not the Foglight repository, it is not available for custom reports, like the rest of the data capture Foglight.

    To export the information to track changes, follow the screenshot below.

    PI data more accessible via custom dashboards and reports is on the roadmap for the future incorporated into the product.  If I can get info on the possible period of time, I will update the post.

Maybe you are looking for