Text manipulation

I have a data set that is huge, displaying a list of two numbers, separated by a comma, as in "0.15,1.21". Each number represents an x- and y-coordinate that I want to plot in Numbers. Is there a way I can use Automator to copy each number (separated by commas) and create their own, separate text file so I can just copy and paste each one's contents into two different columns in Numbers. Or... is there a simple way to do this in Numbers or Excel? I don't have time to manually go in and separate several hundred thousand data points!
Thanks,
Eric

Import would be the simplest - or you could replace the "," with a "^t" in word - or you could use an excel formula along the lines of this:
your data in A1
0.15,1.22
formula for the first value in B1
=left(A1,4)
formula for the second value in B2
=right(A1,4)
then fill down for the remainder of the values and the formula will automatically adjust.
likely something similar in pages though I haven't used pages much and I write formulas in excel that would make your head spin.
Above assumes that all the values are 4 digits (including .) separated by , 4 digits
Another option would be to use Alt select in Word to pull out the first half of the data - click next to the top left most value - hold the Alt key - and click and drag the mouse down to the left of the , in the last row - copy switch to Numbers or Excel - paste. repeat for the other data.
Or use a more complex formula in Excel such as = left(A1,len(A1)-find(","A1)) to pull out the first value - and =right(a1,len(a1)-find(",",A1))
or in Excel you can use the import wizard to either specify the separator or use a fixed width position.
or I would imagine there are more complex methods using AppleScript, or the terminal command line, etc.

