Broken AppleScript for tab delimited importing into AddressBook

I have a tab delimited file that is not quite ready to import into AddressBook - it needs some massaging first (field merging, context sensitive edits etc.). A book (OS X Missing Manual) referred me to some AppleScripts used by AddressBook which are located in:
/Library/Scripts/Address Book Scripts/Address Importers
So I modified the "Tab Delimited Text File.scpt" file contained in there to accommodate all of the field merging etc. that I needed to do, but when I run the script it doesn't do anything. In fact, ALL of the scripts in that place just bring up a dialog box describing their capabilities, and then just quit. The book says these scripts work great... Would some kind soul please let me know how to run these scripts so I can point them to a tab delimited text file and do the import. Note that I'm able to figure out how to do my local changes in the AppleScript code, but I'm a total novice in AppleScript itself (but I can program well in other languages). I figure that because none of the scripts in that directory run, the error isn't mine (yet).
Thanks,
Mick

Sorry for the late reply - I had already figured out that the scripts were subroutines, but also thought they might run solo (they didn't). Another surprise was that the parent routine (/Library/Scripts/Mail Scripts/Import Addresses.scpt) was hard coded to call the children scripts in the Mail directory instead of the Address Book directory. I'm not clear if that's a bug on Apple's side...
Anyway, I got it all working. The import procedure was excruciating slow - it took well over an hour! The next time I get an update of the database to import I'm coding something up in awk instead of an AppleScript.
Thanks again for your help.

Similar Messages

  • How do you import multiple sets of tab delimited text into your form?

    Is there an easy way to bring in form data from a text file of data values(tab delimited) with multiple instances of each variable?   In my current project, I would like to bring name, address, phone, etc data from the text file for a couple hundred people into a PDF form which I create and format to my given specs.  I know I can import the text and select which instance of the variable I want to populate the similarly named fields, but I was wondering if I could appropriately name or create the various fields in the form so that it would auto populate each subsequent instance of the variables with the next line of data?.  In this case, I want to end up with a nicely formatted address book.
    Thanks!

    It is possible but not just a simple import of data.
    Each form field in the multiple page PDF would need a unique name not repeated on another page of the PDF. Fortunately the Acrobat form standard includes the "template" object and this object can be spawned or used to add a new page with the form fields automatically renamed with a prefix string of the page number and template added to each form field on the new page. So if one were to import a row from your tab delimited file into the template, one could then spawn a new page from the template with the data and rename the fields so there would be no conflict of like named fields.
    A Lesson in Templates for Adobe Acrobat by Dave Wraight
    With newer versions of Acrobat there is a mail merge feature.
    Create PDFs from Word mail merges

  • Trouble importing contacts from a tab-delimited file into Contacts on 10.9.5

    I am having Trouble importing contacts from a tab-delimited file into Contacts on MacBook Pro, OS 10.9.5, Intel 2.4 GHz Core 2 Duo., 400GB drive, 4GB memory DDR3
    So far I have:
    - Followed closely the help screen in Contacts app
    - Modified my source document meticulously - first in MS Word, then copied and tweaked in Apple's "Text Edit" app
    - The problem arises when I go to access the document for import.  Specifically, the target document, and all others in that file, are "greyed out" and thus can't be "opened" to facilitate the import process
    - Tried changing the extension of the document name to ".txt", ".rtf", and ".rtd". No change or improvement.
    - Searched Apple.com/help and found nothing relevant
    Can anyone offer some advice or tell me what I may be overlooking in this process?
    Any help will be greatly appreciated!
    Thanks,
    <Email Edited By Host>

    Hi Rammohan,
    Thanks for the effort!
    But I don't need to use GUI upload because my functionality does not require to fetch data from presentation server.
    Moreover, the split command advised by you contains separate fields...f1, f2, f3... and I cannot use it because I have 164 fields.  I will have to split into 164 fields and assign the values back to 164 fields in the work area/header line.
    Moreover I have about 10 such work areas.  so the effort would be ten times the above effort! I want to avoid this! Please help!
    I would be very grateful if you could provide an alternative solution.
    Thanks once again,
    Best Regards,
    Vinod.V

  • Could not get artwork for some albums.  I am not getting any artwork for Cd's imported into Itunes.  almost 400 albums and not one album artwork. what to do?

    cannot get artwork for some albums is the feedback I am trying to get when trying to get album artwork for Cd's imported into my itunes.  almost 400 Cd's  computer is seen processing the infor however not one album artworkcan be seen what to do?  

    Hello, Welcome to Apple Discussions.
    Are your songs from Audio CDs or iTunes Store? If not you may need to manually find the album artwork for them as these songs may not be listed in the iTunes Store database for your region.
    iTunes: Album art may not download properly
    http://support.apple.com/kb/TS1815
    iTunes will only download album artwork for songs that it can find in the iTunes Store. iTunes will check each song in your iTunes library and attempt to match it up with a song in the iTunes Store. If the data matches, iTunes will download the album artwork from the iTunes Store and add it to the song in your iTunes library. If iTunes does not find a particular song's artwork in the iTunes Store, you will not see an alert message. iTunes simply does not download artwork for that song.

  • SQLLDR - spec for "fields terminated" clause for tab delimited files

    Does anyone know what the spec for tab delimited files is for the "fields terminated" clause in SQLLDR? See the below example for a comma delimited file:
    FIELDS TERMINATED BY ","
    Thanks in advance!
    Jeff

    Hi Jeff,
    You can try this,
    TERMINATED BY WHITESPACE
    The WHITESPACE option is usefull when, delimiter is any whitespace character including spaces, tabs, blanks, line feeds, form feeds, or carriage returns. (Only used with TERMINATED, not with ENCLOSED.)
    I hope this will help you.
    Thanks,
    Thazul.

  • Problem importing CSV or tab-delimited file into Address Book

    I am trying to import a text file (tab delimited) or csv file into address book. The files are created in Excel and consist 8 columns with address info (first name, last name, street, city etc). For the sake of simplicity, the file only contains 2 records - so all in all 3 rows with data where the first row contains the headers as described above.
    I am perfectly able to import the fields first name, last name using Address Book's text import feature. However, as soon as I try to map Address Book's address field (Home, work or other) to my text file's headers, the import wizard stops responding. I can still scroll through the records with the left and right error, but the record count is screwed up ("-3 of 2") and clicking the OK button doesn't result in anything.
    So I am able to import the names but not the addresses - so I better rename the Address Book to Name Book
    Any clue of what's going wrong?

    I've been wrestling with the exact same problem. I have come to a solution, though serendipitously. The address variables belong to a group say address Office.
    1 - I creted a column with address Office which clued in AddressBook the the existence of the data for +address Other+ (and it assigned the columns ot the proper data)
    2 - address book does have an entry of address with all group elements of same colour, normally. I reassign address other to address office
    3 - I also assign address office (in right-hand column) to address office.
    At this point I have two groups of address office
    4 - I indicate to the second group 'do not import'
    5 - Then hit OK
    It seems that this loop is necessary to instantiate the proper group name to the group of variables. Why? who knows. Bad UI? Clearly. Apple engineers should've thought about it before? no kidding...

  • Import tab delimited file into pdfs

    I have a tab delimited file with 1000's of rows. I want to complete a form and save it for each row. Rather than using the importData() function by itself and manually going through each record I would like to automate this so it will fill out a form for each row and save a copy of each. I have a little experience in acrobat javascript, but some knowledge of building the form and adding javascript.

    You can use the doc.importTextData method to import a row of data into the form and then use the doc.extractPages method to save to a new file, clear the form, and repeat the process for each row.
    importTextData: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.502.html
    extractPages: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.465.html
    Note that the return codes for importTextData in the documentation are wrong. The positive values should be negative and vice versa.

  • Importing a .xls tab delimited file into number

    Hi there... I downloaded a .xls document from the internet and attempted to open it in Numbers. The following import problem presented itself:
    Import Warning - This is a tab delimited document, not a valid Excel document. The data might look different.
    Indeed the data does look different- all of the formatting is visible, and the document is essentially unusable. Is there a way to convert this sort of document into something that can be used in Numbers?
    Thanks

    I opened the document in Text Edit, but was unable to convert tab to commas... here is a clip from the original document when it is opened in both TextEdit and Numbers
    <table border="1">
    <!-- <tr><td colspan = "15" valign="middle" align="center">Date: 2/15/2008</td></tr>-->

  • No support for tab-delimited (or other character-delimited) data export

    First, to echo others' comments, I am thoroughly impressed with this project. This is a well-designed application that feels very professional and reasonably robust for beta. I only wish that Oracle had invested the resources to do this earlier.
    To the point, in the right-click pop-up menu within the data results tab there is an "Export" sub-menu. This menu has various options for exporting raw data. However, it does not provide the ability to export tab-delimited data or to change the delimiter arbitrarily.
    This feature is particularly important for data containing special characters. For example address data, even after parsing into standard fields, may still contain commas rendering a CSV export useless.
    This would be a very useful enhancement.

    There is an export to Tables in Microsoft Excel option. Did you try that?

  • SQL-Loader Control file for Tab-delimited fields

    i want to import a text-file with TAB-DELIMITED fields and a line-break + return at the end of each record.
    a want to do this by sql-loader and a control file.
    please, can someone give me the statement:
    e.g.
    load data
    infile 'exaple.txt' .......
    (...field1, field2,....)
    thank you very much

    Case Study 3: Loading a Delimited, Free-Format File
    http://otn.oracle.com/pls/db92/db92.to_URL?urlname=http:%2F%2Fdownload-west.oracle.com%2Fdocs%2Fcd%2FB10501_01%2Fserver.920%2Fa96652%2Fch10.htm%231006907
    Modify the example and use 'terminated by whitespace' instead
    For more information on TERMINATED Fields see
    http://otn.oracle.com/pls/db92/db92.to_URL?remark=drilldown&urlname=http:%2F%2Fdownload-west.oracle.com%2Fdocs%2Fcd%2FB10501_01%2Fserver.920%2Fa96652%2Fch06.htm%231013838

  • Upload/Download from unix - give easy exammple for tab delimited .TXT file

    Hello experts,
    I have 2 requirements.
    1. I want to upload a tab delimited .txt file from local PC to UNIX server.
    2. I want to Read same file, then some process and get result to the same location. (output file name should be diffrent)
    How i can fulfill these two requirements?
    Regards,
    RH

    Hi,
    upload a tab delimited .txt file from local PC to UNIX server
    Please go through the below logic this will help you,
    *& Report  Z10_SHAD_V_UPLD_PR_APP_SERV
    report  z10_shad_v_upld_pr_app_serv message-id zmessage.
    *&--INCLUDE FOR DECLARATION
    include z10_upld_top.
    *&--INCLUDE FOR ALL FORMS
    include z10_upld_forms.
    start-of-selection.
    *&--PERFORM FOR UPLOADING LOGIC.
    perform z10_upld.
    end-of-selection.
    *&  Include           Z10_UPLD_TOP
    *&--STRUCTURE FOR INTERNAL TABLE.
    *&--THAT IS GOING TO HOLD PRESENTATION SERVER FILE DATA.
    data:begin of wa,
    name(40) ,
    end of wa.
    *&--INTERNAL TABLE THAT IS GOING TO HOLD PRESENTATION SERVER DATA.
    data: it_tab like wa occurs 0 with header line.
    *&--SELECTION-SCREEN FOR GETTING THE PATH OF PRESENTATION LAYER
    selection-screen begin of block abc with frame title text-001.
    parameters: p_string(128) type c,
                      p_st(128) type c,
    selection-screen end of block abc.
    data: file_path type rlgrap-filename.
    data: p_path type rlgrap-filename,
          filename1 type string,
          file_name like ibipparms-path,
          v_path like dxfields-longpath,
          l_path type string.
    *&--PROVIDING F4 KEY FOR THE SCREEN FIELD THAT IS GOING TO
    *&--HAVE THE PRESENTATION SERVER FILE PATH
    at selection-screen on value-request for p_string.
      call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
      FIELD_NAME          = ' '
       importing
         file_name           = file_name
      p_string = file_name.
    file_path = p_string.
    p_path = file_path.
      filename1 = file_name.
    *&--PROVIDING F4 KEY FOR THE SCREEN FIELD THAT IS GOING TO
    *&--HAVE THE APPLICATION SERVER FILE PATH
    at selection-screen on value-request for p_st.
    call function 'F4_DXFILENAME_TOPRECURSION'
    EXPORTING
      I_LOCATION_FLAG       = ' '
      I_SERVER              = '?'
      I_PATH                =
      FILEMASK              = '.'
      FILEOPERATION         = 'R'
    importing
      O_LOCATION_FLAG       =
      O_SERVER              =
       o_path                = v_path
      ABEND_FLAG            =
    exceptions
       rfc_error             = 1
       error_with_gui        = 2
       others                = 3
    p_st = v_path.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    *&      Form  Z10_UPLD
          text
    -->  p1        text
    <--  p2        text
    form z10_upld .
    if not p_string is initial.
    *&--FUNCTION MODULE THAT IS GOING TO UPLOAD THE PRESENTATION SERVER FILE TO
    *&--APPLICATION SERVER.
    call function 'GUI_UPLOAD'
      exporting
       filename                      = filename1
       filetype                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      = it_tab[]
    exceptions
       file_open_error               = 1
       file_read_error               = 2
       no_batch                      = 3
       gui_refuse_filetransfer       = 4
       invalid_type                  = 5
       no_authority                  = 6
       unknown_error                 = 7
       bad_data_format               = 8
       header_not_allowed            = 9
       separator_not_allowed         = 10
       header_too_long               = 11
       unknown_dp_error              = 12
       access_denied                 = 13
       dp_out_of_memory              = 14
       disk_full                     = 15
       dp_timeout                    = 16
       others                        = 17
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    *path = filename1.
    open dataset p_st in text mode for output encoding default.
      if sy-subrc ne 0.
        close dataset p_st.
        exit.
      endif.
      if sy-subrc eq 0.
      loop at it_tab.
        transfer it_tab to p_st.
      endloop.
      close dataset p_st.
      message i000.
      endif.
    endif.
    endform.                    " Z10_UPLD
    Hope this helps.

  • How do  I get track names for a CD imported into my Itunes?

    I am running itunes 11.1.3 (8).
    I can 't find the command to get the track names for a CD I just imported into my itunes.
    This used to be simple....
    Any suggestions?

    It still is simple, but as always you get the track names before you import the CD.  iTunes has a preference setting so it will always do that or you can re-identify a CD using a menu item (see below).  Once they are imported there is no way in iTunes to get the identification service to work.  There are third party services that work outside of iTunes but for a single CD it is easier to just reimport the whole thing after correctly identifying first.
    How iTunes remembers audio CDs - http://support.apple.com/kb/TA27785
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html - "iTunes Library Extras.itdb contains some Gracenote CDDB information."
    To re-identify an incorrectly identified CD: "Insert the CD and select it in iTunes, then menu Advanced > Get CD track names. It should requery the Gracenote database and let you pick the correct album." - https://discussions.apple.com/message/18901866 - Newer versions in upper right hand corner, Options>Get Track Names

  • To import addresses, need format of tab delimited file

    I am trying to import addresses from my G3 PB Mozilla App. I exported addresses on G3 to both ldif and tab-delimited files and then attached to an email message which I sent to myself. I received email on Mac mini, but the 2 files showed up inline, not as attachments. I copied the ldif portion to a text file; ditto for tab-delimited. I tried importing into Address Book, but got message that format was not valid.
    Can't I just edit the tab-delimited file in TextEdit, save as RTF, and get Address Book to recognize the data?
    Thanks,
    Owen

    Hi, Did you get solution for this? Please let me know as I'm looking for the same solution. The Bank requirement is to generate a Tab delimited file but the RFFOGB_T with Format GB_BACS issues the output as below...
    Required by Bank:
    692532 73855963 RRS P R BACKLEY         169.91 GSLV
    294518 99855581 CETS PRITECTIIN         799.72 GSLV
    The output I get from SAP/DMEE:
    ........1........2........3........4........5........6....
    VOL1000004                           ....953312
                  1 <CR/LF>
    HDR1A953312S  195331200000400010001       10040 100420000000
                    <CR/LF>
    HDR2F0200000100                                   00
                    <CR/LF>
    UHL1 10041999999    000000001 DAILY  000
                    <CR/LF>
    6010392865540009960062063474662    00000115000ABC UK Ltd.       0
    1465                                <CR/LF>
    6006206347466201760062063474662    00000115000SAPBACS0000003306 C
    ONTRA            ABC UK LTD.        <CR/LF>
    EOF1A953312S  195331200000400010001       10040 100420000000
                    <CR/LF>
    EOF2F0200000100                                   00
                    <CR/LF>
    UTL10000000115000000000011500000000010000001
                    <CR/LF>
    END
                    <CR/LF>
    <END>
    Rgds,
    Stan

  • Product Licence importing via tab delimitted file questions

    I am looking at using the import purchase records functionality to import licence data from a CMDB.
    Because i have product licencing data in another system, i need to integrate them somehow, and came across the import feature.
    it is a business requirement to produce software compliance reports that are accurate on any given day. Now i can get the data out of
    the CMDB and into the required tab delimited format
    Doing an initial extract and import seems pretty straight forward, basically get all the software products and thier associated allowed installations figure, do reconcilliations.
    But over time, when updates are required, how does ZAM handle subsequent imports of the same products. eg. if on the first import
    say theres initially 10 licences for ABCSoftware.
    next import, 2 licences have been added since the last import giving 12 current licences
    and likewise the extract from our CMDB says theres 12 licences for ABCSoftware.
    once imported into ZAM, will ZAM report 12 licences or 22 (10 previously and new 12)
    how does this work? the documentation does not give this level of detail.
    And similar for expired or decommisioned licences, if we've gone from 10 to 5 licences for ABCSoftare, does the import function have any smarts to it?
    would it be required to delete previosly imports product licences and start again, having to do rreconcilliatios for every product again?
    Hope this make sense. Thanks.

    dozenmatta,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Importing data from tab delimited file

    Hi everyone,
    This is my first question on here so I hope I am doing the right thing.
    I've searched online as much as I can to find an answer or a way to fix my problem but I have not been able to find a resolution.
    My issue is I'm trying to import name and contact information from a excel file, that I have saved as a tab delimited file, into a fillable PDF file. I'm able select the text file through the import option and it shows the correct information as different rows that I can import but when I select one and click on to finish the import of the data I get an error message advising that some of the text could not be imported. The issue is nothing is being imported at all.
    I've made sure that all the relevant fields are the same name as what the form has but still cannot get anything to import.
    Does anyone have any ideas why this may not be working? Also I basically have no ability to write JavaScript to import the information otherwise I would look at travelling down that path.
    Please let me know if I need to be any more specific.
    Regards,
    Adam

    Ok I can share the form itself and will need to quickly create some data itself to go along with it
    PDF Form Shared Files - Acrobat.com 
    Here is the tab delimited file I am trying to use (well the format anyway).
    Test Data File Shared Files - Acrobat.com
    Adam
    Thanks Pat Willener

Maybe you are looking for