JS/CS3 move content from the previous table cell

I'm trying to create a script that needs to find and cut some content of the cell and paste it into the previous cell. For example, $12 333.  The sign $ should be in the previous cell, while the number is expected to keep to its location. I am new to the script and my script does not work like that. Help, please.

myDoc var = app.activeDocument;

app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.findWhat = "$";
var myFound = myDoc.findText ();

for (i = myFound.length - 1; i > = 0; i--)
{
myFound [i] .insertionPoints [0] .select ();
.silence .insertionPoints [0] myFound [i] = ' $';
}

Avoid copy/cut and paste If you can. In your script, it seems that you don't need. In a table, parent of the text is a cell. The cells have a parentColumn and a parentRow.

for (I = myFound.length - 1; i > = 0; i--)
{
MyCell = .parent myFound [i];
myFound [i] .characters [0] .abolish ();
.silence myCell.parentRow.cells [myCell.parentColumn.index - 1] = ' $';
}

Peter

Tags: InDesign

Similar Questions

  • Move contents from the old PC to new PC

    Which is simplest and cleanest way to migrate all the content from my old PC (XP) to my new PC with Windows 8.1. Microsoft says it's to make a download available from Laplink (PCMover Express). This downloaded software will do the job if I connect the PC again to my router / FIOS network via an Ethernet cable and make the transfer of PC to PC over the network, or it would be more efficient to use the Laplink USB cable by buying their software?

    It depends on what you mean by "everything."

    In general, it is easy to move data files (e.g. documents, pictures, music, etc.) between machines, and if the machines are all connected to the same network, the copy on the network is the best way to accomplish the move (it is always prudent to copy, check the computer to see if everything is fine, and then delete the old computer instead of moving that automatically deletes the original files).

    Some applications, such as Microsoft Windows Easy Transfer, move the 'parameters' as well as data.  For the most part, this includes things like the customizations of office and similar customizations; It may also include the "Favorites" browser, music playlists and so on.  These 'settings' are really more data files, but they are located in more obscure places and the average user probably don't know the files to move or where they need to go.

    In general, you can not move the programs (applications).  These must be reinstalled (assuming they are compatible with the new version of Windows) using the original installation media (CD, DVD, downloaded the Setup file).  PCMover of Laplink, however, claims to be able to move the programs.  I've never used this product and I saw mixed reviews.  So if you either don't have installation media for your programs or you don't want to go through the resettlement process, read the reviews and decide if you want to take a chance on this program.

    Whether you use the USB owner or your network, apparently PCMover will work with both.  The main difference will be the transfer speed, and this will depend on the type of network you have and the type of USB connection available.  Typical home networks now have a theoretical maximum throughput of 100 Mbps.  USB 2.0 has a theoretical maximum of 480 Mbps.  Gigabit networks are faster and so are USB 3.0 connections (although I think would be that does not support the USB Laplink USB 3.0 cable).  Here's what a 2010 review had to say on this subject:

    With an external hard drive, USB2, we found it took about four hours to travel 30 GB of data, and beyond 100 Mbps Ethernet the same charge took more than a day of solid copy. Your best bet is a Gigabit LAN (if you have one) or the cable USB Laplink, which should in theory work around twice as fast as an external drive.

  • Move photos from the previous version to worm. 8

    How to import all my picutres from a previous version of photoshop elements.  Thanks for your help!

    UNA

    You move or import the photos. You convert the catalog.

    http://help.Adobe.com/en_US/ElementsOrganizer/8.0/win/using/WS6FD377FF-2010-4fac-876A-4150 2281E986_WIN.html

  • Copy-move content from the C drive to a new larger disk? (space)

    I have Windows XP and other applications and data files on a hard drive a little lack of space and would like to copy on a larger drive (500 GB), there are commercial software on the market by Acronis that will do that; However, I was thinking about this method that uses the copy program. This will work.

    1. install the new drive as slave.

    2. make a bootable XP floppy or flash drive.

    3. go to the root of the old drive and select all the files in the Explorer.

    4 locate the WIN386. SWP file and unselect by using the CTRL key.

    5 copy all old drive to the new drive.

    6. remove the old drive and change new master drive.

    7. new boot disk.

    8. If startup does not work, start by using the startup disk or a flash drive.

    9. to invite him back, type "Sys C:".

    10. Remove boot floppy/flash drive and charge it.

    11. If this does not work, buy commercial software.

    10 first steps will work? It would be certainly much cheaper, but if I know that it won't it allow me to save a lot of time and unnecessary copying.

    Do not work, unless your disks are both in the FAT32 format - and you can only do with a 500 GB drive

    Your best shot would be to use a correct application of cloning or patition manager to do the work for you.

    Some have a free trial that will work before it runs out.

  • I get about one second from the previous movie when the scene selection in the menu of the DVD

    I have PE 12 for mac and have a 21.5 "iMac with 4 GB RAM and 1 TB hard drive.  I asked questions on here before all of a DV footage.

    I have a delay of 1 hour, 20 minutes and used markers to scene to go to the cinema in the timeline panel.  There are 11 movies in the video.  Markers are at the beginning of the scene in question.  On some of the later scenes, I get about one second from the previous movie before the start of the current movie.  I did thorough tests 12 EP in order get my imported correctly DV film.  I finally decided to use LifeFlix to get the imported records.  When I was testing the creation of DVD, I have not found this second of the previous film in the current issue of the film.  The problem seems to be that less pronounced during playback on my DVD than VLC Player or Apple's DVD player.  I use DVD Widescreen Dolby Preset for the DVD.  I did a DVD earlier using brands of menu with the result being 11 main menus.  I decided to abandon this approach.  Two DVDs have the same second or so of the previous clip before the current movie.

    I tried to stop markers in the DVD to recreate what I had with Pinnacle Studio, but this resulted in a DVD with a 'mistake' at the stage of decision-making case and record a DVD with menus blacks half but for the buttons.  I had added some empty frames between scenes when adding the judgment of brands, such as advised by ATR, but this failed.

    I would like to use markers to stop it again, but the problem of the second or last if a clip is more pressing.  The previous screen is sometimes less than a second and has no picture, just sound.

    Never had this problem with my old program.

    I also had "Unknown error 2131042562" when writing a normal DVD with the project and the checkbox "adjust to the content of the available space." checked.  I also got this when trying to write on a normal DVD - RW disc, to test the DVD for 'Previous film' problem as stated above.

    My burner is a USB 3 Litton Blu - ray burner.  It worked without a problem since I bought it.  I also used TDK DVD that I used for a number of years without any problems at all.  Today I wrote a data DVD without any problem.  I also wrote the content of a DVD folder on the disc, after generating an image using disk utility and it worked successfully, I realized the same DVD using the software 'Burn' successfully.

    Again, I have never had such problems in the display of the videos on DVD before.

    Your help is very appreciated.

    I managed to get a DVD with 5 images of black video between the scenes I wanted.  Video of Black made sure the brands menu worked!  Started it at the beginning of the relevant scenes.  I've never had to do this before in any program.

    Add stop markers did not.  Brands menu would go up to a point half a second or a second before the required stage, as have no black video.  I tried all sorts of things to resolve this, even to copy the project using the project archiver and the opening of the copy, but nothing helped.  I don't really know how ATR has managed to get markers to stop working.  I even added 12 frames of black video between frames with markers of the judgment at the beginning of the black video and the marker of the scene at the end.  It did not work.  I have nothing out.  The program seems to create a folder, but there is no error message and no file at the end.  He writes date folder much faster than normal when using markers of the judgment.  Also do not work 12 images of the video I think.

    I gave up at stop markers.  The normal use of the menus seems OK.  Other programs like Apple Compressor have this type of menu structure.

    Note the use of 5 images of the black video locks marks menu successfully.

  • How can I recover my favorites from the previous version of Firefox?

    I just loaded the new version of Firefox. My Favorites from the previous version have disappeared. How can I get back them? I went through the provided recovery method, nothing.

    Do you still have backups of bookmark in the bookmarkbackups folder?

    You have an "Old data Firefox" folder on the desktop in the case where you have refreshed Firefox and created a new profile?

    You can retrieve the form of the data of the 'Old Firefox Data' folder, but be careful.

    You can copy files like these in your current Firefox profile folder.

    • bookmarks/history: backups in the bookmarkbackups folder and perhaps places.sqlite, if you really need the history
    • other SQLite files cookies.sqlite (cookies) and formhistory.sqlite (saved form data)
    • logins. JSON and signons3.txt (decryption key) of the saved passwords in password manager
    • Permissions.SQLite and, possibly, content - prefs.sqlite permissions and Site preferences
    • cert8. DB for stored intermediate certificates (Certificate Manager)
    • sessionstore.js to open and pinned tabs and tab groups
    • Persdict.dat for the words that you added to the spelling dictionary

    Note that "Reset/Refresh" creates a new default profile with a time stamp to identify it and trying to retrieve settings such as Favorites and history and history and cookies and passwords, data of automatic filling of the old profile, but you lose data such as the installed extensions and other customizations.
    The current profile folder will be moved to the "Old Firefox Data" folder on the desktop.

  • Select values from the db1 table and insert into the DB2 table

    Hello

    I have three databases oracle running in three different machines. their ip address is different. among the DB can access databases. (means am able to select values and insert values into tables individually.)

    I need to extract data from the DB1 table (ip say DB1 is 10.10.10.10 and the user is DB1user and the table is DB1user_table) and insert the values into DB2 table (say ip DB2 is 11.11.11.11 and the user is DB2user and table DB2user_table) of DB3 that is to have access to the two IPs DB.

    How do I do this

    Edited by: Aemunathan on February 10, 2010 23:12

    Depending on the amount of data must be moved between DB1 and DB2, and the frequency at which this should happen, you might consider the SQL * COPY more control. I think it's very useful for one-off tasks little, so I can live within its limits of the data type. More http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/apb.htm#i641251.

    Change some parameter of sqlplus session are almost mandatory in order to get decent transfer rates. Tuning ARRAYSIZE and COPYCOMMIT can make a huge difference in flow. LONG change may be necessary, too, depending on your data. The documentation offers these notes on use:

    To activate the copy of data between Oracle and databases non-Oracle, NUMBER of columns is replaced by DECIMAL columns in the destination table. Therefore, if you are copying between Oracle databases, a NUMBER column with no precision will become a DECIMAL column (38). When copying between Oracle databases, you must use SQL commands (CREATE TABLE AS and INSERTION), or you must make sure that your columns have a specified precision.

    SQL * the VALUE LONGER variable limits the length of the LONG column you are copying. If all LONG columns contain data exceeds the value of LONG, COPY truncates the data.

    SQL * Plus performs a validation at the end of each successful COPY. If you set the SQL * variable more COPYCOMMIT DEFINED to a value positive n, SQL * Plus performs a validation after copying all lots n of records. The SQL * Plus ARRAYSIZE variable SET determines the size of a batch.

    Some operating environments require that the service names be placed between double quotes.

    From a SQL * Plus term on DB3, can resemble the command to move all content from my_table in DB1 to the same table in DB2

    COPY from user1/pass1@DB1 to user2/pass2@DB2 -
    INSERT INTO my_table -
    USING select * from my_table
    

    Note the SQL code * more line-continuation character ' - '. It is used to escape the newline character in a SQL * Plus command if you do not have to type all on one line. I use it all the time with this command, but I can't locate the documentation on that right now. Maybe someone else can put their finger on it.

    There are other ways to accomplish what the command copy and it is not without its quirks and limitations, but I find that there is usefulness in an Oracle Toolbox.

  • I have a project in iMovie HD6 and want export to Final Cut Pro.  I see that it is not possible from the previous questions, but is it possible that I could maybe create a dvd of the iMovie project and then who import in Final Cut?

    I have a project in iMovie HD6 and want export to Final Cut Pro.  I see that it is not possible from the previous questions, but is it possible that I could maybe create a dvd of the iMovie project and then who import in Final Cut?  I just want to make a new trailer for the project.

    What you suggest is possible but it takes software and third-party quality loss.

    Instead, export a QuickTIme movie. If you have a choice of codecs, choose Apple Intermediate Codec. You can save it where you want it-maybe in the movies.

    Then import the movie into FCP as a clip.

    Good luck.

    Russ

  • How to display the scroll bar on every page of the tab where the content from the same block of data?

    Hi gurus,

    Is it possible to display the scroll bar on each tab on Web tab page where the display of content from the same block of data?

    for example:

    Block of data elements used:

    1. employee ID

    2. first name

    3 first name

    4 date of hire

    scroll bar appears on the page 1

    5 salary

    6 commission

    scroll bar appears on page 2

    Many thanks in advance,

    Kind regards

    Ferrere

    Dear fendy_chang,

    A data block can have only 1 scroll bar. If the form is for display purpose, you can create several data bloks that points to the same table for each tab.

    Manu.

  • TabGroups manager: new tabs from the previous group

    In older versions of Firefox I could open a new group with TGM and drag a new tab in that she has a new group with just this one new tab. Now (37 FF) a new group contains and controls all the tabs from the previous. No intependend the tabs in the new group management is possible.
    How can I create a new group of vacuum?

    You ask about an add-on. It is maybe the Addon or is more actively developed and supported.

    If I identified correctly this is the one

    But it seems to have been updated in 2011
    I'm getting server not found for support and homesite.

    I suggest that you learn about the Mozilla Addons site for advice if this is still active or suggested alternatives.

    Or just get your car among the hundreds of available alternatives here

  • You just edit Contacts in GMAIL and I can not restore my contacts from the previous version. I followed your instructions, but it has not restored nearly 500

    You just edit Contacts in GMAIL and I can not restore my contacts from the previous version. I followed your instructions, but it has not restored nearly 500 contacts that I have that are in other contacts.

    Hi robertsjohn125,
    Contacts are not supported in Firefox, unless you take on Firefox Desktop and Hello of Firefox?

    Where to manage your contacts, this might help to direct you to the correct support.

  • Why Firefox doesn't save my tabs from the previous session although I chose to do it in the options?

    Firefox does not save my tabs from the previous session, although I have chosen in options, to save my tabs from the previous session.

    Firefox 4 saves the previous session automatically, so it is no longer necessary for the dialog box asking if you want to save the current session.

    Use ' file > exit ' or ' Firefox > output "If you want to restore multiple windows.

    You can use "Firefox > history > restore previous Session ' to get the previous session at any time.

    There is also a button 'Restore previous Session' on the default on: Home home page.

    Another possibility is to use:

    Make sure that you do not remove the navigation, search and download history on Firefox to clear the browsing history when you close Firefox.

  • Computer crashed recently, used the version 3.6.15, now with 4.0, how do I bookmarks from the previous version that was on the old computer. All files of this computer on the new computer under HD1?

    Computer crashed recently, used the version 3.6.15, now with 4.0, how do I bookmarks from the previous version that was on the old computer. All files of this computer on the new computer under HD1?

    bookmarks.html contains no bookmarks, this file is no longer used to store.

    Are you sure you're looking in the right folder, you are possible to search in the installation of Firefox rather than the profile folder folder. The following link provides details on the location of the profile folder - http://kb.mozillazine.org/Profile_folder_-_Firefox

    If you do not find places.sqlite you may not have access to your old profile folder.

  • Move photos from the iphone to the flash drive

    Save space from icloud, I need to move photos from the phone.

    Photos about iCloud are in iCloud, not on the iPhone.

    Save them on your computer, and then remove them on the iPhone.

    -> https://support.apple.com/en-us/HT201302

  • How to free up space in a drive by deleting files hidden from the previous operating system?

    Original title: my vista home c drive now have very low free space.there is some files hidden from the previous operatnig system busy space that are useless.how can I delete these files?

    my laptop is slow due to the very low free space in c drive. How can I remove the unnecessary files from c drive or increase the volume of drive c?

    Download a program like TreeSize Free (http://www.jam-software.com/treesize_free/) to see where the files take up a lot of space.  Be aware that deleting files without knowing what you're doing can cause your system to be unable to restart or cause instability can so be sure you know that you are deleting before you start.  There is no way to extend one hard disk other than to replace it, in which case you need to copy all the files from your old drive to the new.

Maybe you are looking for

  • right pointing the orange arrow next to sent the message in the sent folder

    I sent an email to my son and myself as well. The message was sent, but it never happened in my Inbox. I always do and my message is well received. On this occasion, I never received the message. There is a right pointing the orange arrow next to the

  • HP 2550 Toolbox for windows XP

    Is there a download for the Toolbox to 2550L using windows XP. If not, is there another way to measure levels of ink etc. Thank you Larry B

  • Windows Powershell documentation

    Where is the Windows PowerShell reference manual? PowerShell is another product "put something there to shut them up" or, in the fullness of time, we have a usable documentation? To not to cut anyone, but this isn't where someone should define what i

  • Lack of Volume, network and power in the Notification area icon

    All these icons have disappeared randomly my notification area...I went into properties, to see if they have checked, so they go, BUT it shows that only the clock has a check mark in the box and the network, volume, and power will not let me check bo

  • Momentics IDE does not

    Everyone has a problem with Momentics IDE. This is the 2nd time I use it since the update to 2.1. The first time, no problem, but today, it opens and then crashes with the message "Momentics IDE does not. It does not even load the homepage before it