move the REF to reference

I'm looking for a grep that reverses the "full stop and the ref to reference ', 'reference ref and full stop.

(\.)(\s(~F))This code finds it, but when I change to $2$ 1, the reference ref completely disappears and the note itself also.

An another grep with refs to reference was working when we applied the 'change everything' instead of 'F & C', but this time who does not work either.

Hi Gert,

your GREP suggests, the full stop is followed by a white space and which is followed by the reference marker.

And the result should be that white space more the reference marker is followed by the full stop?

Try the following ExtendScript script:

var doc = app.documents[0];
app.findGrepPreferences = app.changeGrepPreferences = null;
var myGrepString = "\\.\\s~F";
app.findGrepPreferences.findWhat = myGrepString;
var resultTextArray = doc.findGrep();

for(var n=0;n

Uwe

Tags: InDesign

Similar Questions

  • Move all of the URLS in the text for references

    Hello world

    I have an interesting little problem. Basically, I have a text in which all URLS are displayed in the format < URL > < URL > www.example.org and I want to spend these coins - preferably without the < URL > - tags to references. So I decided to do this and I got far enough. I can create empty notes for each instance of < URL >(.+?) < / URL > but then when I want to move the text, I'm stumped on how to define what text should be moved without losing the location of the note to the text. So here's what I have:

    href() {} function

    var curSel = app.selection [0];

    current selection is that the script is looking through

    var searchTerm = "< URL >(.+?). < URL > ';

    Search term such as variable to facilitate the eventual later use

    app.findGrepPreferences = app.changeGrepPreferences = null;

    Reset the search parameters

    app.findGrepPreferences.findWhat = searchTerm;

    Search searchTerm

    var result = curSel.findGrep (true);

    app.findGrepPreferences = null;

    for (var f = 0; f < result.length; f ++) {}

    f is defined as 0, but if there are no more results than 0, increments f by the number of results

    curRes var = result [f];

    Defines curRes as the number of results f-> last occurrence of searchTerm in selection

    var curFootnote = curRes.footnotes.add ();

    Creates an empty reference of last instance of < URL >. + ? < URL >

    moveURL.move (LocationOptions.AFTER, curFootnote.insertionPoints [-1]);

    }

    app.findGrepPreferences = null;

    }

    I apologize for the rather silly sounding commenting in it, but I'm trying to make sure everyone with a bit of JavaScript knowledge knows that I do.

    As you can see, moveURL var is not set. var moveURL would be the function where I define the text that needs to be moved. Now, he can't be curSel because who would try to move all the text in the reference, which is just stupid for obvious reasons. curFootnote is not, because it generates the note. So what I'm doing wrong here?

    Thanks for your help!

    You don't need an 'intermediate' at all moveURL.

    The problem occurs because you add a new reference to the found object (curRes) - you can see if you add this after line of footnote.add:

    curRes.select();exit();
    

    (so please withdraw again, this is only to show how to check what is the problem).

    You can fix this, oddly enough, by adding the note before the target text:

    var curFootnote = curRes.insertionPoints[0].footnotes.add();
    

    If you check with the trick 'select', you will see the found text "curRes" still only constituted the part of the URL and the new reference appears right in front of him and not inside. When you add a note "at the end", to help

    var curFootnote = curRes.insertionPoints[-1].footnotes.add();
    

    you will find the note becomes an integral part of the "curRes" and if you can't its text more move in this same note.

    With that, it's child's play to move the text found in the note, but then you still have to remove the markers of the URL. There are several approaches, but I will copy only the text in the note, then by removing all of the text found in the document, like this:

    curRes.characters.itemByRange(6,curRes.characters.length-5).duplicate(LocationOptions.AFTER, curFootnote.insertionPoints[-1]);
    curRes.remove();
    
  • Move the object by the "reference Point".

    I need to move the images on my document using different reference points. But it seems that by default, it moves using the 'AnchorPoint.TOP_LEFT_ANCHOR '. I can't change it.

    Here is my code:

    myDoc var = app.activeDocument;

    var changeRefPoint = app.activeWindow.transformReferencePoint = AnchorPoint.TOP_RIGHT_ANCHOR;

    if(MyDoc.Selection.Length == 1)

    {

    If (app.selection [0].constructor.name == "Rectangle")

    {

    var rectangle_graph = app.selection [0].move([159,61.3]);

    }

    }

    Hi Ken0207,

    I'm afraid that the setting of PageItem.move (in, in) is always top-left-anchor parent, regardless of the current transformReferencePoint.

    I can't test it in depth, but the following function should do the job:

    function moveToConsideringAnchor(obj, xyDest, anchorPt)
    // -------------------------------------
    //       :  any singular PageItem specifier
    //    :  [x,y] location expressed in the current ruler space
    //  :  the considered AnchorPoint (default is top-left)
    {
        if( !(obj && obj.transform) ) return;
    
        var CS_PASTEBOARD = CoordinateSpaces.pasteboardCoordinates;
    
        anchorPt || (anchorPt=AnchorPoint.topLeftAnchor);
    
        var xy0 = obj.resolve(anchorPt,CS_PASTEBOARD)[0],
            xy1 = obj.resolve([xyDest, anchorPt],CS_PASTEBOARD,true)[0],
            dx = xy1[0]-xy0[0],
            dy = xy1[1]-xy0[1];
    
        obj.transform(CS_PASTEBOARD,[0,0],[1,0,0,1,dx,dy]);
    }
    
    // ---
    // SAMPLE CODE
    // ---
    
    // Your settings:
    var CONSIDERED_ANCHOR = AnchorPoint.BOTTOM_RIGHT_ANCHOR,
        XY_DESTINATION = [159,61.3]; // in ruler space
    
    var sel = (1==app.selection.length) && app.selection[0];
    
    if( sel instanceof Rectangle )
        {
        moveToConsideringAnchor(sel, XY_DESTINATION, CONSIDERED_ANCHOR);
        }
    

    @+

    Marc

  • Out of the Refs of symbol moves Pathitems to another layer

    Hello world

    I worked on it for a LONG time and do not understand what. Here is what I do (in VB):

    I have a symbol in double, add 4 times to layer1 (with a few massages to each add a reference). Variable 'aLayer' is the first layer (believe me, I checked it 2.742 times ). When I want to talk to the UI HAVE and refresh it just before the RED line runs, everything appears fine - these guys are little on layer1, just where they are supposed to be. When I run the 'remove' to break the connection, it then moves the layer pathitems 2.

    If I try the same thing on Layer2, (there are only 2 layers), copies go to layer 2. If I add a third layer to diagnose the problem using the variables of layer 2, copies go to Layer 3.

    Any ideas what I am doing wrong?

    Thank you very much in advance for your help!

    TT

    Here is the code:

    ...
    Dim tmpCenterWidget = aDoc.Symbols.GetByName ("CenterWidget"). Two copies
    Var widgetLeft = DrawCenterWidgets (aDoc, "_WidgetLeft_", & aLayer.Name, tmpCenterWidget Massilia 180, + 18, x 1)
    Var widgetRight = DrawCenterWidgets(aDoc, "_WidgetRight_" & aLayer.Name, tmpCenterWidget, 0, yCenter + 18, x2-18)
    WidgetTop = DrawCenterWidgets (aDoc, "_WidgetTop_" & aLayer.Name, tmpCenterWidget, 90, y1, overview - 18)
    Var widgetBottom = DrawCenterWidgets (aDoc, "_WidgetBottom_", & aLayer.Name, tmpCenterWidget,-90, y2 + 18, overview - 18)
    tmpCenterWidget.Delete () ' deletes temp duplicate symbol of widget that breaks the symbols to paths
    ' GroupSelectedObjects (app, "_GroupWidgets_")

    aDoc.Selection = vbEmpty ' deselects all
    App. Redraw()

    Returns True

    End Function

    Private Function DrawCenterWidgets(aDoc As AI.) Document, widgetName As String, baseSymbol As Illustrator.Symbol, rotation ACE Double, top of page Double, left As Double)
    Dim aLayer = aDoc.ActiveLayer
    Dim newSymbol = aLayer.SymbolItems.Add (baseSymbol)
    newSymbol.Rotate (rotate)
    newSymbol.Top = top
    newSymbol.Left = left
    widgetName = newSymbol.Name
    Return newSymbol
    End Function

    ... These are fuck little... before go us crazy, try adding symbol points to the hand, then remove the hand symbol too, everything is in place, good. Now cancel, create a new script, write 2 lines of code to remove the symbol... aha!, all instances of symbols go to the top layer... have bug? I tried probably, VB, and JS, same results.

  • Move the library and the files to which they refer

    Hello

    My apologies if this has been answered before, I watch but can't find anything.

    I have Lightroom 2.4 on a G5 Mac(ppc, 10.4) running a Lacie 1 TB external drive using high-speed fire wire

    My photos are on this drive.  The catalog that references the images on the external drive is the main internal disk.

    After having updated my secondary internal drive I want to move both the file system containing photos on the internal disk and the catalog on the same drive. (and then configure the external hard drive as the backup that seems easy to do.

    So, how can I move all the files referenced from one disk to the other?

    Thank you

    Chris

    PS Sorry if this is blinding for the rest of you. I'll buy myself a few books on lightroom and hope thye respond the rest of my questions.

    Adobe Photoshop Lightroom 2 book for digital photographers (voices that matter) - Scott Kelby

    Adobe Photoshop Lightroom 2 book: the complete Guide for photographers by Martin Evening

    Move your files intact, i.e. maintain exactly the same file structure that they are on the external FW drive to the new internal. Then drag your .lrcat to the new drive. Double click on it. LR will open this catalog, but have no idea where are the images. Choose top most folder and control-click it and then navigate to the new location.

    I left behind the file Previews, because sometimes an advantage to generate a new, but if you don't want to spend this time, simply copy on. Too much. It is at the same level as the .lrcat.

  • Ref: move the image when the mouse moves.

    Sorry! actually Sir, according to my mission, I have 2 images I added to the second image horizontal manager.in a few features missing that 1 one.so when the user learns the thing missing it clicks on this place and the missing functionality will be appear.so fo peripheral not touch, I need an arrow like image to move images .it should work as the arrow in the painting of .whereever user move mouse the arrow moves accordingly... Can you help me?

    A good start.

    You must call invalidate() after you move the x and y to make the field to extricate himself.

    You should not call invalidate() in your method of painting, that it in fact repeatedly paint.

    Let us know how get you a copy with these changes.

  • I want to add tab stops to the cross-reference format to make my OCD, a solution of a single click, but the format never comes out right and using the tab key in the window of the dialog box to move the cursor to the next window.

    When you try to format my references I would add tab stops so that the format for the TOC works with the cross reference.  For example my format on the pages of reference is

    < $chapnum > - < $paranumonly > < $paratext > < $chapnum > - < $pagenum >

    With tab stops before the chapnum, between paranumonly and paratext and the next chapnum.  If the final result should look like

    4-16 speed vertical digital - primary Mode... 4-28

    Help?

    In the reference page, add a \t where you want a tab to be, i.e. \t<$chapnum>-<$paranumonly><$paratext>\t \t<$chapnum>-<$pagenum>

    Then, make sure that the format of paratag has the tabs tab placed at the correct locations.

    When you re - generate the table of contents, you should get the desired effect.

  • How to move the url (address bar) entry in the tab menu (firefox 29)?

    Old firefox (-28) allows the join tab bar and the bar of address together, saving space.
    Help the new kill version (29) who is not the feature and even classical Restorer theme.

    Please allow to move the buttons/address to the tab bar, because now Firefox eat all my precious screen space.

    With Classic restaurateur theme installed, I have no problem moving items to toolbar navigation on the tab bar (see the attached screenshot).

    If you encounter problems with this add-on, you refer to the thread support on third-party MozillaZine site.

    Alternatively, you can try the add-on following, but it has not been updated in a long time, so it can be buggy.

  • Complete the table of reference

    Hello

    What I want: complete a table that is inside a container and named function of input parameters.

    What I tried:

    I created an object reference, Locals.obj_temp, which stores the set I want to fill the inside of the container.  I seem to be able to get the number of items, define the limits of the table, insert items, etc., but I can't figure out how to put values in there actually.

    I learned today that I can use ' * ' for dereferencing the ref of the object, so I use

    InsertElements(*Locals.obj_temp,"[0]",1),

    to add an item correctly.

    But, I don't know how to make the value I want it to be, and not not not the default value zero as shown in the picture.

    for what it's worth, this is how I make the new table inside the container and obtain a reference to it.

    Parameters.UniqueFCs.NewSubProperty(Parameters.UniqueFullTable[0][Locals.m],PropValType_Number,True,"",0),
    Locals.obj_temp = Parameters.UniqueFCs.GetPropertyObject(Parameters.UniqueFullTable[0][Locals.m],0),

    I found a way to do it.

    I created a temporary table as Locals.Arr1 and clone to the container parameter I want.

    For all of you who found this thread, I have

    Locals.Arr1 //my table temp I empty at each iteration of my loop for external

    /*
    code that fills Arr1
    */
    Locals.obj_clone = Locals.Clone("Arr1",0), //create a clone of obj of Arr1
    Parameters.UniqueFCs.SetPropertyObject (Locals.name_temp, 1, Locals.obj_clone), //copy Arr1 table in my output tray (my container is called UniqueFCs)

  • Non-linear curve fit the model of reference file

    Hello.

    I use the VI of the non-linear curve adjustment in order to adapt the data. The reference to the fitting VI model I use is included in the attachment. You can see that I have a few constant wireline, like 4, 2500 and 1. I want to do this constant variables I'll change before each curve corresponds, because actually in my problem this variables I know before the adjustment and they are constantly changing, and for the moment this made VI just to test.

    The problem I have is that I can't enter the values of this variable to my main VI, where I also call the VI was nonlinear. The scheme of connection of refernce VI made must be changed in order to be recognized by the VI was nonlinear. I tried to use a table to transfer variables, but if I use one, it recognizes the variables as parameters of editing and he's trying to install as well in the adjustment process, and it gives me erroneous results.

    Any ideas how I can add the values of variables?

    Thank you very much.

    Kind regards

    Nikola comedy

    To provide additional data randomly in VI of model, you must use the entrance of 'data' (it is a variant and so can contain anything you want!). Just create any type of data you want (generally a cluster if there are several values of different data types) that contains all the values, convert them to a Variant in the main VI and the variant of wire to crimp her. In the model, you convert the variant return to data, to the constant help of cluster, such as defined in the main as VI 'type' (simply right click cluster in the main VI... wire Create constant... move the constant in VI of model). Now, to unbundle the different values and use them anywhere inside your model.

  • The property node reference

    Hello guys,.

    Using the property node, I confused with the terminal of reference there. Can we establish a special reference to the control (button, for example), but obviouly I couldn't connect the button directly to the point of reference. I find an example about which attached in attachment. How can I creat something like that? So enjoy!

    Phyyu,

    VI server references follow the structure of object-oriented class. A VI server reference can refer to a wide range of objects, such as a control, etc. variable indicator, VI. Server of VI References can be as strict or not strictly typed as you wish. A control/light specifically made reference refers to a command that you pass to it. You can request to be more rigorous by right clicking on the reference, and using menus to select the class that you want to reference. A tree of possible class might look like this: Server VI > generic > G object > control > Array. Now this reference requires a pointer to a table control and will not accept any other type of control. If you use this reference control to create a property node, the properties will be specific to the array class.

    A refnum is simply a numeric value that refers to a place in memory. Reference and refnum are used somewhat interchangeably in LabVIEW.

    I hope that answers your questions! See the help files of LabVIEW for VI server references to learn more about them.

    Kind regards

    Alexandra Valiton

    Technical sales engineer

    National Instruments

  • How can I move the Tablet PC Input Panel to a secondary monitor?

    I've been manually stop and start the Tablet PC Input Service to avoid conflicts with the apps full screen.  I wouldn't do it if I could find a way to move the Tablet PC Input Panel to a secondary monitor.  There seems to be no option for this.  Someone told me that there may be some third party software that can move it, but after much research, I can't find.  Any advice?

    Hi Marco, s.

    You will not be able to move it to the secondary monitor. Moving to this view can be done by some 3rd party software. You can search these software on world wide web using your favorite search engine.

    Important note: This response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Reference:
    http://social.technet.Microsoft.com/forums/en/w7itproui/thread/dd0ddf05-E550-4F51-B980-62bbaf4a7f37

    Bindu R - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Reading data from txt file and move the engine for the data

    At this point, I had the table and I already read txt file and I want to read the data in table and separate the corresponding element in 3 parts (3 axes: X, Y, Z) and I was able to make the transmission of data to move the motor in this position. and the treatment will be repeated after completing the first point

    Hey, the Index Array function may be what you are looking for. Here is the link to the documentation for this function.

    Function table index

    https://zone.NI.com/reference/en-XX/help/371361L-01/Glang/index_array/

  • How to MOVE the default location of Windows Fax and Scan?

    We have recently added a second server (Windows Server 2008) to a domain AD., because the new server has more resources, we moved all the DOCUMENTS folder to users from the server (Server 2003) network share to address liked to a share on the new Server 2008 machine. After the move, all Windows 7 machines runs the utility of fax and scan can not find MANY DOCUMENTS folder as the utility constantly points to the old server (which took the OLD action of document already deleted).

    I changed the location of DOCUMENTS in Windows 7 for Server 2008 sharing, but Fax and Scan keeps searching for the old stock 2003 server and I cannot find where to redirect them. Can I turn off Windows fax and analysis services to the title of printing and scanning and then restore? That will allow me to redirect to the correct folder? I have tried even to search the registry for references to the old stock but still can't seem to locate the old server to the MANY DOCUMENTS reference.

    Can anyone help?

    Russ Foszcz

    I solved this problem with a synlink

    First to find the actual location of Library/Documents/scanned documents, make this scanned Documents to right click and click 'open file location '.

    In my case he opened it (that I copied from the address bar):

    Documents C:\Users\Tim\Documents\Scanned

    What should I do now is to save the files in this folder, and then delete the "Documents" folder completely

    Then click the windows key and type in run or search (or click the Windows key + R) and type 'cmd' and press enter

    A black console should appear

    In it, you must enter this command, I wanted that my scans to record in X:\Scans

    MKLINK /j "C:\Users\Tim\Documents\Scanned Documents" X:\Scans

    then press enter

    This creates a folder (symlink, not a shortcut), who acts as a normal file, but is actually located in a different place, so when the scan software saves files in its default location will be actually stored in X:\Scans

  • Expand collapse folders in my documents is not and jumps down and so I have to move the folders I want to actually see this all the time is there a default to always develop?

    Expand collapse folders in my documents is not and jumps down and so I have to move the folders I want to actually see this all the time is there a default to always develop?

    Also I have to move the colum line to the right all the time to see the date size etc. is there a default value or why not microsoft built in a value by default do not cut off the name of the file that I always have to make more time to see the full file name

    Thank you

    Greg

    Hello

    Unfortunately, you cannot save the settings for the fall down in my documents. As this is normal.
    If you want to suggest changes in the design here is the link you can make reference to: Microsoft Connect - back products and bug reports. Microsoft.
    https://connect.Microsoft.com/dashboard/Info/

    To resize the size of the column:
    1. you can resize the column by pointing the mouse on the name of the category.
    2. Once you can drag the slider to the right, double click it to get the optimal size.

    Thank you, and in what concerns:
    Swati Keni-Microsoft Support Engineer

Maybe you are looking for