Similar Messages

  • Text Manipulation and Variable Data in Photoshop

    Our company is getting into variable data printing. There are a few ways to get variable data into photos. I've played with a program called Direct Smile. Its text manipulation tools are rather good. It lays a grid over the text and you can select each grid intersection and pull and push to get the text into the shape you want.
    There are other programs that work through InDesign and Photoshop, using scripts to insert the variable data into the Photoshop text layer.
    When I tried to warp the text in Photoshop I found that beyond a certain point, you have to flatten the text, at which point, it's no longer a text layer that can accept variable data from a database.
    Is there anything like the grid tool in Direct Smile in Photoshop?

    I’m unfamiliar with Direct Smile.
    But for text-manipulation in Photoshop You might want to consider converting the Text to a Smart Object which can then be warped or treated with the Distort-Filter Displace, all the while maintaining the text-layer within the SO and thusly its editability.
    And if I remember correctly one can even make Liquify applicable as a Smart Filter, but one would have to save the Mesh separately … possibly too problematic a solution.
    Or You could go via Illustrator which offers Envelope Distort (which provides a grid-based »plasticity«) and then embed the result thereof as a SO in the Photoshop-file. Unfortunately Illustrator doesn’t Script as comfortably as Photoshop in my limited experience and Envelope Distort my be unscriptable altogether.
    But if I understand correctly You will want to automate all that stuff, so maybe You should check out the respective Scripting-Fora.

  • Need help to start with some file and text manipulation

    Hello script mavens,
    I need help with starting a script that does the following:
    -within a base folder it takes an inventory (list?) of all the files (which happen to be image files).
    -creates a new folder inside the base folder and calls it imagesX where X increases by one every time the script is run
    -moves all the files into the images folder
    -within the base folder it creates a new text file and calls it imagesX.js
    -writes a "//-" into imagesX.js
    -then writes the list of filenames into the imagesX.js twice, separated by an empty line, and adds a semicolon to the end of each filename and saves imagesX.js
    -from a folder a level above the base folder it copies a file called index.html into the base folder and renames in indexX.html
    -in indexX.html it replaces a string "replaceThis" with "imagesX.js"
    The task is more complex but this would help me tremendously do the rest.
    If I am asking for too much on this forum please let me know

    This should get you started.
    The description of how you want to write the data isn't clear, but the rest should work (untested):
    property imageNum : 0 -- last used ImageNumber
    -- within a base folder it takes an inventory (list?) of all the files (which happen to be image files).
    -- get the folder:
    set baseFolder to (choose folder)
    -- now get the files within it:
    tell application "Finder"
    set fileList to every file of folder baseFolder as alias list
    end tell
    --creates a new folder inside the base folder and calls it imagesX where X increases by one every time the script is run
    tell application "Finder"
    set imageNum to imageNum + 1
    set newImageFolder to make new folder at baseFolder with properties {name:"images" & imageNum}
    -- moves all the files into the images folder
    move every file of folder baseFolder to newImageFolder
    --within the base folder it creates a new text file and calls it imagesX.js
    set textFile to (open for access file (baseFolder as text) & "images" & imageNum & ".js" with write permission)
    --writes a "//-" into imagesX.js
    write "//-" to textFile
    -- then writes the list of filenames into the imagesX.js twice, separated by an empty line, and adds a semicolon to the end of each filename and saves imagesX.js
    -- need more info here
    -- a blank line between each instance of the file name? or all file names, blank line, all file names again?
    -- an example, please
    close access textFile
    --from a folder a level above the base folder it copies a file called index.html into the base folder
    --and renames in indexX.html
    --in indexX.html it replaces a string "replaceThis" with "imagesX.js"
    -- the easiest way of doing this is to read the file and write a new copy with the changes - that's easier than changing it in situ:
    set indexHTML to (read file "index.html" of folder (container of baseFolder))
    set {oldTIDs, my text item delimiters} to {my text item delimiters, "replaceThis"}
    set indexHTML to text items of indexHTML
    set my text item delimiters to "imagesX.js"
    set indexHTML to indexHTML as text
    set my text item delimiters to oldTIDs
    set indexFile to (open for access file ("index" & imageNum & ".html") with write permission)
    write indexHTML to indexFile
    close access indexFile
    end tell

  • New to After Effects - need help with text manipulation!

    Hi all, I'm new to AE and this forum and I'm looking for some advice. I've been asked by the boss at work to create a short video clip, around 10-15 seconds, where text is displayed on the screen (3 words), after the few seconds, I want a 'forging' noise to happen and the final word in the text to be changed to another word and have a metallic effect applied, similar to the effect in this tutorial:
    Create Hot Metallic Text in After Effects - After Effects - macProVideo.com Hub
    Will this be difficult to do and do you guys think a complete beginner like myself can do it? I've got a lot of experience with the likes of PS, so I'm not too shy with Adobe software.
    Thanks,
    John

    johnster1991 wrote:
    Thanks for the advice, I appreciate it. So will it be difficult to have one word of text come onto the screen and overlay on top of the existing text, as if it's crashing over it? Any ideas on the steps I would use to do this? Thanks
    As you begin your career of using AE, you will change your vocabulary. Overlay will be replaced with spatial references like in front or behind.
    Designing text with surface styles like chrome or metal is not difficult. You can even import them from Photoshop if you have some PS chops or friends who can do it quickly.
    TEXT ONE can be easily replaced with TEXT TWO in any of dozens of different ways but to drop TWO in front of ONE is easy, you're just setting position keyframes. The finesse of animation, though, lies in the illusion of motion, exaggeration, overshooting and recoil. Your TWO could fall and squish and rebound and bounce or it could raise a dust cloud as it hits or it could make the camera wiggle. These are the things that separate simple key framing from animation and motion graphics.

  • Please help with Text Manipulation

    I am trying to display text in a fixed frame in Reports 9i.
    Example:
    Assuming Fixed Display Text Area in Report = 5 lines x 100 characters
    Text field in database has capacity of 4000 characters(which is free form text entered by user and can contain tabs/carriage return etc)
    How do I read from the database text field to display only the text that would fit in the fixed frame on the report. And I need to display the remaining text in the subsequent pages of the report.
    Ideally 5 lines of text would mean 500 characters, but this can vary based on existence of tab spaces or carriage returns.

    Hi,
    You'll want to post here instead:
    Reports
    -Ron

  • Header text manipulation (VA22)

    Hi,
    Is there any way we can manipulate header texts in sales documents in runtime, i.e can I fill the header texts through userexits while users use va21 or va22 ?
    Complete scenario:
    We have not configured text determination because the there are no fixed rules mentioned by our client.
    Hence the users are keying in text based on some other characteristics.  Once the quotation is final then they need to change the customer number in VA22 which is wiping off the texts.  Now I need to fill that text box with the texts keyed in while creating the quotation.  I can read the texts using the function module "READ_TEXT" but the question is how can I fill the textarea so that the user can modify the text before saving.

    Hi Neo!
    I searched a little in SAPMV45A, in SMOD and SE18 - but I didn't found a usefull exit in sales order transaction. Of course something can be done in 'at save', but I don't see an exit early enough (like 'move field to vbak') which has a connection to the text editor.
    Header texts are displayed in a different report (SAPLV70T) and it's using objects -> no change of global data in SAPMV45A possible. There is an exit EXIT_SAPLV45T_001 in enhancement V45T0001 - try it, I don't know if it's only for checks (PAI, no changes).
    If the customer needs this functionality at all costs: make a separate transaction where you input quotation number, new customer number; ENTER: read text, change quotation, save text; call transaction to changed quotation stopping at error (and just fill entry screen).
    Regards,
    Christian

  • Powershell Text Manipulation Against Robocopy

    Hello,
    I am using robocopy and would like to do a through analysis of the log file rather than on the robocopy exit codes... not sure if anyone has any better ideas.
    robocopy c:\testpath\test\downloads c:\local\downloads /LOG:c:\local\report.txt /MT:16
    ok, so that's my copy.
    $results = (Get-Content C:\local\report.txt)[-4 .. -4]
    OK, so now i have the line on the text file i want to compare which is the bytes Total,Copied,Skipped,Mismarch, Failed, Extras
    So they don't all always get populated, in this example total and copied are populated and return in my variable as below.
       Bytes :  871.09 m  871.09 m         0         0         0         0
    Now what i want to do is to turn each of the figures on this line to a separate variable so i can then do some calculations before proceeding.
    I did a -split however it's a bit all over the place and not sure how to sort this.
    $results -split "  "
     Bytes :
    871.09 m
    871.09 m
     0
     0
     0
     0
    Then i dropped that into a file using out-file and ran the below as it wouldn't let me simply pass the parameter into the command.
    (gc c:\local\narrowed.txt) | ? {$_.trim() -ne "" }
     Bytes :
    871.09 m
    871.09 m
     0
     0
     0
     0
    Then ran this
    $single | select -skip 1
    871.09 m
    871.09 m
     0
     0
     0
     0
    Great now i want each of those lines as a variable.
    Anyone have any ideas how i can pull each number out of this line so i can pass them as different variables?
    Many Thanks in advance :)

    Maybe this will help:
    $result = (cat d:\report.txt | ? { $_ -like '*Bytes :*' }) # change for your language
    $values = @()
    $result | Select-String -Pattern "\d{1,}([.]\d{1,})?" -AllMatches | % { $values+=$_.Matches.Value }
    $Total = $values[0]
    $Copied = $values[1]
    $Skipped = $values[2]
    $Mismach = $values[3]
    $Failed = $values[4]
    $Extras = $values[5]
    Write-Host ("Total: $Total, Copied: $Copied, Skipped: $Skipped, Mismach: $Mismach, Failed: $Failed, Extras: $Extras ")

  • Text manipulation with tr or sed or ... help needed ...

    Dear All,
    I need to get the following ...:
    HELP\nME ==> remove \n
    HELP \nME ==> do nothing
    HELP\n ME ==> do nothing
    HELP \n ME ==> do nothing
    I know that I can easily remove all '\n' with "tr -d '\n' <infile.txt >outfile.txt", but this is a little different ;-)
    Best, and thanks in advance, Peter

    If this what you need:
    [kido@kido ~]$ cat help.txt
    HELP\nME
    HELP \nME
    HELP\n ME
    HELP \n ME
    [kido@kido ~]$ sed 's/HELP\\nME/HELP ME/g' help.txt
    HELP ME
    HELP \nME
    HELP\n ME
    HELP \n ME
    OK, seems like the portal has serious text formatting issues.
    Let me put the command this way:
    $ sed 's/HELP_backslash_backslash_n_ME/HELP ME/g' help,txt
    Replace "backslash" word with the corresponding sign; Please not that between HELP, backslash and backslash there are no free spaces; I used "_" just to mark the boundaries..
    Regards,
    kido
    Edited by: kido on Jul 30, 2009 10:05 AM

  • JTree text manipulation

    I am running the standard example from Java with only two lines changed:
    http://java.sun.com/docs/books/tutorial/uiswing/examples/components/TreeIconDemo2Project/src/components/TreeIconDemo2.java">JtreeDemo2.java
    {code}
    public Component getTreeCellRendererComponent(
    JTree tree,
    Object value,
    boolean sel,
    boolean expanded,
    boolean leaf,
    int row,
    boolean hasFocus) {
    super.getTreeCellRendererComponent(
    tree, value, sel,
    expanded, leaf, row,
    hasFocus);
    if (leaf) {
    setTextNonSelectionColor(new Color(255, 0, 0)); //-->change text color to red if leaf
    setIcon(tutorialIcon);
    setToolTipText("This book is in the Tutorial series.");
    } else {
    setTextNonSelectionColor(new Color(0, 255, 0)); //-->otherwise change color to green
    setToolTipText(null); //no tool tip
    return this;
    {code}
    When I run the program the red and green color of a node change depending on what I select. Any ideas?

    So oddly enough I changed my code to:
    public Component getTreeCellRendererComponent(
                                JTree tree,
                                Object value,
                                boolean sel,
                                boolean expanded,
                                boolean leaf,
                                int row,
                                boolean hasFocus) {
                super.getTreeCellRendererComponent(
                                tree, value, sel,
                                expanded, leaf, row,
                                hasFocus);
                if (leaf) {
                    setIcon(tutorialIcon);
                    setToolTipText("This book is in the Tutorial series.");
                    setForeground(Color.red);     
                } else {
                    setToolTipText(null); //no tool tip
                    setForeground(Color.green);     
                }and it worked. I still don't know why it didn't work the previous way. Anyhow if anyone else has a similar problem the above change worked for me.
    Edited by: shays on Jun 29, 2009 3:13 PM

  • No Text Manipulation buttons (ribbon)?

    This is the first time I've actually tried to edit content in a .pdf using Adobe Acrobat X Pro.
    Ok so you can use the "Edit Document Text" tool under the Content context menu.   But I see no buttons at the top of Acrobat...stuff you normally see in word processor apps.  You know your typical Bold, font change dropdown, etc.
    So I see you can change the text by right clicking and going to properties of the highlighted text.  There you can do all that.
    Is this the only way?   I pray not.
    Unless I'm missing it, I see no bar at the top that I can enable that gives me formatting buttons in Acrobat.

    The usual complaint was, in the good old days, that PDFs couldn't be edited at all. And now we've come so far ...
    Given the enormous number of document types that can be saved as PDF, Adobe might want to build in the complete functionality of Word (grammar checking, Annoying Clippy, etc.), InDesign (for serious page layout work), Illustrator (after all, the file might contain vector images), Photoshop (the same for bitmaps), Maya/3DS or a similar 3D editor (you might have an embedded 3D image), Premiere (a PDF can contain movie clips) ... Wait, you can also embed Flash. Add a Flash editor, please. Oh, and sound. Uh. Sound Booth? Anything more?
    They can also decide that it's up to the user to decide if it's worth his time to re-do stuff one character at a time or simply re-create the entire PDF from the original file. So far, this seems to be winning.

  • Text Manipulation in Pages

    Is there any way you can alter text in Pages, similar to the WordArt function in MS Word? For example, arched or wavy text? Thanks!!

    Look here:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=71&mforum=iworktipsn trick
    and
    http://www.macupdate.com/info.php/id/23541/art-text
    Consider the Swift Publishing + Art Text bundle, together they make an excellent DTP solution.
    Peter

  • Text manipulation within 1 string

    Hi I have a database with thousands of horse race result
    records with the following layout
    horsename odds (country)
    i.e Wollow 9-0 (USA)
    I want to split it into 3 seperate fields, and I need a
    coldfusion script to
    1. strip first the country (anything in brackets at the end
    of the string - sometimes country is not present so check for
    brackets will b required)
    2. script that strips the "odds" and puts in a seperate field
    (I guess this will be done by checking for anything after first
    space working from back from the end of the country removed string)
    - sometimes there are no odds so check for last character of string
    as numerical
    many thanks

    maxspeed, this will take a lot of string manipulation to
    counter all the variables you may run into.
    I had an issue like this with a person's name and having to
    split into first, middle int., last and suffix. The way to approach
    this is to look at the data as a string with SPACE delimeters but
    you need to replace some of the spaces with a real delimeter in
    order to separate the fields.
    What you first need to do, is evaluate all the possibilities
    of data formats--single name horse, odds, country--double name
    horse, odds, country---double name horse, country, etc.
    You MUST find a constant, or at least an easily matched list
    of variables (for me it was suffix--jr., sr., II, III, IV, etc.)
    and work from there.
    If the country will always be in () or [ ] , you can search
    for that, extract it and set the #country# value and replace it
    with nothing. This shortens the string with the country variable
    now defined and you can work on the odds.
    The odds should (hopefully) have some sort of delimiter (9-0,
    5to1, 7 to 2) so you can search for the - or the 'to' and extract.
    This only leaves the horse name.
    I could post my code but it would take you longer to figure
    out what I did and how to apply it to your project (with a LOT of
    changes), but I recommend researching all the replace, find and
    listcontains tags and start testing.
    With no set data format, you will need to build a huge
    <cfif> function to separate all the values taking into
    account all the data variables.
    Good luck but with some planning you will put it
    together.

  • Text Manipulation in Flash CS4

    I have many text elements in my flash file - how do I modify the text to make it all caps? Is there an easy way where I can select all of them in one go and make them all caps?

    Thanks for helping out. I looked up the text element in JSFL and it's subclasses and their properties. I can't find the property related to uppercase/capitalization. Could you let me know if you're aware of anything I'm missing? Sorry if I'm bothering you but to be honest I'm too lazy to change every text box.
    38. Text
    Subclass of Element; a text field on the Stage
    Methods
    Name
    Args
    Description
    getTextAttr
    attrName [, startIndex] [, endIndex]
    Returns the specified text attribute
    getTextString
    startIndex, endIndex
    Returns the text string contained in the specified range
    setTextAttr
    attrName, attrValue [, startIndex] [, endIndex]
    Sets the specified text attribute
    setTextString
    text [, startIndex] [, endIndex]
    Sets the text string within the text object
    Properties
    Name
    Description
    accName
    Name of an object, used by screen reader
    autoExpand
    If true, the bounding width expands to display all text
    border
    If true, displays a border around dynamic or input text
    description
    Description of the object, used by screen reader
    embeddedCharacters
    Embeds all specified characters
    embedRanges
    Specifies ranges of characters to embed
    length
    The number of characters in a text object
    lineType
    The type of text line
    maxCharacters
    Specifies the maximum characters
    orientation
    Specifies the orientation of the text
    renderAsHTML
    If true, text renders as HTML
    scrollable
    If true, text can be scrolled
    selectable
    If true, text can be selected
    selectionEnd
    Offset of the end of a text subselection
    selectionStart
    Offset of the beginning of a text subselection
    shortcut
    An object's shortcut key
    silent
    If true, object is not read by screen reader
    tabIndex
    tabIndex value of an object
    textRuns
    An array of TextRun objects
    textType
    The type of text field
    useDeviceFonts
    If true, renders text using device font
    variableName
    Stores the contents of text field in a variable name
    39. TextAttrs
    Subclass of TextRun; contains properties applicable to a subselection
    Properties
    Name
    Description
    aliasText
    If true, text renders aliased
    alignment
    Paragraph justification
    autoKern
    If true, pair kerning is used
    bold
    If true, text is displayed as bold
    characterPosition
    The vertical position of text
    characterSpacing
    Integer representing the space between characters
    face
    The name of the font
    fillColor
    A hexadecimal color string
    indent
    Paragraph indentation
    italic
    If true, text is displayed in italics
    leftMargin
    A paragraph's left margin
    lineSpacing
    A paragraph's line spacing
    rightMargin
    A paragraph's right margin
    rotation
    If true, characters are rotated 90 degrees
    size
    The size of the font
    target
    The string for the target
    url
    A string representing an URL
    40. TextRun
    Subclass of Text; a string of characters
    Properties
    Name
    Description
    characters
    The text contained in a TextRun object
    textAttrs
    TextAttrs object containing the attributes of a run of text

  • Macro Text manipulation functions

    Hi Folks,
    I want to write a MACRO in DP based on the first character of the planner key. Need to calculate if my planner key is 'H*'. The planner key is three characters as given below.
    HGK
    H1R
    HWK
    T1R
    T2E
    T3W
    I need to do a calculation for all  the materials whose planner key starts with 'H'.
    The logic of the conditon will be like
    If (SNP Planner Key = 'H*' ) then
    Endif
    Is there any way to manipulate text in the macro something like TRIM or extract or is there any other way to achieve this?
    Thanks & Regards,
    Vasudevan

    Hi Vasudevan ,
    Check if the  VALUE_CONTAINED() function can be used to satisfy your requirement. I have not used it before , but it looks like your requirement could be satisfied using this function.
    I checked in my test system using wildcard * , but for some reason the wildcard option is not working. Try value_contained in conjunction with MATLOC_C function and check if it works.
    Thanks
    Aparna

  • Basic text manipulation tutorial

    I do not have any experience with Graphics... could any one point me in the direction of a good basic tutorial...
    all I want my code to be able to do is take a String rotate it 90 degrees and save as a gif, or jpeg...
    this seems like it would be a very easy task however I do not know where to start... any suggestions are appreciated...
    thanks

    This may be a little late, but this PDF document describe what you are looking for:
    ftp://ftp.java.sun.com/docs/j2se/1.4/j2d-book.pdf
    - bjorn

Maybe you are looking for

  • Pictures in WPC pages cannot be shown suddently!

    Hi gurus, I finally figured out the anonymous access of our external portal(EP 7.0 SP13 on solaris) last night, and all our WPC pages can be seen with anonymous user. But this noon, suddently the logon screen went out when we access it. We don't know

  • Table and Table maintenance  authorization

    Dear Experts, I have a requirement where, I have to create a table with where the table content  be displayed using SE16 and have a table maintenance which is given to only specific users. Request you to please suggest. Warm regards, Upendra Agrawal

  • Dynamic Column choices Analyzer 72 with HFM

    Does anyone know how to setup a tabbed report group to show three different generations of the Period dimension in HFM? I would like to have a set of three radio buttons that let the user choose whether they would like to see 12 monthly columns, 4 qu

  • Windows 8.1 mail app suddenly can't login

    Up until just about an hour ago, the simple modern UI version of Mail worked with my icloud mail account. Now it won't.  Tells me to check settings and login with the login/password combo.  I did that, but it rejects it though the login info I'm givi

  • Why is everything static?

    Hey I'm trying to split some code from 1 class into a couple other classes.. not adding any new functions just moving it around so my classes have a better overview now while trying to do that I moved some code.. figured I don't have the same buttons