How can I remove all returns within the text?

I copied and pasted text onto pages from the internet, but the text does not go all the way to the end of the set margins that i have on Pages, instead it goes about halfway or so and begins on a new line. how can i remove all of the spaces between the words so that it runs the full length of the page.
It blows my mind that i have to resort to seeking help on the apple forums for this problem, it seems like something so simple would be a standard feature when adjusting text on the page. The only thing that could frustrate me more is if it impossible to do on this software, or if it is simple to do and I was too stupid to figure it out. If it is impossible then I'm **** out of luck because the document is just to **** long to sit there for hours and manually delete every single last return.

Not to preempt your fun of playing with AppleScript, but here's my take on it:
tell application "Pages"
    tell document 1
        -- Make sure there's no selection
        select insertion point before character 1
        set cc to count characters of body text
        set returnOffsets to (character offset of every character where it is return)
        -- Reverse order, since deletion would alter all subsequent offsets
        repeat with n in reverse of returnOffsets
            if (n > 1) then
                if n < cc and character (n + 1) is return then
                    -- Treat double returns as a true paragraph break.
                    -- Delete the extra.
                    delete character n
                else if character (n - 1) ≠ return then
                    -- Change single returns into spaces.
                    set character n to " "
                end if
            end if
        end repeat
    end tell
end tell

