Path of the Find-Change Queries/Grep folder in ID CC 2014

Hi,
Is this var correct to localize the path of the Find-Change Queries/Grep folder in ID CC 2014?
var query_folder = app.scriptPreferences.scriptsFolder.parent.parent + "/Find-Change Queries/Grep/";
Thanks in advance! 

Hello,
Alert ( app.scriptPreferences.scriptsFolder.parent.parent );
Mac ID 6, give me this.
I will have a look at CC later.
P

Similar Messages

  • Trying to find the Find/Change queries

    Okay I thought I knew where these were.  I've looked in
    C:\Users\phyllis\AppData\Local\Adobe\InDesign\Version 6.0\en_US\Caches
    There are files there called FindChangeData and FindChangeDataTmp, but writing them into the folder for Version 7.5 doesn't do anything.
    So I think I'm looking in the wrong place.  I'm trying to move all the find/change queries into InDesign CS 5.5.  Can someone point me to them?
    Thanks, Phyllis

    try C:\Users\<USER>\AppData\Roaming\Adobe\InDesign\<Version #>\<Language>\

  • Script for running multiple find/change queries

    Working on a large ID book document (*.indb), I have saved several dozens of Find/Change Queries (named "col01", "col02" etc.) that I run on "All documents". For a particular reason I have to run these queries several times a day.
    So I was wondering whether there is, or whether anybody out there would write, a script that runs these queries one after the other. Given the size of the book, it might be necessary to provide for the script to pause after each query is run (before it goes on with the next), but I am just guessing.
    Any help is much appreciated!

    There are a couple of others:
    http://forums.adobe.com/message/5173943#5173943
    this is more at code level rather than a GUI, but the actual queries are made using the Find/Change dialog box.
    Also
    http://www.kahrel.plus.com/indesign/grep_query_manager.html
    This is good too, but only does GREP searches (no text, glyph or object find/replaces) that were written by the user - does not use the ones installed with InDesign. Does allow changes by selection, story, document or folder.
    Did try the Doquerylist suggested by Kasyan. This allows GREP/text changes by the user/installed with InDesign, but only applies to a selection or text-thread.
    Always good to have more than one way of accomplishing a task though!

  • Keep track of styles in the find/change fields

    Please at least make this an option.
    I need the ability for InDesign to keep the track of paragraph,character & object styles that have changed names. Because when they do change names, I have to go through a mega list of GREP queries and "re-link" them in the change field.

    If you really want, you can change it manually. Saved Queries can be found in your User data folder (which depends on your OS, your InDesign version, and your installation language -- CS4, Mac, is in Library/Preferences/Adobe InDesign/Version 6.0/en_US/Find-Change Queries).
    This small sample is from a saved query that finds a character style "Page Number" and changes to a paragraph style "Body Text Indent":
    <FindFormatSettings>
    <TextAttribute type="cstyle" value="Page Number">
    </TextAttribute>
    </FindFormatSettings>
    <ReplaceFormatSettings>
    <TextAttribute type="pstyle" value="Body Text Indent">
    </TextAttribute>
    -- I changed the 'pstyle/value' string to another paragraph style name, using TextEdit, and when I retrieved the query in InDesign it was there.

  • What file do I save to keep find/change queries when reinstalling?

    I'm needing to uninstall and reinstall CS6. I have a large number in find/change queries that would be exceedingly difficult to redefine. How do I rescue these along with other features like Workspaces or Actions in PhotoShop?

    Your saved find/change queries are in a folder in your user library or user profile (depending on your OS). You can find the path to where they are stored in the information provided for the InDesign Defaults file at Replace Your Preferences. The saved queries folder is in the same parent folder as the InDesign Defaults file. Note that this is a HIDDEN folder on all recent operating systems.
    There should also be a Workspaces folder in the same location for ID. Similar folders should be found for the other programs under their respective application folders in the same user library/profile location.

  • How to change multi Find-Change Queries into a scripting

    I was wondering if possible transcribe multi Find-Change Queries into a scripting?
    If it is possible, can someone tell me how?

    1) Buy something and charge the rest to a credit card.
    2) Ask Apple to keep the balance.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • How to use character styles in the Find/Change JavaScripts?

    First, good luck to Ole. He's been so helpful (and such a good writer, too). All the best!
    My Find/Change JavaScripts are running into trouble at line 159 of the ExtendScript Toolkit. The script is searching for a particular font, to which it should then apply a character style. I'm using the format I see in Adobe's "FindChangeList" sample text, but the script is still hitting a wall. What am I doing wrong? I'd like to have a working method for searching, not only for fonts, but also for finding a particular character or paragraph style and then applying a new style.
    Simple stuff, but I'm roadblocked.
    Here is the script so far:
    //This script applies the DFKai character style to the Arial Unicode font.
    text {findWhat:"", appliedFont:"Arial Unicode MS", fontStyle:"Regular"} {appliedCharacterStyle:"DFKai"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find Unicode font; change to DFKai character style.
    Thanks for your help!
    Gary Niemeier

    You are absolutely correct. I don't know how those spaces got there! I copied the text from the "FindChangeList.txt" document, but somewhere along the way, a software program "helpfully" added the spaces. (Rest assured, it wasn't copied from AppleScript. I stick with JavaScript.) Anyway, the script now runs like a charm.
    My thanks to you! Another "newbie" mistake easily spotted, eh?
    One thing, though, if Adobe is reading this: please flesh out the "FindChangeList.txt" file for those who are not programmers/scripters. I'm just a normal InDesign user, and I really need examples of basic syntax in order to use the "Find/Change" script correctly. I'm referring to the syntax involved with finding or changing text with a certain character or paragraph style. I often search for styles, and those properties should be provided in the help file. A couple of samples are all that's needed. (I did read through the JavaScript reference guide provided by Adobe, and even in the "Find/Change" section, it did not provide this information!). Furthermore, I often search text for a specific font. Why isn't this syntax included as well? It would easy to do and would save users a lot of fumbling around.
    Thanks again, all the best.

  • What changed in the Find/Change Object behavior?

    In Indesign CS4 all graphics in a document could be centered through the Find/Change feature (Object tab) by leaving the Find field blank and setting the Change field to "Fitting Reference Point: Center" (clicking the center button). This no longer works in CS5. The feedback is of x number of objects changed, but none have.
    It was handy, now it's gone.

    No objects locked.
    Actually, it seems stranger.
    (BTW- The CS4 version is running on a Power Mac G5, pre-intel, Tiger.
    The CS5 Version is on a  Power Mac G5, Intel, Snow Leopard.)
    If a single graphic is dragged or placed in the document, the Find/Change, as described, does nothing. When a second one is added, it works as expected, unless they are both jpegs or PSDs. In that case, they sometimes, disappear completly and are shown to be (in the links panel) on the pasteboard but not visible there. But, get this, add a pdf or AI file to the doc, and run it again and it works fine again. The revese order also applies. If I delete all but one graphic it stops working again.
    In all cases the fitting commands work fine.
    It seems as if there is some confusion in how the document object model is being addressed and filetype is in the mix.

  • The find/change box keeps popping up off the screen. Rebooted and screen is fine, box is not

    the find/change box keeps popping up off the screen. Rebooted and screen is fine, box is not

    Is it visible at all? If so, drag it to a new location, hit the "Done" button to close, close your document and launch InDesign again. By the way, are you on OSX or Windows? I'm on OSX and that works for me. My InDesign version is CS6. Hope this helps.
    Cheers!
    -Mikey

  • Did the Finder change in 10.6?

    When I had 10.5.8, I had the Finder set to show everything under 'Places' in Column view and everything under 'Search For' as List view.
    Now, under 10.6, I simply cannot get it to behave the same way. Setting 'Search For' view to List puts everything under 'Places' in List view too. Setting 'the 'Places' categories to column view puts everything under 'Search For' into Icon view.
    What gives? Is it not possible to have the Finder view preferences as I had it in 10.5? I've already tried repairing permissions and have trashed the Finder prefs once already.

    Nobody cares to answer this question, I guess.

  • Bug: Setting "Don't include footnotes" via scripting doesn't change the find/change dialog

    Hi,
    Small bug, but can be confusing. Whether you write this line:
    app.findChangeTextOptions.includeFootnotes = false;
    or this line:
    app.findChangeTextOptions.includeFootnotes = true;
    ... you won't see any different in the little footnotes button in the
    find/replace dialog, even though the setting does work via scripting.
    More testing is needed to see what can be done to get the UI in sync
    with the setting...
    Ariel

    The dialog isn't updated while it's displayed. But hiding the dialog and displaying it again (twice Ctrl+F) shows that the script did do its thing.
    Peter

  • Finished script: Use grep find/change to fill in a supplied table of contents

    This script is now complete, and has been the subject of most of my previous posts. Just in case anyone wanted to know what the finished script ended as, here it is.
    Thanks so much to all. A lot of really helpful folks on this board are very responsible for the success of this task. This script is to be one of hopefully many in the creation of our records. But it's a huge leap forward. Thanks again to everyone that helped.
    Cheers,
    ~Nate
    Task:
    Automatically find town names in listings, and fill in table of contents template on page 2 accordingly.
    Example of page 2 toc, initially:
    Example of a page of content. The town names are what need to be referenced on the TOC:
    Example of page 2 toc once script is finished:
    Because of the need to include the transaction dates on the TOC (comes as a provided, tagged-text file), a simple Indesign-generated TOC can't be used alone.
    This script uses an Indesign-generated TOC that's on a master page called "T-tocGen" ... It then uses grep search and replaces to grab the needed information, and insert it into the page 2 TOC.
    The script will update a generated TOC and then search for an instance of a page number, and town name. The generated toc lists all included towns in the following format:
    (line start)## tab townName(line end)
    In Grep, this would be (please note, extra \ for \d and \t ... javascript needs that for some reason):
    ^\\d+\\t(.*)$
    After the script gets the info it needs from a found instance of the above, it replaces that line with "---", to prevent that line from being picked up once again.
    The script with then place the needed page number in it's rightful place on page 2, replacing the XX.
    A while loop is used to repeat the above process until there are no longer any instances of "^\\d+\\t(.*)$" present.
    Not every town runs every issue, so once the script is done, it removes all remaining instance of "XX" on the page 2 TOC.
    FINAL CODE:
    TOC replace
    This script will use grep find/change methods to apply page numbers in
    tocGen to the XX's on page2TOC.
    // define the text frame of generated TOC
        var tocGenFrame  = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
    // udpate generated TOC ... store contents in tocGenStuff
        var tocGenStuff = updateTOCGen();
    // set variable for while loop
    var okGo = "1";
    // while okGo isn't 0
    while(okGo.length!=0)
    // get town info from tocGen
    getCurrentTown();
    // replace XX's with tocGen info
    replaceTown();
    // grep find ... any remaining towns with page numbers in tocGen?
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "^\\d+\\t(.*)$";
    // set current value of okGo ... with any instances of above grep find in tocGen
    okGo = tocGenFrame.findGrep();   
    // grep find/change all leftover XXs in page2TOC
    app.findGrepPreferences = app.changeGrepPreferences = null;       
    app.findGrepPreferences.findWhat = "^XX\\t";
    app.changeGrepPreferences.changeTo = "\\t";
    app.activeDocument.changeGrep();  
    // clear grep prefs
    app.findGrepPreferences = app.changeGrepPreferences = null;
    //  functions                  //
    function getCurrentTown()
    // grep options   
    app.findChangeGrepOptions.includeLockedLayersForFind = true;
    app.findChangeGrepOptions.includeLockedStoriesForFind = true;
    app.findChangeGrepOptions.includeHiddenLayers = true;
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findChangeGrepOptions.includeFootnotes = true;
    // grep find:  startLine anyDigits tab anyCharacters endLine
          app.findGrepPreferences = app.changeGrepPreferences = null;
          app.findGrepPreferences.findWhat = "^\\d+\\t(.*)$";
    // get grep find results      
    currentGen = tocGenFrame.findGrep();  
    // store grep results content into currentLine
    currentLine = currentGen[0].contents;
    // match to get array of grep found items
    currentMatch = currentGen[0].contents.match("^\\d+\\t(.*)$");
    // second found item is town name, store as currentTown
    currentTown = currentMatch[1];
    // change current line to --- now that data has been grabbed
    // this is because loop will continue as long as the above grep find yields a result
           app.findGrepPreferences.findWhat = "^\\d+\\t"+currentTown+"$";
                  app.changeGrepPreferences.changeTo = "---";
                tocGenFrame.changeGrep(); 
    function replaceTown()
    app.findChangeGrepOptions.includeLockedLayersForFind = true;
    app.findChangeGrepOptions.includeLockedStoriesForFind = true;
    app.findChangeGrepOptions.includeHiddenLayers = true;
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findChangeGrepOptions.includeFootnotes = true;
    // find: XX currentTown .... replace with: currentLine
        app.findGrepPreferences = app.changeGrepPreferences = null;
        app.findGrepPreferences.findWhat = "^XX\\t"+currentTown+" \\(";
        app.changeGrepPreferences.changeTo = currentLine+" \(";
    app.activeDocument.changeGrep();   
    function updateTOCGen()
    //set vars ... toc text frame, toc master pag
        var tocGen  = document.masterSpreads.item("T-tocGen").pages.item(0).textFrames.item(0);
        var tocGenPage  = document.masterSpreads.item("T-tocGen").pages.item(0);
    //SELECT the text frame generatedTOC on the master TOC
        tocGen.select();
    //Update Table of Contents by script menu action:
        app.scriptMenuActions.itemByID(71442).invoke();
    //Deselect selection of text frame holding your TOC:
        app.select(null);
    //store contents of toc text frame in variable
        var tocGenText = tocGen.contents;
    //return contents of tocGen
        return tocGenText;

    Thanks for the reply.
    You are correct but the problem is there are three rows, One row is 100% black, the second is 60% black and the third is 40% black. I want to change the black to blue, the 60% black to an orange and the 40% black to a light shaded blue. In the find/change option you can select the tint you want to find and replace but yea.. does work on table cells.. oddly enough.

  • GREP find/change problem

    Hi, am trying to execute InDesign's default find/change AppleScript script to fix many formatting issues in a large document. One of them is occurences of a two-digit dollar figure followed by a comma (eg. "$10,") that needs to be changed to have no comma.
    Using GREP I can pick it up by finding "\$\d\d," but when I replace it with "\$\d\d" I get the actual string "\$\d\d". IE. "$10," becomes "\$\d\d" rather than "$10". Am I misundersting how the 'change' part of GREP works? Can any one advise?
    FYI the line in the find/change support .txt doc is:
    grep
    {find what:"\\$\\d\\d,"}
    {change to:"\\$\\d\\d"}
    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}
    Remove commas after prices.
    ...which includes extra backslashes to escape the backslashes that are part of the GREP expression.
    Any help much appreciated!
    Thanks.

    No, unfortunately lookbehinds don't work with variable-length strings. That's the case with all GREP implemantations, not just InDesign's. You can sort of get around it by using or-constructs, but they soon become unmanageable. Here's an example (split and indented just for clarity, you would need to write all this on one line):
         (?<=\$\d)
         |
         (?<=\$\d\d)
         |
         (?<=\$\d\d\d)
    This one says "if a comma is preceded by $ and a digit OR by $ and two digits OR by $ and three digits, then . . ." As you understand, if you need to allow up to six or seven digits, possibly thousand separators too, then lookbehinds become unpracticable.
    >I'm really struggling to get to grips with how GREP statements work.
    Try this: http://oreilly.com/catalog/9780596156008/
    Peter

  • Find/Change - GREP vs. TEXT

    Today, thanks to this amazing forum, I discovered that I had been using "Find/Change" under TEXT, instead of GREP.
    Using "Find/Change" as GREP for finding & replacing seems to be MUCH MORE POWERFUL than "TEXT."
    What are the disadvantages of using "Find/Change" GREP ?  I notice it cannot do "case sensitive" — any other cons?

    GREP searches can be either case insensitive on or off
    case insensitive on:  (?i)
    Case insensitive off  (?-i)
    Example:
    Search for either "case" or "Case"    (?i)case    found on 1st, 2nd and 3rd line
    Search for just "Case"     (?-i)Case    found on 3rd line only

  • With GREP, is there a way to assign a character find/change to a p style?

    I'm looking for more ways to automate text styling in the magazine I produce. In InDesign, I can assign find/replace command strings in the Find/Change GREP window, but I've found no online source that tells me how to find/replace characters using GREP WITHIN a p style. It seems as if the latter GREP capability is limited to changing character styles and can't search and replace actual characters.
    Example: I have a list of recipe ingredients. I want to replace the quantity (one to three digits) at the beginning of each ingredient with a tab-digit(s)-tab combination. In Find/Change, I can enter "\d+\s" and replace with "\t$0\t" but I don't see a way to assign that capability to a p style. I want this find/change to occur automatically any time copy is added to text tagged with the Recipe Ingredients paragraph style, so I don't have to keep running a Find/Change each time we edit the page. One power user has told me it's not possible. Any insight or alternative solution would be much appreciated.

    Your power source has it right, GREP Styles can only apply character styles to the text it finds.
    And there is no easy way to have text replaced automatically -- you would still need to run a script, or press a hotkey or something.

Maybe you are looking for

  • Concat expression Collection T

    Hi all, I have a mapping in my entity, one to many mapping, example relationship "1 question -> many answers" so, in Question class, i can access a collection of "Answers"; But in my criteria query, i need to concat all "Answers' summary" for sorting

  • Projector not recognized in Mac OSX 10.6.7

    Hi, I am using the new Mac OS X 10.6.7 Intel i7 (quad core); I noticed that the Director projector that I created using Director MX 2004 on an earlier computer, is not being recognized on this new computer (when I copied the folder from the External

  • Wrong images on videos

    I have numerous videos (both purchased from iTunes and created myself) that appear with different images (icons) when I open "Videos". For example, I have a season of "Scooby Doo" that shows the album art from "Sam and Dave's Greatest Hits". Some of

  • Can a code in FormCalc Or JavaScript be reused

    Hi, Does somebody know if we can share / reuse  existing code like JavaScript Function or FormCalc between different forms ? Thanks !

  • CS6 download in UAE . . . with UK credit card

    Just moved to Dubai from UK for 3 years, bought a new mac and want to download CS6 Design & Web. The Middle East online Adobe store only allows for a UAE billing address and my credit cards are registered in UK at my home address. The UK online store