Is it possible to run a script on a file of entire book?

Hello world.

Like the stuff of script. Juice I was wondering, is it possible to tell a script to run on a file integer indb?

Thank you

Mary

Hi marykulp,

If you have the script and you have a book, you can open each doc book and run the script.

By script, you can automate the docs of the opening book and call a script designed to do something with the active document by doScript().

Review the script doScriptWithDocsOfBooks.jsx.

This could be useful for you.

You must select a script and the script "doScriptWithDocsOfBooks.jsx" will open all documents in each book open in loops and run the selected script.

Do not forget that the selected script meets the active document at the same time.

Martin

Tags: InDesign

Similar Questions

  • possible to run a script (.jsx) in the elements?

    Here is my script: QTR StepWedge Tool.jsx

    and here is where I found this: www.quadtonerip.com/html/QTRdownload.html. Descend to the bottom and it is in this zip file: QTR-Stepwedge - Tool.zip you will need to unzip this file to get the script, I had a bit of bad paste in above, for some reason any.

    Here is what about the script and what it does:

    I want to run the script in Photoshop 9 or later. (I have 9 and 13).  Here's what this script... is for the linearization of a curve to print to a specific printer, paper and ink combination. A gray scale 20 step (by Kodak) and a print (using my printer, paper and ink), a grey scale 21 step are placed side by side and scanned on a scanner flat. I call analysis within the elements, so it is sitting in the workspace window. I select the grayscale scanning 20 step, the scanner, and a dialog will then appear. It asks to enter the values of gray, black and white ways as well as the number of steps. The script then stores this data and then I select and scan my impression of the 21 step file. The script compares the two and produced data that I then enter the final stage of the creation of curve of printer. That's what's supposed to happen, but after the first steps, elements fails.

    Then, briefly, the script makes two readings, one a grey scale of reference and the other a print from my computer. The script compares the two and produced the data needed for the creation of the curve.

    Thank you!

    Paul

    Too bad, people! Someone above the site elements found my mistake... I was using the wrong 21 step file for my second scan of the script.

    Thanks anyway! I'll probably come back one day.

    Best regards

    Paul

  • Run the Script to open files

    Hello

    I had once a script by this thread (http://forums.adobe.com/thread/962689)

    This script gets the files of a specific folder Indesign,

    now, I want to change this script, so it can be used for files already open Indesign.

    Here is the original script (with huge thanks to Muppet Mark)

    indesign #target

    function exportFolder() {}

    var i, InFolder, idFiles, doc, offSet, pdfPre, pdfFile;

    InFolder = Folder.selectDialog ("Where\'s ID files folder?');

    If (InFolder == null) {return ;}

    idFiles = inFolder.getFiles (' * .indd ');

    for (i = 0; i < idFiles.length; i ++) {}

    doc = app.open (idFiles [i]);

    offSet = doc.documentPreferences.documentBleedTopOffset;

    If (offset == 0) {pdfPre = app.pdfExportPresets.itemByName ("snit 3 mm LANNOO + slug')};

    If (offset == 3) {pdfPre = app.pdfExportPresets.itemByName ("snit 3 mm LANNOO + slug')};

    If (offset == 5) {pdfPre = app.pdfExportPresets.itemByName ("snit 5 mm LANNOO + slug')};

    If (offset == 10) {pdfPre = app.pdfExportPresets.itemByName ("snit 10 mm LANNOO + slug')};

    If (offset == 11) {pdfPre = app.pdfExportPresets.itemByName ("snit 11 mm LANNOO + slug')};

    If (offset == 12) {pdfPre = app.pdfExportPresets.itemByName ("snit 12 mm LANNOO + slug')};

    If (offset == 13) {pdfPre = app.pdfExportPresets.itemByName ("snit 13 mm LANNOO + slug')};

    If (offset == 14) {pdfPre = app.pdfExportPresets.itemByName ("snit 14 mm LANNOO + slug')};

    If (offset == 15) {pdfPre = app.pdfExportPresets.itemByName ("snit 15 mm LANNOO + slug')};

    If (offset == 16) {pdfPre = app.pdfExportPresets.itemByName ("snit 16 mm LANNOO + slug')};

    If (offset == 17) {pdfPre = app.pdfExportPresets.itemByName ("snit 17 mm LANNOO + slug')};

    If (offset == 18) {pdfPre = app.pdfExportPresets.itemByName ("snit 18 mm LANNOO + slug')};

    If (offset == 19) {pdfPre = app.pdfExportPresets.itemByName ("snit 19 mm LANNOO + slug')};

    If (offset == 20) {pdfPre = app.pdfExportPresets.itemByName ("snit 20 mm LANNOO + slug')};

    pdfFile leader = (doc.fullName.toString () replace (".indd", ".pdf"));

    doc.exportFile (ExportFormat.pdfType, pdfPre, pdfFile, false, ", false);

    doc. Close (SaveOptions.NO);

    };

    };

    exportFolder();

    Hi jocstone_me,

    I modified your JS code, please try the code below work.

    #target indesign
    function exportFolder() {
    var i, inFolder, idFiles, doc, offSet, pdfPre, pdfFile;
    inFolder = Folder.selectDialog( 'Where to save the InDesign files?');
    if ( inFolder == null ) { return };
    
    idFiles = app.documents.length;
    for ( i = 0; i < idFiles; i++ ) {
        doc = app.documents[i];
        doc = app.activeDocument;
        offSet = doc.documentPreferences.documentBleedTopOffset;
        if ( offSet == 0 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 3 mm snit + slug' ) };
        if ( offSet == 3 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 3 mm snit + slug' ) };
        if ( offSet == 5 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 5 mm snit + slug' ) };
        if ( offSet == 10 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 10 mm snit + slug' ) };
        if ( offSet == 11 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 11 mm snit + slug' ) };
        if ( offSet == 12 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 12 mm snit + slug' ) };
        if ( offSet == 13 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 13 mm snit + slug' ) };
        if ( offSet == 14 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 14 mm snit + slug' ) };
        if ( offSet == 15 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 15 mm snit + slug' ) };
        if ( offSet == 16 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 16 mm snit + slug' ) };
        if ( offSet == 17) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 17 mm snit + slug' ) };
        if ( offSet == 18 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 18 mm snit + slug' ) };
        if ( offSet == 19 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 19 mm snit + slug' ) };
        if ( offSet == 20 ) { pdfPre = app.pdfExportPresets.itemByName( 'LANNOO 20 mm snit + slug' ) };
        pdfFile = File(inFolder+"/"+doc.name.toString().replace( '.indd', '.pdf' ) );
        doc.exportFile( ExportFormat.pdfType, pdfFile, false, pdfPre, '', false );
        doc.close( SaveOptions.NO );
        };
    };
    exportFolder();
    

    THX,

    csm_phil

  • can I run a script on multiple files in a folder

    I have a folder where I have 60 files. Each file takes about 45 to 1 hour to go through the script and the script is the same for all files. So I thought to create a script that can run during the night and the next morning I come and distribute all my files. This is a simple script that looks for specific words and highlights them.

    http://livedocs.Adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/HTML/w whelp.htm? context = Acrobat9_HTMLHelp & file = BatchSeq_BatchSequences.96.1.html

    http://acrobatusers.com/tutorials/2008/06/a9video_using_batch_processing_for_tasks/

    http://acrobatusers.com/tutorials/2006/batch_process

  • Batch file to open all files in a folder, one by one and run a script.

    I'm looking for a batch file, to run a script on each file file in the folder and open all files in a folder in the path defined and close the file. How is it possible

    Anthony,

    I would have you post here for assistance more.

    http://social.technet.Microsoft.com/forums/en-us/home?category=windowsxpitpro

    We know if that helps.

  • Running a script to simulate a mouse click on a point

    Hi all

    I am facing some problems while trying to use a plugin red giant (Trapcode Sound Keys), via a script running on a server.

    That the plug-in has an "Apply" button that generates keyframes based on the song of the imported file. However, I can't seem to be able to trigger this button via a handful or whatever it is, giant red support told me that it was not any information about it as their plug-in was not really intended for this use.

    So the question became more general, is it possible to run a script on the AE to simulate a mouse click on the button?

    Or someone has an idea in a different way? I'm really open to any suggestion, even through the SDK.

    Thank you all for your time,

    Kind regards

    Juan

    Mouse events can be performed on ScriptUI elements ExtendScript scripts, not AE plugins. P. 153 of the Javascript Tools Guide CC.pdf

    The only way to trigger the button apply to this plugin is to click top manually through user interaction.

  • Run the script in a loop inside sqlplus

    Hi all

    Is it possible to run a script that we can run windows inside sqlplus command prompt to run in a loop?

    for example, in unix I can do something like

    I'm in 1.10
    do
    LS - ltr
    ps - ef | grep pmon
    sleep 5
    fact

    so can I do something similar inside sqlplus?

    lets say have a script called @active_session

    and now I'm inside sqlplus, but can't, that I run in a loop? as sleep 5 sec and run @active_session and then sleep 5 sec and run @active_session?

    I hope that I asked the question clearly...

    Hello

    user8363520 wrote:
    Hi all

    Is it possible to run a script that we can run windows inside sqlplus command prompt to run in a loop?

    for example, in unix I can do something like

    I'm in 1.10
    do
    LS - ltr
    ps - ef | grep pmon
    sleep 5
    fact

    so can I do something similar inside sqlplus?

    Your best bet would be to do at the level of the BONE, in the way you know.
    For example:

    for i in 1..10
    do
    sqlplus  username/password@database @active_session
    sleep 5
    done
    

    I'm not sure of the unix syntax.
    Make sure that active_session.sql ends with a QUIT or EXIT statement.

    lets say have a script called @active_session

    and now I'm inside sqlplus, but can't, that I run in a loop? as sleep 5 sec and run @active_session and then sleep 5 sec and run @active_session?

    SQL * wan't more designed for this sort of thing. In particular, there is no reall loop mechanism built into SQL * more. You can make loops in SQL * Plus, but it's not enough. See {message identifier: = 4367027}

    According to what is in your script, you can do all the work in PL/SQL, which has loops.

  • [CS5] Run a script on the open document

    Is it possible to run a script automatically whenever a document is open?

    Application has the "beforeOpen" event listener, which won't work, the document is not opened and Document has the "afterOpen" event listener, but which cannot be added until after the document is already open, so I'm not sure was what it serves.

    Any help would be appreciated.

    /Dan

    .. .and document has the "afterOpen" event listener, but will not be added until after the document is already open, so I'm not sure what it serves.

    You can do it-here is an example:

    #targetengine "MyEngine"
    
    var myEventListener = app.eventListeners.add("afterOpen", myDocOpen, false);
    
    function myDocOpen(myEvent)
    {
         var myDoc = app.documents[0];
        myDoc.pages.add(LocationOptions.AT_END);
    }
    

    It is important to use app.documents [0] instead of app.activeDocument when you use the afterOpen event.

    This simple script adds a new page whenever a document is open. Written and tested on CS3, windows.

    Kasyan

    P.S. I just tested on CS5 - it works here as well, but it adds two pages instead of one for a reason any.

  • Is it possible to run files apk on my phone SE

    Is it possible to run on my SE apk files?  Thank you

    # An apk file is a package Android file, and which would not be in the iOS. You couldn't install Android on an iOS device, as it would not be in the App Store, which is the only place where ever you get things to install on the iPhone.

  • Run on Windows prompt batch file

    Searching the forum and the docs that I found a couple of old with examples of using vmrun son, but have not been able to make it work.  Can any who share a contemporary example or point me to more information?

    Thank you...

    When I run a Script command (.cmd file) or a Batch (.bat) file in a Windows OS x prompt in a Terminal, I use the following syntax:

    vmrun -T fusion -gu <"user"> -gp <"pass"> runProgramInGuest <"path to .vmx file"> -noWait <"path to .cmd file">
    
  • Is it possible to run the command script with user account administrator rights?

    Is it possible to run the command script with administrator user account rights means please tell me how to...

    I need to run it in windows 7 professional service pack 1.

    There are a few myths that won't go away, for example

    • You can perform administrative tasks when you are working from a command prompt.
    • A script (batch file, VBScript, PowerShell) gives you administrative rights.

    There is no substance to a myth. Your account has administrator privileges, or it does not. There is no backdoor.

  • Is it possible to run the Thinapp Scripts inside virtual machine

    I wrote a thinApp script to dynamically create registry keys when the package starts and it seems to work very well. However, it is write key to registry for the host system and not the virtual environment. Is it possible to make the script run in the virtual environment, or alternatively, write to the virtual registry explicitly in a script?

    Folling is the code that I use to write the keys.

    Void SetStringKey_HKLM (strKeyPath, KeyName, strValue)

    c

    HEY_LOOCAL_MACHINE = & H80000002 onst

    strComputr = '. '.  OReg value = GetOect (twinmgmts:s:mpersonanaonLevel = impersonatate}!
    ' & strComput & '\root\d\default:StdRegPro) ".

    oReg

    for example. SetSngVague HKEY_LOCAL_AL_MACHINE, strKeyPateyName, strsalue

    End Su

    Void

    JohnFx, you'll need to edit your registry hive files text ThinApp project (one or both depending on the registry keys, you change your script) to add key of parent of parameters with ISOLATION_WRITECOPY or ISOLATION_FULL to the header of the line of registry keys.

    For example, if I write mods to the HKLM\SOFTWARE\VMWARE key with a script, and I want these values to be stored in the sandbox of my package ThinApp vs the native of the system registry, I need to change the HKEY_LOCAL_MACHINE. TXT file and make sure that the parent (HKEY_LOCAL_MACHINE\SOFTWARE\VMWARE) key is present in the file registry hive with a value of ISOLATION_WRITECOPY (in which case I would like to see what is on the native as well as what I write to the virtual registry hive) or ISOLATION_FULL (if I don't want my application to make the virtual registry settings and do not see what is in the system) Native).

    Alternatively, you can also try the following in your PACKAGE. INI:

    Read the docs for more information on the above online (see link below).

    -Dean F.

    http://pubs.VMware.com/thinapp4/help

  • How to run a script php on external server

    Hello!

    Here's my problem: I want to run a script php on a server by calling a simple url. Here is an example of a possible url: http://servername/dir/scriptname.php?var1=a&var2=2.

    The return value is a html code.

    I use CVI 2012 AND 3.5!

    Hello!

    Thank you very much! It's the way I'll do it!

    But I have to call a different get command. Here's my way: Fmt (tlsend, "%s %s", "GET" ', http://servername/dir/scriptname.php?var1=a&var2=2 ');

    The next problem is the response of the InetTelnetRead. She returns with-4 "system socket error". But the result of the php-script is tlread.

    So my problem is almost solved!

  • Run the script automatically when Windows goes into hibernation or wakes up?

    Hello

    I use the group policy feature in Windows XP to run scripts automatically when you open a session or logoff.

    But it is also possible to make a script run automatically, whenever a Windows-xp machine is about to Hibernate? And also when it wakes up from hibernation?

    The clues how to proceed?

    A funny hibernation is that if you put into hibernation and power then upwards and don't 'do' nothing - like press a key or move the mouse (just to sit and watch), in 300 seconds (5 minutes), XP will go back into Hibernation automatically.  Try it!

    XP does because after it comes out of Hibernation, if XP detects that there is nothing to 'do', he thinks he might be from Hibernation by accident and goes back to "sleep" and said "why you wake me up?

    That's why when people hibernate during the night and their machine turn on the morning he wakes up, they make their coffee or breakfast and return later to see that they have the power of their machine again.  If they think something is wrong, but things are working as expected.

    One way to fix this, is to use a third-party tool that uses the command line to simulate a mouse movement.   It is enough to prevent the rehibernating while you are on XP.

    To simulate a movement of the mouse as soon as your system is equipped with Hibernation, you will need to download the nircmd.exe file.

    There are many other utilities of vouchers on NirSoft main page:
    http://www.NirSoft.NET/

    To simulate the movement of the mouse, download the file nircmd.exe here

    http://www.NirSoft.NET/utils/nircmd2.html

    Put the nircmd.exe file in a folder which is somewhere in your path (c:\windows\system32, etc.) or consult the path in your command file. I put the nircmd.exe file in my c:\tools folder where I keep other things.

    If you do not have Hibernate enabled in your Power Options, tab hibernation, it will put your system on Stand-By instead of Hibernation.

    Create a batch file (I called mine hibernate.bat and put the nircmd.exe in my c:\tools folder) and put this line in your hibernate.bat file:

    off @echo
    Powrprof.dll, SetSuspendState c:\WINDOWS\system32\rundll32.exe Hibernate
    c:\tools\nircmd.exe 10 10 movecursor
    movecursor-10 c:\tools\nircmd.exe - 10

    Save the new file hibernate.bat on your desktop or somewhere, you can retain and double-click it to run the batch file.  When you are sure that it works very well, and then drag the new desktop icon to your quick launch area (to the right of the button start), change the icon, rename, etc, so it looks a bit better and then you can click on new quick launch when icon to call the file hibernate.bat.  Now just remember to use the hibernate.bat file (which could be on your desktop with a nice icon) instead of the menu to turn off the computer.

    The first command will put the system into hibernation, and then when XP comes from hibernation (even days later), run the following commands in the batch file.  These last two commands will simulate a slight mouse movement and who will deceive XP into thinking there is a reason to get out of hibernation and it will not go back to sleep.  Then when you come back from your coffee, your system is always waiting for you.

    If your case, your hibernate.bat might look something like:

    off @echo
    order 1 run before hibernation
    2 run before hibernation command
    order 3 to run before hibernation

    Powrprof.dll, SetSuspendState c:\WINDOWS\system32\rundll32.exe Hibernate

    order 4 to run when coming out of hibernation
    command 5 to run when coming out of hibernation
    order 6 to run when coming out of hibernation

  • All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    Script launched in until OS user 'A' on the 'A' server which launches sqlplus, then connects to a remote database through a service of tnsnames.ora as another user of the database and the results of this script are spoulées on the server "A".

    The file queued on the old server is written with rw-rw-r: read write user, group read the writing, reading and possession header that is the user of the OS. The file queued on the new server is written to rw-r-r user: reading writing, reading group, public reading and ownership oracle: dba.

    "" The user then has no privileges to modify the file and continue the process of transmitting the file, editing and deleting the file for the next set of commands. This allows us to keep the possibility to migrate to the new server we are unable to process orders.

    $ORACLE_HOME/bin/sqlplus - s user/password@prd1 @./script/CustomScript/R12_OM_UFPC-oracle.sql

    Background: old server running 4.8, Oracle 10.2.0.4 OEL

    New server running OEL 6.5, Oracle 11.2.0.4

    Tested so far:

    File and update umask to 0002 instead of 0022 is now generated as rw-r-r. However, the property is still oracle: dba.

    Update of ownershipt of $ORACLE_HOME/bin/oracle.exe of oracle: oracle (edi added the user to the oracle group) and chmod 6751 oracle.exe. This created several problems where crucial scripts, that is to say of sqlplus failed to run.

    Added! chmod 755 output.file.name - OS user 'A' is not allowed to change to mod.

    Added! command cp MV output file and that generated the file as a user of the operating system: oracle. It is a potential work around in case of emergency, but the developer would have to rewrite the countless scripts.

    Any ideas?

    I have reproduced the behavior of the old server and am able to spool a file via sqlplus under OS user. No changes have been made on the remote database server. All the changes have been on the new server hosting a small 11.2.0.4 database on a server running OEL 6.5 32 - bit OS.

    (1) removed the sticky bit $ORACLE_HOME/bin/sqlplus using chmod u-s, g-s, o - s suggestion of Billy ~ Verreynne

    (2) modified the main group for the 'oracle' user match the user operating system applications, while maintaining membership in the groups 'oracle' and 'dba '.

    -We are dealing with here EDI processes, so the Group was called edi.

    (3) modified property of the files tnsnames.ora and listener.ora for oracle: edi

    (4) restart the receiver

    (5) disconnect / reconnect

    Script runs as expected, the output file contains the correct ownership and permissions.

    Thank you all for taking a look and offering options.

    -Josh

Maybe you are looking for