Numbers '09 2.1 - setting import delimiter for .txt or .rtf

Hi there -
I have a series of text files with leading numbers that I'd like to remove. The files are lists, where each line is enumerated sequentially & these line-numbers have to be removed for further processing.
This is too painful to do manually (takes forever), but the content is not in English and so Excel, which allows me to set the delimited & correctly parses the information, doesn't read the content properly (even after copy paste into a word processor that usually does) whereas Pages will handle the content, but for the life of me I can't get it to parse the information - so it's effectively useless.
The other threads I've read basically suggest that one has to manually insert tabs between the fields - is this actually the case? Is there really no way to control how Pages '09 parses imported data?
As a final add-on: I know this would be relatively easy to do with a script, but I havne't a clue where to get started with scripting for the Mac, so if you read this & have a suggestion as to where I might get started (generally, or w.r.t. this particular project), I would very much appreciate the enlightenment.
Thanks in advance and all the best,
Rax

If the leading numbers are separated from the rest of lines by space character, you file is not a tab delimited one.
If a file whose name ends with .txt is a tab delimited one, it may be opened by Numbers with no problem.
If its name ends with .csv, thingsa re more complicated.
If the system use the period as decimal separator, the values MUST be separated by commas
but
if the system use the comma as decimal separator, the values MUST be separated by semi-colons.
I have a possible understanding of your problem.
Maybe values are separated by single or several spaces which is the awful format used in the typewriter era.
I guess that with this structure, Excel use its knowledge of English language to split the lines.
As I don't like to work in the Terminal, I wrote a short script achieving what you described.
--{code}
set fichier_source to choose file with prompt "Select a text file" of type {"public.plain-text"}
set le_fichier to POSIX path of (fichier_source as text)
do shell script "sed -i.bak -e 's/^[0-9]* *//' " & quoted form of le_fichier
tell application "Pages"
  open le_fichier
end tell
--{code}
Yvan KOENIG (VALLAURIS, France) mardi 25 octobre 2011 00:03:57
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community