Similar Messages

  • How can I remove all data from the iPhoto app?

    I wanted to reset my iPhoto library and remove all places, faces and events recognized from the pictures, so I copied my iPhoto library to a hard drive and then deleted it and emptied the trash. Copied the data to iPhoto again and took a look. The library was exactly the same. When I saw my activity monitor I realised there were just 12 gigabytes remaining in my hard drive (I'm using a 128GB Macbook Air) and before doing all this there were 47 gigabytes remaining. My iPhoto library is about 35GB, and I think I didn't replaced the library, I duplicated it. I'd really like to know if someone can help me finding the other library and deleting it, because I'm getting out of space in my mac.

    Your post is not clear
    I wanted to reset my iPhoto library and remove all places, faces and events recognized from the pictures, so I copied my iPhoto library to a hard drive and then deleted it and emptied the trash.
    OK
    Copied the data to iPhoto again and took a look.
    Exactly what does this mean?
    Probably your best bet is to run your iPhoto library on an external drive
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • HT5622 We have two iphones with the same Apple ID. Since I installed iOS this morning I have started receiving all my sons texts and when I send him a text it is delivered to both of us. How can I remove my phone from the joint Apple ID and remove myself

    My son and I both have iphones with the same Apple ID. Since I installed iOS this morning I have started receiving all my sons texts and when I send him a text it is delivered to both of us. How can I remove my phone from the joint Apple ID and remove myself from finding out what he is up to during Freshers week!

    You have to use a different Apple ID for your son.
    Read this note:
    iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family
    still valid for ios 7

  • 5.0 and 6.0 became entngle, and neithr will start. How can I remove all traces of Firefox and do a "clean" reinstall? Mozilla dosn't appear in Add/Remove Programs, and the uninstaller must've left something behind...

    I tried deleting the Firefox folder as well, but after reinstalling Firefox 6.0, I continue to get a Run error message saying essentially that 5.0 & 6.0 aren't compatible. So, how can I remove all versions from all locations and start fresh?

    I tried deleting the Firefox folder as well, but after reinstalling Firefox 6.0, I continue to get a Run error message saying essentially that 5.0 & 6.0 aren't compatible. So, how can I remove all versions from all locations and start fresh?

  • How can I remove all photos and directories from iPhoto?

    How can I remove all photos and directories from iPhoto as if it was a brand new install?
    I am new to iPhoto and was unaware of how it works, honestly I still am a little confused as to when pics I am using 1/2 the time, some from iPhoto and some from MyPics.
    Anyhow, I am looking to remove all photos from iPhoto because during the migration of all my photos from PC to MAC, somehow my timeline became messed up and all my photos that have been logged my dates since 1998 are now all messed up.
    Although all my year folders are still in tact, IE 1998-2006, the subfolders and like pics are all intertwined somehow.
    And when I search iPhoto for a given year, photos from 2,4, 8 yrs back show up in 2006.
    Anyhow, I have selected and deleted all photos and folders within iPhoto, and then import the desired photos from MyPics, only to have the photos double up in the library. ( The old ones that should be deleted and the new imports)
    I simply don't get it, they fill the trash and disappear when it's emptied, then reappear when iPhoto re-opens!
    Can someone help????
    I have completely reworked all my photos so that they are all in the correct folders outside of iPhoto, and now I want to import those and only those pics with that file structure.
    IE Structure = YEAR > MONTH > DAY ( or if needed) > DAY/EVENT

    Do you want to remove the existing full sized image files also? If so then just drag the iPhoto Library folder from the Pictures folder to the Trash and empty it. But be warned you'll lose all of your image files.
    You are dragging the files to the iPhoto Trash bin and then using the iPhoto->Empty Trash menu, right?
    In copying your photos to myspace and then back the original capture date may not be retained and then either the created date or modified date will be used by iPhoto. If the files in the current library are the originals from your camera then those have the best chance of retaining the correct Captured Date. You can check that out by dragging the Originals folder from your iPhoto Library folder to the desktop and then trash what remains of the iPhoto Library folder. Then launch iPhoto and it will ask you to create an new library. Then import that Originals folder and it's subfolders by dragging it into iPhoto's open window. You'll keep the same rolls that was. The roll dates may change but you can check the captured date of the files by using the calendar in the Source pane.
    You won't be able to keep your folder structure within iPhoto. Each outside folder will result in a roll with the same title as the folder. You'll be able to create folders in the Source pane to put albums inside. You can create a smart album to include all photos in a certain date range, line one month.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.7)   22 LCD Display, 200G & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

  • How can I remove multiple copies of the same song from the iTunes listing?

    How can I remove multiple copies of the same song from the iTunes listing. The program seems to be picking up the same songs from, for example, my user area and my public area in the C drive

    As above, Apple's official advice is here... HT2905 - How to find and remove duplicate items in your iTunes library, however it is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve/merge ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • I unfortunately just got my IPhone 4s stolen.I thought I had the find my iPhone enabled but I didn't because I cannot locate the phone when I sign in ICloud.How can I erase all data on the phone so the thief can't access my personal information.

    I unfortunately just got my IPhone 4s stolen.I thought I had the find my iPhone enabled but I didn't because I cannot locate the phone when I sign in ICloud.I have a password on the phone but i'm not sure if I turned on the option where the phone resets if you incorrectly put the password more than ten time. I immediately called my phone company (Verizon) and reported the phone stolen.So I know whoever took the phone cannot place calls or use the phone. But can they still access my data on the phone if they manage to unlock the phone?  If so how can I erase all data on the phone so the thief can't access my personal information? is there any other way other than Find my IPhone to wipe off the data on the phone? I really don't want my personal information such as pictures, text messages, notes and social networks profile available to a stranger!!? Help please!!!

        Hello thewrongway,
    I'm sorry to hear about your phone!  I understand the need for an active device. You are able to activate an old device and process an insurance claim for your iPhone 4s within 60days from the incident date.  Keep in mind if the old phone is not a smartphone and you currently have unlimited data that feature will fall off.  If you have a tier data plan no changes will be made.  Please let me know if you have any additional questions.  Thank you.   
    TominqueBo
    VZW Support
    Follow us on Twitter at @VZWSupport

  • How can I remove all photos from my iphone?

    How can I remove all photos from my iphone?

    Hi pjdemeo,
    I understand you want to delete all of the photos from your iPhone.  As a precaution, I would suggest importing the photos and videos from your iPhone into your computer.  This will give you a backup for the images, and after import you will be asked if you want to delete the photos.
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    https://support.apple.com/en-us/HT201302
    The iPhone User Guide has instructions for deleting photos directly from the device:
    Organize photos and videos - iPhone
    http://help.apple.com/iphone/8/#/iphf14943e
    Delete a photo or video from Photos. Tap the Photos tab, tap the photo or video, tap , then tap Delete Photo or Delete Video. Deleted photos and videos are kept in the Recently Deleted album on iPhone, with a badge showing the remaining days until the item is permanently removed from iPhone. To delete the photo or video permanently before the days expire, tap the item, tap Delete, then tap Delete Photo or Delete Video. If you use iCloud Photo Library beta, deleted photos and videos are permanently removed from all iOS 8.1 devices that use iCloud Photo Library beta with the same Apple ID.
    Cheers,
    - Judy

  • How can I remove all my preferences and settings from mail and do a clean install of mail app?

    How can I remove all my preferences and settings from mail and do a clean install of mail app?

    Open mail > Preferences > Accounts
    Select the account and click the minus button at the bottom of the column.
    Quit mail
    ~/Library/Preferences/com.apple.mail.plist move this file to the trash and empty it.
    ~/Library/Mail/ and move all of the items in that folder to the trash and then empty it.

  • How can i remove all contact at once from ovi?

    after synchronise with ovi & my mobile how can i remove all contact from my ovi's contact.
    I can remove one by one but i want to remove all at once. how possible??
    Solved!
    Go to Solution.

    @tkwcare:
    Beware of that method. Restoring your contacts after sync'ing will restore the phone to a state with a timestamp prior to when the sync occurred. Sync'ing again will attempt to bring the phone up to date with the online resource and, in doing so, will delete all the contacts off the phone!
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • How can I delete all items on the "Done" list in Reminer-App? There are meanwhile hundreds of items (shopping, appoitments, ...) and I don't want to spend hours deleting them.

    How can I delete all items on the "Done" list in Reminer-App? There are meanwhile hundreds of items (shopping, appoitments, ...) and I don't want to spend hours deleting them.

    You can't remove the built-in root certificates, but you can remove their trust bits via the Edit button to prevent Firefox from using them as a trusted root certificate.
    Intermediate certificates that Firefox has stored when visiting websites that show as "Software Security Device" should never has trust bits set.
    Note that it is the responsibility of a server to send all required intermediate certificates to make it possible to build a certificate chain that ends with a built-in root certificate.

  • HT5557 how can you remove all books from books purchased file

    how can you remove all ibook from purchased file

    When I connected my iPhone, it automatically synced right away. I did click on the iPhone button and saw the contents of my iPhone including the Books. When I clicked that 'Books' button. But since the book in question was not on my iPhone, it did not show up in the list so I could not select it like you suggested. Therefore I could not sync that book to my iPhone. Thanks for the help though.
    The good news is I did manage to get the book on to my iPhone.
    When her book came out for preorder about a year or two ago, I looked for it in the iTunes store and preordered it. About a week after it came out, I found what was basically the same book for a dollar more. ($7.99 and $8.99) I figured there must be something additional (features) in the $8.99 book. So I bought it too. As far as I could tell though, they were exactly the same. So I decided to hide one of them so they would not both show up in my Library. Anyway, I went to my iTunes/iBooks account and managed the hidden books area. I unhid the Demi book and then it showed up in my iCloud to download on my iPhone. Now they are both on my computer so I need to figure out which one is the other one and hide it. So then I can delete it from my computer just have the one that is on my iPhone on both systems. But at least I found a way to get a copy on my iPhone.

  • When importing songs of a same album but different artist iTunes will separate the artists. How can I bring all together in the same album?

    When importing songs of a same album but different artist iTunes will separate the artists. How can I bring all together in the same album?

    Generally setting a common Album Artist will fix things. For deeper problems see Grouping tracks into albums.
    tt2

  • How can I get all photos from the camera roll onto the photo stream so they will share between iphone and ipad?

    How can I get all photos from the camera roll, and all new pictures taken, to get on the photostream so they can share between iphone and ipad?

    When turning PhotoStream on with photos available in the Camera Roll, only photos captured by the iPhone or saved on the iPhone are placed in the PhotoStream.
    For all photos that were in the Camera Roll prior to turning PhotoStream on, import the photos with your computer and add the photos to your PhotoStream on your computer.

  • I have three different listings for Bob Seger on my iPod (bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    I have three different listings for Bob Seger on my iPod (Bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?

    Can you just create a new "Playlist", name it Bob Seger and drag what you want into the Playlist.
    File/New Playlist

Maybe you are looking for

  • How do I tell my clients to configure the connectionstrings for a cloud service?

    I have an application that exists in two forms A Windows Service A Clouse Service with a Web Worker Role Both applications have an encrypted connection string in the app.config; for clients using the Windows Service I know how to tell them to change

  • Blank space in report builder

    Hi, Please help me in the following Example COL1 COL2 COL3 COL4 In oracle report builder I want to disable the column COL2 under some conditions. I made it.The output looks like this. COL1          COL3  COL4 But after doing that I am getting more sp

  • I tunes wont recognise internet connection

    i am trying to use the radio service... but everytime i select the radio option in itunes it comes up with a popup saying that it cant recognise my internet connection and to reconnect.... any tips or helpers would be awesome cheers patrick

  • How to Attach a File Without Embedding It on Mail?

    How to Attach a File Without Embedding It on a Mac? Tamer is not working and I prefer not to use TERMINAL (defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes) Right click send as icon is not a solution. Any other options? Thanks!

  • Volume Header & Kernel Panic - Related??

    Hello! I am a fairly new Apple user and my Intel iMac has been running great - so these two seemingly unrelated issues that suddenly popped up this week have me a little panicked, so please bare with me :P This is what happened, in order, and my main