I need this indesign cs3 script to run under Indesign cs2

This is paragraph changes script which is run under indesign cs 3, I need this  script to run under my indesign cs 2, can anyone help me pls?. thank you  in advance
    Fixing paragraph style combinations
    Version: 1.1
    Script by Thomas Silkjær
    http://indesigning.net/
var the_document = app.documents.item(0);
// Create a list of paragraph styles
var list_of_paragraph_styles = the_document.paragraphStyles.everyItem().name;
// Make the dialog box for selecting the paragraph styles
var the_dialog = app.dialogs.add({name:"Fix paragraph style pairs"});
with(the_dialog.dialogColumns.add()){
    with(dialogRows.add()){
        staticTexts.add({staticLabel:"Find:"});
    with(borderPanels.add()){
        var find_first_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
        staticTexts.add({staticLabel:"followed by"});
        var find_second_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    with(dialogRows.add()){
        staticTexts.add({staticLabel:"Change:"});
    with(borderPanels.add()){
        var change_first_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
        staticTexts.add({staticLabel:"followed by"});
        var change_second_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
the_dialog.show();
// Define paragraph styles
var find_first_paragraph = the_document.paragraphStyles.item(find_first_paragraph.selectedIndex);
var find_second_paragraph = the_document.paragraphStyles.item(find_second_paragraph.selectedIndex);
var change_first_paragraph = the_document.paragraphStyles.item(change_first_paragraph.selectedIndex);
var change_second_paragraph = the_document.paragraphStyles.item(change_second_paragraph.selectedIndex);
// Set find grep preferences to find all paragraphs with the first selected paragraph style
app.findChangeGrepOptions.includeFootnotes = false;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;
app.findGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.appliedParagraphStyle = find_first_paragraph;
app.findGrepPreferences.findWhat = "^";
//Search the current story
var the_story = app.selection[0].parentStory;
var found_paragraphs = the_story.findGrep();
var change_first_list = [];
var change_second_list = [];
// Loop through the paragraphs and create a list of words and mark them as index words
myCounter = 0;
do {
    try {
        // Create an object reference to the found paragraph and the next
        var first_paragraph = found_paragraphs[myCounter].paragraphs.firstItem();
        var next_paragraph = first_paragraph.paragraphs[-1].insertionPoints[-1].paragraphs[0];
        // Check if the next paragraph is equal to the find_second_paragraph
        if(next_paragraph.appliedParagraphStyle == find_second_paragraph) {
                change_first_list.push(first_paragraph);
                change_second_list.push(next_paragraph);
    } catch(err) {}
    myCounter++;
} while (myCounter < found_paragraphs.length);
// Apply paragraph styles
myCounter = 0;
do {
    change_first_list[myCounter].appliedParagraphStyle = change_first_paragraph;
    change_second_list[myCounter].appliedParagraphStyle = change_second_paragraph;
    myCounter++;
} while (myCounter < change_first_list.length);
alert("Done fixing pairs!");

CS2 didn't support grep searches so you're going to have to do some serious reworking of the script. It's not a flick of the wrists.
Dave

Similar Messages

  • Need help setting up CS6 to run under a managed account on 10.8

    I'm desperately trying to get my computer labs set up for the new school and have been unable to get CS6 applications to run under a managed account on OS X 10.8.
    No matter how I try to allow access, I get an error relating to one of the following applications:
    - adobe_licutil
    - CS6Service Manager
    - dynamiclinkmanager
    I have a class that needs to use Illustrator on Wednesday and I can't figure out a way to allow the students to open the software. 
    Any help / advice / idea would be greatly appreciated.

    Well, as I said in a previous input (check the list on the forum again), it took second level Adobe support to say that CS6 would run with Mountain Lion on Managed accounts, but not on Snow Leopard.
    Possibly from lack of knowledge, I haven’t been able to use Workplace Manager from my Snow Leopard Server to manage the users, which is why I am using Parental Controls.
    The list of apps (sub-apps?) that you gave are the same ones I had as issues before I purged Parental Controls.
    If you have to use Parental Controls, you will only be able to get a few units ready by next Wednesday.
    P.S.  I got the same crap from Adobe chat.  It took raising a commotion to get Second Level support and that I would have to go to Mountain Lion.  And I didn’t need to go to 10.8.1 before it worked OK.

  • Installing Indesign CS2 on WIN7 64-Bit

    Hello,
    i tried to install InDesign CS2 Upgrade from the original CD-Rom on a new PC with WIN7 64-bit.
    To activate the installation I used the serial number from the version 1.0 IGP100R7012137-635 from the original register card from InDesign 1.0.
    This combination was used since any years on my old XP-PC and now I want to use it on the new system.
    What happened: InDesign CS2 said during the installation process: this serial no. IGP100R7012137-635 is not an InDesing serial no.
    I contacted Adobe via chat and they said, I need an InDesign CS2 version without need for activation, because Adobe killed the server for this function because of technical reasons.
    My question: from where can I get these InDesign CS2 version without need for activation?
    The serial number from my CS2 InDesign is: Deleted by moderator.
    Who can help or knows an easier solution?
    Thank you in advance for help!
    Renate.

    NEVER post a serial number on a public forum and be aware that CS2 is totally unsupported on Windows 7 and will be even worse on a 64 bit system. Heed the warning on that page:
    Adobe does not support CS2 applications, which were released more than seven years ago. Adobe strongly advises against running unsupported and outdated software.

  • Opening a Powerpoint in JSP and run under Linux

    Hi,
    I need to have a JSP page that provides a link to open a powerpoint file and this JSP is to be run under Linux. When I try to click on the link in Linux to open the powerpoint, it gives me a lot of junk characters. Can somebody please help mi, thanks a million!

    You have the mimetype for the HTTP response set to something other than what will make the browser start a powerpoint viewer and direct the content of the HTTP response to it.
    In your jsp use the setHeader(String key,String key) method to set the value of "Content-Type" to the mimetype for powerpoint.
    Of course the users must have browsers that are configured to launch a powerpoint viewer or plug-in. If you provide the correct mimetype and peoples browsers desn't have this, then they will get the "save to file" dialog box.

  • Running InDesign CS3 Script like a service

    Hi,
    Do anybody know if is there any option to run an InDesign CS3 Script as a service or daemon? I would like to execute some actions depending on some others and I need to have an script running all the time and checking for certain states.
    Thanks
    Aleix

    Hi,
    Can you give me information for both cases? The truth is that I need to monitor something related with an InDesign plug-in and maybe one or both methods could help me.
    Thanks
    Aleix

  • My Chart needs Java Scripts to run.  Where do I find this?

    This is it.  My program for health reasons is My Chart and says it needs Java Script to run.  Is this for another computer?

    Safari 8?
    Make sure that JavaScript is enabled.
    Safari > Preferences > Security > Web content:
    Enable JavaScript.

  • Sechs-Ecken-Objekt mit InDesign CS3-Script / JavaScript ???

    Hallo.
    Können Sie mir evtl.  helfen? Siehe Bild im Anhang.
    Wie kann ich dieses Sechs-Ecken-Objekt (Kontur 1 Pkt nach innen) mit Indesign-Script erstellen ? (InDesign CS3-Script / JavaScript)
    myPolySCHATTEN = myDocument.pages.item(0).polygons.add();   ???
    oder mit
    myPath = myDocument.paths.item(0).add();                                  ???
    Oder... ????
    Freundliche Grüße,
    AndreasRoe aus Germany

    Piece of cake.
    You can either create a default Rectangle or Polygon, and add and move the points around, or -- my preferred way -- add a GraphicLine and add the other points to that path, until you are nearly done. Then set the path type to "Closed", and you are really done.
    For starters, let's create a regular rectangle the hard way:
    var hoehe = 10;
    var breite = 20;
    newrect = app.activeDocument.graphicLines.add ();
    newrect.paths[0].pathPoints[0].anchor = [0,0];
    newrect.paths[0].pathPoints[1].anchor = [0, hoehe];
    newrect.paths[0].pathPoints.add({anchor:[breite,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,0]});
    newrect.paths[0].pathType = PathType.CLOSED_PATH;
    Run this and experiment with breite / höhe.
    If you look at your drawing, you can see you need an inset value for the chopped off corners. You can also see where to add the new points, when you start counting at top left. That results in this -- notice how breite / höhe are adjusted one by one:
    var hoehe = 50;
    var breite = 100;
    var inset = 4;
    newrect = app.activeDocument.graphicLines.add ();
    newrect.paths[0].pathPoints[0].anchor = [0,0];
    newrect.paths[0].pathPoints[1].anchor = [0, hoehe - inset];
    newrect.paths[0].pathPoints.add({anchor:[inset,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,hoehe]});
    newrect.paths[0].pathPoints.add({anchor:[breite,inset]});
    newrect.paths[0].pathPoints.add({anchor:[breite-inset,0]});
    newrect.paths[0].pathType = PathType.CLOSED_PATH;

  • In InDesign, my script timers are not activated while the script is running

    Hello I have a utilioty plugin in InDesign which is done in ActionScript. This script is launched from inside the plugin dialogbox and does a long export operation. I'm trying to have a feedback of progression in the dialog box, while doing the export operation in the script.
    The problem I have is : if I create a flash.utils Timer to refresh the display, it is not triggered while the script is running ! Only when the script gives back control to InDesign, the timer is triggered and refreshes the display. Therefore, my progressbar displays blind during work, and flashes to 100% at the end. Quite useless.
    Does anybody know a way to get this working, apart from cutting the export operation in a few sub-operations which would be chained via successive timer events ?

    I ask again though: are you really sure the system won't wake from sleep to run maintenance scripts? The time in all of the logs from Onyx, from Maintidget and from the command prompt all say that the scripts are running at 3am(ish) for the daily and weekly scripts, and 5am(ish) for the monthly script - all times that my system is in sleep mode.
    Well, that is the information from Apple - I am not about to stay up all night to check it . FWIW, if those scripts are missed, the computer will not implode - I usually prefer to shut mine down and in that case, the scripts have to be run manually. I do that about once a month (or when I remember to do it)  and have been doing that for many years without any ill effects. Mac OS does not need the maintenance other systems do.
    http://support.apple.com/kb/HT2319

  • Need existing custom script to run with a .csv or .txt file

    Hi, Scripting Guys!
    I am a very novice novice when it comes to PowerShell -- I'll state that up front. So apologies if the answer to this is really basic. I am trying to use a script written by someone else, where I can simply paste in the script, identify the user by any one
    of several attributes, and the magic happens (in this case, all mail attributes in the AD Object are cleared and then the email address is added back in, resetting that object to the point where IDSync can run).  For a single user at a time, it works
    perfectly.
    .\Reset-MailAccountforIDSync.ps1 -Identity "[email protected]"
    My problem is that I have a .csv file with 60 users I need to run this script on, and there's a possibility of other large batches in the future.  How can I convert this single user script into one that can work with a .csv or .txt file?
    Thanks, Stormicat/J.L.Newmark

    This will do the trick.
    $csv=Import-Csv users.csv
    foreach($user in $csv){
    .\Reset-MailAccountforIDSync.ps1 -Identity $user.Mail
    Of course you will have to learn enough to understand that so start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • Need script to run command line as administrator

    I need a VB Script to run a certain command line "wmic Product where name='XXX XXX XXX' call uninstall" in an elevated command prompt.
    This is to uninstall a hidden application.
    Is this possible? It must be I have see many others with suggestions and here it is. I tried a few I have seen but have not been able to get any to work.

    Bill,
    Thank you for the quick answer. I believe you are right in your assumption.
    I have been searching but found nothing so far.
    I need to be able to run this line "wmic
    Product where name='XXX XXX XXX' call uninstall" 
    in an elevated command prompt to uninstall the program.
    I was looking for a VB script or PowerShell to execute it remotely on non domain roaming PCs.
    Th3e command can be run remotely against stand-alone workstations but you must supply credentials.  Post in the platform forum for you version of Windows for help in using the WMIC utility.  WMIC /? will give you all of the command options fro
    remote execution.  UAC only affects local systems.  You cannot use WMIC to remote back to the local system. WMIC does not allow impersonation to the local system.
    Most installers will not automatically allow an unattended uninstall.  If there is any dialog at all the uninstall will fail and can hang.
    I recommend contacting the vendor of the application to get more information.
    In all cases you cannot bypass UAC as Bill has noted.  I am only noting that, sometimes, in a workgroup, you can use WMIC to remotely uninstall an application.
    ¯\_(ツ)_/¯

  • Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • I need to use my iMac to run some Windows software and was thinking of using Parallels Desktop 9 to help with this. Do you still have to partition your drive with Parallels and does this leave you open to viruses?

    I need to use my iMac to run some Windows software not available for Mac and was thinking of obtaining Parrallels Desktop 9 to help with this. If I use Parrallels do you still have to partitian your drive and does this leave you open to viruses?

    You do not have to partition your drive - Parallels creates a disk image which contains your Windows installation. You do have to exercise anti-virus measures in the Windows partition, although such malware cannot affect the Mac filesystem.
    Matt

  • HT1338 II need to use Java 6 to run a web application because it isnt compatible with java 7 update 7.  is this possible? need to use Java 6 to run a web application because it isnt compatible with java 7 update 7.  is this possible?

    II need to use Java 6 to run a web application because it isnt compatible with java 7 update 7.  is this possible?

    MadMAC0 posted at https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182 that:
    Apple has posted (10/22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • I need the XML elements appear in different paragraphs ...  Could do this with a script?

    I need the XML elements appear in different paragraphs ...
    Could do this with a script?
    Thanks...

    You can use this / Puedes usar esto
    insertTextAsContent("\n",XMLElementPosition.beforeElement);                  
    //  or             
    insertTextAsContent("\r", XMLElementPosition.afterElement);
    Necesitaria mas información,

  • Mac OS 10.6 on an Ipad? I have software that needs this - can it be run on an ipad?

    Mac OS 10.6 on an Ipad? I have software that needs this - can it be run on an ipad?
    Does Ipad come with this OS? Can it be installed?
    Any help would be very much appreciated.

    Thank you both.
    I guess I'll have to buy a MAC then. I was hoping to avoid that as I've always had PC.

Maybe you are looking for

  • How to detect the 'full path' of an open folder

    I often end up with open windows that display the contents of a folder but no path information. One example would be a folder opened from clicking on a 'hit' from a Spotlight search. I often don't know where those folders are in the folder hierarchy

  • Setting up SMS Text message iCal alert

    Hey all, I'm trying to set up iCal to send an sms text message alert to my phone as describe on one of apples tutorials.  Either my phone isn't working, or iCal is not sending the alert.  Does iCal have to be open for this to work? Does macmail?  Any

  • Run CF10 Developer in Standard Edition mode

    Is there a way to run ColdFusion 10 Developer in Standard mode for testing? My main concern is the Oracle drivers and if the standard edition will meet our needs, but would like to test it before purchasing what could be the incorrect license.

  • Hello, experts, i have an problem about interrupt()

    here is my code, i wanna test what the client requested/posted ,but it seems that i can't interreput other thread which in io blocked ,how can i solve this? thanks! package yestalk.playground; import java.io.InputStream; import java.io.InputStreamRea

  • Change standard MIR7 document header screen

    Hi there dear ABAP'ers. Could you please tell me is it possible to modify the standard MIR7 screen in document header section to add there another input field? User would enter that field a special period number. Then that infrmation would be saved t