Similar Messages

  • Setting Importance Level for a email message using javax.mail.* API

    Setting Importance Level for a email message using javax.mail.* API
    From what I understand we can set Flag on Email Message. How can we set Importance Leve: High/Low for an email message?
    Thanks
    Purvi

    Most of the message Flags work only for IMAP mailboxes. POP3 supports only the DELETED flag. It must be understood that Javamail is a framework which provides all the features available in a standard mailing system. But whether or not a particular feature works is a functionality of the particular implementation being used.
    Thus for example POP3 cannot differentiate read from unread messages in a mailbox though Javamail provides that feature.

  • Unable to set import lock for software component version

    Hi team,
    While importing object (.tpz) file into integration repository we are getting error message as below.
    ======
    Unable to set import lock for software component version <XXXX>-COMMON,1.0 of <XXX>.com because user <userid> is currently importing data to this component
    try again once user <userid> has finished importing data
    =======
    We checked with the user and found he is not doing any activity in fact he logged off. the developer wants to import and how do we terminate this import attement and proceed with new importing of the  same object
    We wan't to avoid cache refresh as this is production environment
    We already performed clear SLD data cache with in the IR not for whole.
    Thanks
    Vijay

    Hi Vijay,
        Thefollowing threads speak about the locking issues with the IR objects .Hope this will help you out in resolving the issue.
    http://help.sap.com/saphelp_erp2005/helpdata/EN/93/a3a74046033913e10000000a155106/content.htm
    Internal lock version management : Unable to copy objects
    Thanks,
    Ram.

  • Problem with XI objects transport - Unable to set import lock for SWC

    Hi guys!
    I try to import objects from dev to qa but I'm getting following error:
    Unable to set import lock for software component version SWC_xxxx , 1.0 of company.com because user OSALUDEW is currently importing data to this component Try again once user OSALUDEW has finished importing data
    The problem is, I'm not importing anything.. Well, I try to import, but something is hanging there from previous time.
    How to solve this issue?
    Thank you!
    Olain

    Well,
    I closed all the applications - repositories (dev, qa), directories (dev, qa), then started qa repository again and imported the objects successfully
    ....hmmm....
    Olian

  • I wander where to set import job for transports

    I wander where to set import job for transports to be imported automatically. On transport domain controller I can not manage other job than the one for the system itself.
    On the system which is not transport domain controler I have only display function

    are you asking for 'automatic import' in QAS/PRD ?
    When you go to STMS import queue in a particular system like QAS, there you can see a button 'import all'. This will enable to you schedule automatic import periodically in intervals for eg. 15 min or whatever you want.
    just click on import all and it will ask for inputs and schedule
    OR, do you want to confirm for RDDIMPDP job ?
    Run report RDDNEWPP to schedule RDDIMPDP
    Edit: Note 11677 - Transports with event-controlled RDDIMPDP

  • Samsung Stratosphere set own ringtone for txt and pic messaging??

    I have been able to set my own ringtones for Email alerts but can't figure out how to set my own ringtones for txt msgs other than the ones already on the phone.
    for email alerts I went to My Files app and found the music i wanted that i put in folder saved ringtones..  The I hit the menu button on bottom left of phone and selected Set as. And chose Phone ringtone.
    Just can't find similar path to set for Txt and Pic messaging.

    Go to Messaging. Then Menu > Settings, and scroll down to the Notification settings area, where Select ringtone is an option.

  • How do I set the delimiter to Tab in a etext template?

    HI , I would like to set a tab delimiter for an etext rtf template. Does any one know what section do I enter the parameter to do this (format,data level, detail, does it matter)? Also what is the correct snytax and the value for the tab delimiter? Thanks in advance!
    Matt

    I'm just starting a sizeable eText setup and I agree it's not documented well. I found useful analyzing the XDO file, which is created off the RTF template and used to actually process the XML data. Gives more clues on how the RTF needs to be structured. Issues I'm running into is that the RTF->XDO conversion is what it is, so there may be a need for custom pre-post- update of the XDO and/or the final output. But still beats formatting by hand.

  • Setting paper size for multi-tab numbers file?

    i have a (currently) 3 tab spreadsheet that someone is working with me on. two of the tabs i print to 12 x 18 and one of the tabs i print to 8 x11.
    right now i have to open inspector, set paper size to 8 x 11, go to print view and slider-scale to appropriate size so it will print to single width, open print dialog, select 8 x 11 printer, print the pages from this tab. then i go back to inspector, select 12 x 18, select next tab, go to print view and slider-scale to appropriate size so it will print to single width, open print dialog, select 12 x 18 printer, print the pages. then i select the next tab, go to print view and slider-scale to appropriate size so it will print to single width, and run a print to 12 x 18 paper.
    this gets me all three documents if i didn't make a mistake somewhere and forget to select the correct printer or open inspector or whatever.
    can someone tell me whether in numbers i can set a PAGE SIZE for a TAB (as i have done above) and have it stick or does the selection of a page size in numbers apply to the whole document? i keep sending this to my bookkeeper and getting it back and this is a whole lot of aggravation that is really messing up my workflow and there seems like i should be able to find a way to streamline this.
    note: i am actually /receiving/ xls from my bookkeeper (and exporting to xls when i send it to her) and we also need to keep the tabs together b/c one tab is pulling info from the others but i am wondering if there could be some kind of workaround.
    i'd like to ask her to just print the pages to pdf before she sends it to me but this is an added layer of work on her end that is not going to happen. also, i /can/ open in excel (i have excel for the mac) so if this works easier by printing from excel i will do that.
    any experience with this issue would be greatly appreciated.
    THANKS

    hi Y. BIG time thank you for this. i was not aware this was such an issue. i definitely cannot have any ambiguities in my spreadsheet and customizing it in numbers is the whole reason i am spending this time formatting (i.e. to make it intuitive and visual).
    that said, if accepting excel and then exporting to excel will cause problems i absolutely cannot have this.
    can you help me a little more on what the problems are? i have already got a file with two tabs directly imported from Quickbooks (by my book keeper in excel) and a tab that she set up that pulls data from these tabs - and then i have MY tab that i have been customizing and proofing and fixing as i go along. more info on this work below.
    are there commands i can run to clean this up?
    what is considered OK to do in numbers if i am accepting excel (printing? adding new numerical entries)?
    THANK YOU
    background: right now i am /mostly/ doing formatting things like adding bold outlines or adding color or whatever but i have /also/ been dragging and dropping some rows to put them in a better place and fixing some cell sums that were either left out by my book keeper or which needed to be added to check THEIR work. are you saying that by doing this i am setting myself up for various formatting issues such as merged cells?
    if so, once i finish the format of the spreadsheet and the tabs i can only exclusively open in numbers if this is necessary. are there some commands i can run to "clean up" issues? for instance can i go around the various tabs and unmerge cells to clean things up?
    also, i definitely cannot split up tabs into individual documents as the customized spreadsheets are pulling numbers from a set of tabs that are quickbooks imports....

  • Can someone help me change the line width of my numbers table, its not set to thin or none and its stuck on .25. its a spreadsheet i imported from excel.

    Can someone help me change the line width of my numbers table, its not set to thin or none and its stuck on pt25. its a spreadsheet i imported from excel.

    MR,
    Apparently the import wasn't a good one.
    The best option at this point might be to start a new table. Insert a new Table, Copy the old table cell range, select the first cell in the new table and Edit > Paste and Match Style. This will throw out all the old formatting. A bit of work, but a nice clean start.
    Jerry

  • (Administration - Marketing - Import), you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in

    Administration - Marketing -> Import, you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in Business Administration - Marketing -> Import -> Exceptions. Whatever the exception, including duplication import occurs during import and recorded in a text file.   What are the fields that determine the duplicity? How I can I can change those?

    You will be returned anything that is in the option's value parameter. What is displayed in the dropdown and what is put in the value attribute do NOT need to be the same, so maybe you should start there.

  • How can you set a ringtone for unknown numbers

    How can you set a ringtone for unknown numbers?

    You can set up each one of your contacts with a ringtone and use the default for all other unknown numbers. There is no way to set up a ringtone for unknown numbers.

  • Script for setting Imported Excel Table Cell Inset

    InDesign CS3 Windows XP
    I've checked the FAQ and ran all the searches, but I can't find this. My old computer crashed and took with it a script that I had that would set all the cell insets for the cells of the imported Excel tables in one swelled foop. Can someone point me to the source again? My price sheets are nothing but imported Excel tables and it takes forever to set all the insets for each block separately.
    Thanks,
    JAG

    Phah.
    app.documents.everyItem().stories.everyItem().tables.everyItem().cells.everyItem().propert ies = [topInset:"1cm"]; //??
    This one-liner may need some additional work, but when I am done with it, it'll set the insets for all tables in every open document.
    Perhaps 'everyItem' also works on disk files ...
    [Edit] Just pulling your leg. I'll take a look on the one-liner when I'm back at work.
    I've got a class in a couple of weeks on Javascripting ...
    I'm jealous. They give classes about this? BTW, JavaScript is not that hard (e.g., not harder than any other reasonably popular programming language), but its interface to InDesign is something else. In this case, the magic word is 'everyItem'. (You'll learn.)

  • Numbering in topics created by importing a Word doc

    I have created a project and imported a single Word file that
    is 88 pg. in length and that uses Word's styles to create bulleted
    and numbered paragraphs. In the HTML topics, the HTML code follows
    the pattern below for all lists:
    <p class=Bullet1>first bulleted item</p>
    <li class=p-Bullet1><p class=Bullet1>second
    bulleted item</p></li>
    Of course this causes the text to appear without bullets (or
    numbers) for the following three reasons:
    - the <ol... tag is missing
    - the first bulleted/numbered item is assigned a <p tag
    rather than an <li tag
    - the second tag - <p... - overrides the <li tag
    Is there some way to prevent this from happening? (If I
    import a smaller Word doc, the problem doesn't seem to happen as
    often. )

    Thank you, Peter. I had been to your site before, but didn't
    read the detailed articles about importing Word docs, because I
    thought they applied only to earlier versions of RoboHelp. Having
    reviewed them, I feel A LOT BETTER and have a better understanding
    of what's going on "under the covers." Also, I've now spent some
    time reviewing & modifying the stylesheet & HTML directly
    in the topics, so I'm better prepared to understand the HTML code
    you include.
    Nonetheless, the original problem I posted still mystefies
    me. As you suggest, I'll have to so some experimenting to
    understand what's causing the first bullet or numbered item to be
    assigned a <p class=classname> rather than an <li
    class=classname>.
    As I stated earlier, it may just be that this particular
    document's checkered past will require that I use your (thank you!)
    macro to remove the formatting of bulleted & numbered
    paragraphs & reassign bullets & numbering.
    This leaves one final question: For RoboHelp 7 specifically,
    do you advise setting bullets & numbering using styles, or the
    Word toolbar?
    Thank you again to all who share your experience &
    advice.
    - Carol

  • Set default number for many contacts?

    Hi,
    ive just recieved a replacement handset and imported my contacts from backup.
    All contacts are there but the voice dialling feature is lost.
    If i reset the default number for a contact, the voice dialling will return... however I have 900 contacts!
    Is there a way to set the default number for all my contacts to, say, the mobile number?
    Can I do this another way?
    Cheers
    c.

    Does anyone know the field name in Outlook (2007 preferably) that stores or otherwise defines a contacts default telephone number?
    I have 3400 contacts and want to update them. Previous deault numbers have been lost when importing them into the latest version of PCSuite.
    Cheers
    Martyn

  • Manually setting up size for shapes or stroke width bug

    Hi everybody,
    Since I installed Photoshop CC 2014 I have the most annoying problem.
    I can't seem to change the sizes of my shapes or the stroke width manually.
    So let's say I created a square of 150x150 and I want a new size of exactly 126x126, I can't write the exact size in the top field.
    I write it and, once I press tab to leave the field, it puts back the previous value.
    Same for stroke width. I'm obliged to use the slider to be able to change the width of my stroke - which obviously is everything but precise.
    I don't know if I missed something but this is the first time is happening since I'm using Photoshop.
    Thanks for your help!
    Doro.
    UPDATE 29/01/15
    This is coming a bit late but it seems we found where the bug is coming from.
    I'm using a macbook pro retina 13 with a french keyboard. To type a number I need to press shift + the number.
    So to get back to my example I want to change the size of 150px to 126px. I would write the number 126 in the size field and to do so I would need to press the button shift + 126. The fact is that once you're interacting with the size field in the top menu, it seems that the shift button triggers the path operation "combine shapes"  and overrides my action of typing a number.
    Let us know if you can do something about it.

    hi Y. BIG time thank you for this. i was not aware this was such an issue. i definitely cannot have any ambiguities in my spreadsheet and customizing it in numbers is the whole reason i am spending this time formatting (i.e. to make it intuitive and visual).
    that said, if accepting excel and then exporting to excel will cause problems i absolutely cannot have this.
    can you help me a little more on what the problems are? i have already got a file with two tabs directly imported from Quickbooks (by my book keeper in excel) and a tab that she set up that pulls data from these tabs - and then i have MY tab that i have been customizing and proofing and fixing as i go along. more info on this work below.
    are there commands i can run to clean this up?
    what is considered OK to do in numbers if i am accepting excel (printing? adding new numerical entries)?
    THANK YOU
    background: right now i am /mostly/ doing formatting things like adding bold outlines or adding color or whatever but i have /also/ been dragging and dropping some rows to put them in a better place and fixing some cell sums that were either left out by my book keeper or which needed to be added to check THEIR work. are you saying that by doing this i am setting myself up for various formatting issues such as merged cells?
    if so, once i finish the format of the spreadsheet and the tabs i can only exclusively open in numbers if this is necessary. are there some commands i can run to "clean up" issues? for instance can i go around the various tabs and unmerge cells to clean things up?
    also, i definitely cannot split up tabs into individual documents as the customized spreadsheets are pulling numbers from a set of tabs that are quickbooks imports....

Maybe you are looking for