JavaScript: Is there a way to move text from de clipboard to a js variable ?

Now I use an alternative that is (roughly):
1. Save the actual insertionPoint (where I want to put the final result)
2. Create (or use a predefined) textframe off of the page.
3. Select that textFrame and paste the clipboard contents
4. Reselect the original insertionPoint and then begin a loop for each
paragraph:
5. Apply several procces to the paragraph (this include tokenize the
input, format and replace of common errors).
6. Insert the data back to de insertionPoint with apropiate
paragraphStyles.
I did'nt place the clipboard text directly into the final textframe because there are content before and after the insertionPoint and not all of the paste text is actually used. I fill better doing the text processing in a separated place and later insert it.
This method work very well, except for the visual jump to the textFrame and back to the insertionPoint, and the change in the page view position.
I will be happy if I can place the clipboart text directly into a javascript variable and avoid the creation of an auxilizary textframe.
Thanks.

> If this file is text file you can also read the contents of the file
> into a variable as a string.
> Process this string and set it as contents of your text frame.
Yes, I can do that way (I'm considering anyway), but I have a lot of textframes linked across several pages (more than 80 pages in fact) and I have to put the inserted text in diferent places of this multipage linked textframe. And the information a have to put in the document isn't in sequent but scattered along the pages.
For me is easiest to copy from original file (spreedsheet document) a bunch of selected rows, place the insertionPoint it in the correct place in the document and run the script for generate the data. Next select another rows and repeat the process in other place.
The other way I'm thinking of is to copy all rows I need (actualy not all rows of the documnt) ignoring the order in which I want it, import into indesign and later copy and paste in correct place.
Maybe I have to rethink the whole process, but for now it works.
Thanks anyway

Similar Messages

  • Is there a way to move music from my Iphone 3gs to the Itunes on my computer without deleting it?

    Is there a way to move music from my Iphoe 3GS to the Itunes on my Windows 7 laptop? The hard drive of the laptop had been corrupted so it was replaced which makes the computer now register as being a new one alltogether.

    If you still have the old drive you (or a helpful friend) may be able put it in an external drive bay and extract your iTunes library and other personal data from it. Otherwise see Recover your iTunes library from your iPod or iOS device.
    tt2

  • Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?

    Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?  The cut and paste function is not available and there's no "move to" function.  Am I missing something?  It was so easy with Windows.

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • Is there any way to retrieve photos that were put in the trash can and then it was emptied?  Or is there a way to move photos from an imovie to iphoto?

    Is there any way to retrieve photos that were put in the trash can and then it was emptied?  Or is there a way to move photos from an imovie to iphoto?

    If you've emptied the trash, ehtn no. However if you have a backup, like Time Machine, or a recent backup copy of your photo library you could recover the photos from the trash.
    The answer to getting a snapshot form iMovie depends on what version you have.
    I should add it technically may be possible to recover the emptied trash, but if you really want to do that you would need to download a utility software that can attempt to recover deleted files. Do it soon before you start writing more data to that disk. At the moment I don't have a recommendation for such a program. Maybe someone else out there will offer suggestion.

  • TS2755 is there a way to block texts from specific numbers to imessage with out turning imessage off?

    is there any way to block text from specific numbers to imessage without turning imessage off?

    Go to Settings > Messages > Send & Receive > You can be reached by iMessage at:
    Select the right facing arrow in a blue circle next to the email address this girl is sending iMessage to and select Remove This Email.
    If she has your cell phone number, she can switch to sending iMessage to that and there will be nothing you can do, but removing the email address will prevent you from receiving an iMessage addressed to that email address.

  • HT201317 Is there a way to move photos from iPhone to a memory card without using iCloud

    Is there a way to move photos from iPhone to a memory card or computer without using iCloud?

    Yes.  You can import them from your camera roll using your usb cable, as explained here: http://support.apple.com/kb/HT4083
    If you need to import photo stream photos, save them to the camera roll.

  • Is there a way to view texts from an account without being on the account? im trying to see who my husband has been texting but i am not on his plan

    Is there a way to view texts on an account that im not on? its my husbands account

    Yeah check on the phone. You can't get a transcript without a court order.
    Message was edited in accordance with Verizon Wireless Terms of Service.
    Message was edited by: Admin Moderator

  • Is there a way to move files from Windows Media player to Itunes?

    I have a lot of files in windows media player from Walmart.com. Is there any way to move these into my itunes library to sync onto the Nano?

    Do you know what format the video is in and if its protected? most likely you will need to convert it, there quite a few converters out there. (i can't remember any)

  • Is there any way to move songs from one account to another?

    I accidentally bought an album on iTunes on the wrong account. In order to download it onto my iPod, I think that all of the songs from the other account would be deleted. Is there any way to just move the album to the other account (which is on the same computer), or use two accounts on one iPod?

    Control-click the songs in iTunes, show them in the Finder, copy them to /Users/Shared/, log into the other account, and import them into iTunes.
    (56807)

  • Is there a way to exclude text from word count?

    Hi,
    I'm writing a research project at the moment and it's about 12000 words. I have to state the word count at the start and it is supposed to exclude everything which comes in reference brackets, eg (Ames, 2009, p.103)
    I want to check the word count at the moment so want to exclude all references from the word count, but I dont want to simply delete them all because I still need to work on the doucment!
    Is there a way to do that?!

    Hi Brigit,
    It can be done (or at least estimated closely) using only tools included in Pages, Here's the process:
    Record the word count at the bottom left of the document window.
    Press command-F to open the Find/Replace dialogue.
    Enter an opening parenthesis character ( "("  without the quotes ) into the Find box.
    Enter the same character into the Replace with box.
    Click Replace all.
    Note the count of items replaced below the Replace box (one in the example, your post above):
    If all in text references are similar to the sample one provided, each contains four 'words'. Multiply the count by four, subtract the result from the document's word count, and you'll have the result you're looking for.
    If your references are of different lengths (eg. (Ames and Smith, 2003, pp.301-303) has a word count of 7), you'll need to adjust the multiplier.
    Note that if you have parentheses in your document that are NOT enclosing references, these will be included in the count.
    Regards,
    Barry

  • 2 Issues: asked to authorize computer that is already authorized.  Library and playlist on itunes is gone.  Is there a way to move items from my ipod onto itunes?

    When I want to add an application itunes continually has me sign in, it then tells me this computer is already authorized, then the process starts all over again and no applications get transferred due to this.
      I recently deleted files to free space on my laptop.  Turns out I must have deleted what itunes was linked to.  Is there a way to get my playlist from my ipod onto itunes or do I need to find all those CDs again and upload them?

    - You can transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - For non-iTunes purchased music you need a third-party progam like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    On the iPOo and the computer are those signed into the iTunes accunt that purchased the apps?
    One computer go to iTues>Store sign out of existing account and sign into the one you want.  For the iPod go to Settings>Store

  • Is there a way to move songs from my iPod to the Library?

    I used my friends computer to download some music (I have dial-up) and now I want to copy some of the songs to the library. Is there a way I can do this?

    hey i wanted to do that too a while ago and this is what someone told me, hope it works for you. this is also the way to do it without downloading any thing.
    The manual way around this problem is to use the iPod in its alter ego - that of portable computer disk drive. Successfully tested under iTunes for Windows 4.2, 4.5, 4.6, 4.7; Windows XP Home.
    - Start with the iPod disconnected from the computer - DON'T CONNECT IPOD YET
    - open iTunes
    - open iTunes Preferences - this blocks iTunes from seeing an iPod connection; leave the preferences window up and running
    - connect the iPod to the computer, wait about 15 seconds before continuing
    - open 'My Computer'
    - Tools menu, Folder Options, View tab, enable 'show hidden files /folders'
    - open iPod icon in My Computer
    - open iPod_Control folder
    - you should see a folder named Music
    - drag this folder to somewhere on your computer hard drive
    - after the copy completes, right-click the new Music folder on your hard drive and select 'Properties'
    - clear the checkmark next to 'Hidden'
    - Close that explorer window
    - eject iPod from System tray "Safely Remove Hardware" icon. This icon looks like a small gray rectangle with a green arrow floating above it. It's only there when a removable device (like the iPod in this case) is attached to the computer. Right-click & select 'Safely remove..', then click 'Stop' in the next window, OK in the next window, and then Close to complete the ejection.
    - disconnect the iPod from the computer
    - go back to iTunes, cancel the preferences window
    - File menu \ Add folder to Library \ find that Music folder copied over from the iPod
    Your iTunes library should be back in action! But wait - there's more!!
    Long time forum regular Otto42 has a java script/program that can also retrieve the playlists themselves from the iPod as well. Here are his instructions and a link to the most recent thread discussing this tricky process:
    This is really useful when you're pulling all the songs off of an iPod to put them back into iTunes, because you lost your library or anything along those lines. Come up with your own reason for using it.
    Download this program:
    http://otto.homedns.org:8888/iTunes/iPodGetXML.zip
    (If you can't download it, try again later. The connection goes up and down a lot.)
    Now, put the iPod into Disk Mode or otherwise access the iPod as a drive. Make sure you can see hidden files, then go to the drive and the iPod_Control folder and find the iTunesDB file. Copy it to your PC.
    Put the copied iTunesDB file in the same directory as this program, then run the program. It'll read the iTunesDB, get all the playlists, and create an XML file for each one. Now just import those XML files into iTunes to recreate the playlists.
    Notes:
    - The songs in playlist must already be in the iTunes library. If any one of them isn't there, iTunes throws up an error when you try to import the XML file.
    - The song names, artist names, and album names in the library all must be identical as to what the iPod has. If you just copied all the music off the iPod and into iTunes, this will be the case, so it's generally not a big deal. but you'll get an error if it can't find the song in the iTunes library, so it's something to keep in mind.
    - It probably won't be able to cope with unusual characters in song names. Sorry, not worth my time to fix. Dealing with unicode is way annoying.
    - Smart Playlists get changed into regular playlists. It's possible for me to add the smart playlist stuff in there, but it'll take a while to work it all out.

  • Is there a way to move music from my ipod to itunes

    Is there a way to transfer music that I have on my ipod to my itunes

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Is there a way to move layouts from one .ibooks file to another?

    I originally used a combo (landscape + portrait) template, but, due to what I'm guessing is just the situation when dealing with a combo template, when I finished my book and Preview'd it on my iPad, I wasn't able to tap the side of the screen or slide left/right to turn the page when in portrait orientation like a "regular" ebook (I had to swipe up from the bottom of the screen to turn it). Tapping on the side worked in landscape mode, though.
    But I noticed that if I start with a portrait-only template, I can turn the page by tapping/swiping left/right.
    I'd like to be able to use the portrait-orientation layouts I created in the combo document in the new portrait-only document I'm building to replace that one. Is there a way to do that--or are layouts from the two different types of templates not cross-compatible?

    Helo Dave,
    I think you are correct here, iBA seems only able to use one page size and orientation.
    Regards,
    Nigel

  • Is there a way to move contacts from Microsoft Outlook to iphone 4s?

    Is there a way to copy and/or sync contacts from Microsoft Outlook to an iPhone 4s?

    Yes, its tells you how in the User Guide: http://support.apple.com/manuals/#iphone
    Have you not read it?

Maybe you are looking for

  • LR 3.3 crashes when I go to Develop and takes down my whole XP system

    I've been trying out Lightroom 3.3 - first the release candidate and  now the 30 day trial (a week and a half left). The problem emerged  shortly after I installed the final version in mid December, but  continued when I fell back to the Release Cand

  • Skype number not working

    Evening to all. Purchased skype number yesterday, have gone through what I think is all of the replies, and tried them all, my skype number is still always busy..........please help. Thankyou

  • What is in a minimal KDE install?

    Hi all, I love the philosophy of Arch in keeping things simple. I also like KDE and am trying to install as few packages as possible. I know to do a minimal KDE install, I do this: pacman -S kdebase kde-l10n-yourlanguagehere phonon-vlc My question is

  • Do you transport queries or create them in prod?

    We are looking at transporting all queries all the time except special ad-hoc reports. I was wondering how many people out there follow this model as opposed to just creating queries directly in prod. Are there pros and cons to either way? What is th

  • Input variables definition in jobType

    Hello, I am trying to develop new job Type to perform transport of tablespaces and would like to define input variables that can be chosen as oracle_database type for source and target databases. I do not think adding targets to the job will satisfy