Apple Script should transfer text into a numbers table.

Hello together,
at first i want to appologize my english.
So at second i want to write an AppleScript, that starts with a display dialoge and ask me some things. Thats not the real problem i have started it so...
tell application "Numbers"
  activate
          tell document 1
                    tell table 1
                              set DD1 to display dialog "Adresse" default answer "" buttons {"OK"} default button 1
                              set Strasse to text returned of DD1
                              set DD2 to display dialog "Datum" default answer "actal date" buttons {"OK"} default button 1
                              set Datum to text returned of DD2
                              set Schilder to display dialog "Gestellt oder abgeholt" buttons {"Gestellt", "Abgeholt"} default button 1
                              set ButtonReturned to button returned of Schilder
                              display dialog "Speichern?" buttons {"Abbruch", "Speichern und beenden", "Speichern und neu"} default button 3
                              if the button returned of the result is "Speichern und neu" then
  -- action for 1st button goes here Repeat
                              else
  -- action for 2nd button goes here End
                              end if
                    end tell
          end tell
end tell
Now i want that the script tells my current table in numbers the new variables.
I have no idea how to get this or where i can read something about this theme.
Thank you for helping.
Tim

Using the Cells Inspector, you can pre-format the cells before you input your data. That way you won't be surprised. Leaving the format set on Automatic sometimes leads to unexpected results. If you want your input to remain literally as you typed it, use the Text format. If you want a certain number of decimals to be displayed, select the Number format and set the number of digits to be displayed using the Inspector.
Jerry

Similar Messages

  • To get text into an Internal table

    hi,
      i need help regarding how to get the text or the header data into an internal table.

    hi Mohan,
    What exactly ur looking for.
    1) if u want to append header data to internal table then use
    append ITAB.
    2) <b>moving text to itab.</b>
    itab-field = 'Text'.
    append itab.
    NOte :- itab should be declared with header line
    alternative.
    append wa to itab

  • How can I take data from multiple pages documents and put them into a numbers table?

    I produce invoices in pages, with dates, invoice numbers, references and amounts due. I want to take all this data from multiple documents and transfeer it to a single numbers table. Is this possible and if so, how do I do it. I know I can do it the other way round with mail merge but I can't figure out how to do it this way round?
    Thanks,
    Keith

    The data is spread throughout a pages document in specific areas here's a copy of an invoice for you to have a look at.

  • Script to drop text into Address Book "note" field?

    I wonder if anyone has any thoughts on this: I have about 6000 contacts and wanted to organize them by putting category descriptions of each contact into the notes field: ie, "friend," "architect," "designer," etc. Once done, they will be easy to keep organized via smart groups.
    Could a script be written to do this? My contacts are already broken out into "dumb" groups, so could a script simply drop a note for all members of an existing group? Or all selected contacts?
    The trick will be to add the text without wiping out any existing text. That way each contact could be assigned to more than one category.
    This would be a very useful script, because Address Book does not presently have the "category" feature than other contact managers have, such as Entourage.
    Any help greatly appreciated.

    Suggestion:
    6000 contacts - That's a lot. Before you get too carried away, I would add delimiters such as:
    [note]" & contentsof_existingnote & "[/note]" & return, AND
    [category]" & _category & "[/category]" & return
    You could then add other functions to your AddressBook note field. I do this regularly and have added;
    [addressee2] to add a roomates, significant other, or spouse that wanted to keep her maiden name and want to formerly include on an invitation or xmas card.
    Mr. John Smith
    Dr. Karen Jones, M.D. [addressee2, roomate, significant other]
    1234 W. 56th Street
    Anytown, ST, Zip
    [spouse] spouse; review your contact list and greet them with "How is your wife Karen?"
    [xmasprefix] mainly to add "Mr. & Mrs." to your contacts
    [xmasfamily] include a personal touch; "and family"
    Others, [iphotolinks], [envelopegraphic], [envelopeAttn_]
    All kinds of possibilities here.
    G4 powerbook   Mac OS X (10.4.6)  

  • Apple script to build text string

    quick question.. how do i go about building a text string from dialog box results?
    ie 1st question asks for a username second a unix path.
    the put that in a text string to run in a shell script

    Use a construct such as:
    set answer_1 to text returned of (display dialog "Question 1" default answer "")
    set answer_2 to text returned of (display dialog "Question 2" default answer "")
    do shell script answer_1 & answer_2
    (50002)

  • TEXT into the Cluster Tables.

    A material (eg mat05) is maintained in a material master.
    A purchase order text is maintained for that particular,in <b>STXH</b> table.The Text ID,Text Name,Object ID,Spras are stored along with the TDNAME ( the long text ).I know these data are stored into <b>STXH,STXL</b> tables and some cluster tables.Can someone help me informing about the <b>Cluster Tables</b>( Specially on PO text ).

    Hello Rajarshi,
    There was a somewhat similar query sometime back which I shall point you to.
    Re: BasicText for a Material
    Besides, here's the code which would get you the purchase order texts for a given material -
    parameters: p_matnr type matnr.
    data: temp_text type table of tline with header line,
          where_cond(20) type c.
    data : begin of text_id ,
             tdobject(10) value 'MATERIAL',
             tdname(70),
             tdid(4)  ,
             tdspras      value 'E',
           end of text_id.
    start-of-selection.
      concatenate '%'
                  p_matnr
             into where_cond.
      select tdname
             tdid
        from stxl
        into (text_id-tdname , text_id-tdid)
       where relid   = 'TX' and
             tdspras = 'E'  and
             tdname like where_cond.
      import tline = temp_text[]
        from database stxl(TX)
          id text_id.
       write: / sy-subrc.
       loop at temp_text.
         write : / temp_text-tdline.
       endloop.
    ENDSELECT.
    Hope this is what you were looking for.
    Regards,
    Anand Mandalika.

  • How to enter text into text box in Pages '09

    When I manually select a text boxes in Pages, I can paste text into them. I can move from text box to text box using System Events to keystroke tabs but have not figured out how to get Applescript Editor to make the pastes. I am trying to use Applescript Editor to enter text into a pages document that is formatted for labels.

    I have downloaded template U-0089-02_P.doc from Avery, 14 boxes displayed in two columns of seven rows.
    Once you have clicked in the upper left box, the following script should enter text into every box, from left to right and top to bottom.
    tell application "Pages"
    activate
    tell application "System Events"
    keystroke "Box 1"
    keystroke tab & tab -- to go to the next column
    keystroke "Box 2"
    keystroke tab -- to go to the next row
    keystroke "Box 3"
    keystroke tab & tab
    -- and so on
    end tell
    end tell
    The problem is that I don't know how to enter the upper left box from the AppleScript Editor.

  • To upload values into material master table

    Hi,
    Can anyone tell me how to upload the changed values in a screen to material master table?

    Hi,
    Actually my requirement is,there is an update screen.There are many fields in the update screen.When the user changes the value of a partiacular field and click on the checkbox beside it of which he wants to get uploaded into material master table,and click on the execute button,the values should get uploaded into material master table.
    Can we upload all the field values at a time into material master table?How can we do that?

  • Apple script is stuck working with Numbers

    Hello, everyone
    I need some help.
    I wrote a script what was supposed to do perform following:
    I receive a Numbers-format file imported to my Mac from iPad with iTunes
    This file is a sort of daily journal. Every row includes info about one particular client. A name of the client is in column 2. The file name is always "Blank.numbers" and the table name is always "Blank". I need to copy this table in a new file and collect the data for each client in a different table . In other word i need to make new tables in a new file and copy client info in its own table.
    The script is below. It seems to work right (it makes a new file, makes some tables, puts correct info into them) but one thing happens  - it's stuck in a little while after run. Sure, I reloaded my Mac and not ones but nothing at all - zero effect, the same thing happened over again, after the script successfully worked it  was stuck and i just could see "running". My test data file consists of just up to 40 rows, but I've never had this work completely done. 
    Not much scriptwriter of myself - it's just my very first experience in the subject and I have no clue about why it could be, so I'll appreciate for any suggestion
    on run
         set FileName to "Blank.numbers"
         set ClientColumn to 2
         set CashFlowSheetName to "Cash Flow"
         tell application "Numbers"
              activate
              set FileName to "Blank.numbers"
              set ClientColumn to 2
              set WorkDocument to my makeAnNumbersDoc("Blank.nmbtemplate")  -- creating a new file
              tell document WorkDocument to tell sheet 1
                   set name to CashFlowSheetName
                   delete table 1
              end tell
              set Clients to my GetListOfClients(FileName, ClientColumn) -- getting full list of the clients
              repeat with i from 1 to count of Clients
                   set FullCopy to my GetTable("Blank.numbers", item i of Clients, ClientColumn)  -- choosing data
                   my MakeTable(WorkDocument, CashFlowSheetName, FullCopy, item i of Clients) -- making table with name of  a client for every client
              end repeat
         end tell -- numbers
         return my GetListOfClients(FileName, ClientColumn) -- test line, del me!
    end run
    on MakeTable(WorkDocument, WorkSheet, DataList, Client)
         local i, j
         tell application "Numbers"
              tell document WorkDocument to tell sheet WorkSheet
                   make new table with properties {row count:count of DataList, column count:count of item 1 of DataList, name:Client}
                   tell table Client
                        repeat with i from 1 to row count
                             repeat with j from 1 to column count
                                  set t to value of item j of item i of DataList
                                  if class of t is date then set t to t - (time to GMT)
                                  set value of cell j of row i to t as text
                                  --say "column"
                             end repeat
                        end repeat
                   end tell -- table
              end tell -- sheet
         end tell -- Numbers
    end MakeTable
    on GetListOfClients(FileName, TargetColumn)
         local i, FullListOfClient
         tell application "Numbers"
              open ":Users:Master:Documents:" &amp; FileName
              set FullListOfClient to {}
              tell document 1 to tell sheet 1 to tell table 1
                   repeat with i from 2 to count row
                        if value of cell TargetColumn of row i is not in FullListOfClient then copy value of cell TargetColumn of row i to the end of FullListOfClient
                   end repeat
              end tell
         end tell
         return FullListOfClient
    end GetListOfClients
    on GetTable(DocName, TargetValue, TargetColumn)
         local RowCounter, CopyRow
         tell application "Numbers"
              tell document DocName
                   tell table 1 of sheet 1
                        set RowCounter to 1
                        set CopyRow to {}
                        copy cells of row 1 to the end of CopyRow
                        repeat with RowCount from 1 to row count
                             if value of cell TargetColumn of row RowCounter is equal to TargetValue then
                                  copy cells of row RowCounter to the end of CopyRow
                             end if
                             set RowCounter to RowCounter + 1
                        end repeat
                        return CopyRow
                   end tell
              end tell
         end tell
    end GetTable
    --=====
    Creates a new Numbers document from Blank.template
    and returns its name.
    on makeAnNumbersDoc(myTemplate)
         local t, n
         set theApp to "Numbers"
         set t to ((path to applications folder as text) &amp; theApp &amp; ".app:Contents:Resources:Templates:" &amp; myTemplate &amp; ":") as alias
         tell application "Numbers"
              set n to count of documents
              open t
              repeat
                   if (count of documents) > n then
                        exit repeat
                   else
                        delay 0.1
                   end if
              end repeat
              set n to name of document 1
         end tell -- theApp
         return n
    end makeAnNumbersDoc

    Hello
    Then I have no idea why the script hangs after it has done the job.
    Some thoughts.
    • Is it the same in different user account?
    • If you force quit the script, is the resulting new document fine? In other words, is the problem limited to the termination of the script? You can quit a running script by means of i) pressing command + period, which will signal to cancel the execution of the script or ii) killing the process (editor or applet) by Activity Monitor.
    Anyway, I have done some clean up and optimization of your script as listed below although I can see no reason for these changes to solve the current issue. It is just for my testing and liking for low energy consumption.
    Script is revised so that -
    a) it gets the template path indepent of the location of Numbers.app;
    b) it reduces the number of AppleEvents to send for retrieving data from table by means of range reference form (e.g., rows i thru j) and whose filter reference (e.g., rows whose cell i's value = x);
    c) its GetTable() handler now returns 2d arary of values instead of cell references so that it can reduce the number of AppleEvents for dereferencing the cell reference later;
    d) it introduces _main() handler to localise the implicit global variables in run handler (as already explained);
    e) in _main() handler, code is encapsulated in an script object and the script object is executed by "run script" command, which is a known technique to speed up the execution of script when saved as applet. (Actually this only makes the applet run as fast as compiled script run in editor. Without this, applet runs remarkably slower than run in editor.)
    Hope this may be of some help.
    Good luck,
    H
    on run
        _main()
    end run
    on _main()
        script o
            set FileName to "Blank.numbers"
            set ClientColumn to 2
            set CashFlowSheetName to "Cash Flow"
            tell application "Numbers"
                activate
                set WorkDocument to my makeAnNumbersDoc("Blank.nmbtemplate") -- creating a new file
                tell document WorkDocument's sheet 1
                    set name to CashFlowSheetName
                    delete table 1
                end tell
                set Clients to my GetListOfClients(FileName, ClientColumn) -- getting full list of the clients
                --return Clients
                repeat with i from 1 to count of Clients
                    set FullCopy to my GetTable(FileName, item i of Clients, ClientColumn) -- choosing data
                    --return FullCopy
                    my MakeTable(WorkDocument, CashFlowSheetName, FullCopy, item i of Clients) -- making table with name of a client for every client
                end repeat
            end tell -- numbers
            return Clients -- test
        end script
        run script o -- # this will dramatically speed up the execution of script when saved as an applet
    end _main
    on MakeTable(WorkDocument, WorkSheet, DataList, Client)
        local utc_offset, rk, ck
        set utc_offset to time to GMT
        set Client to Client as string -- for safety
        tell application "Numbers"
            set rk to count DataList
            set ck to count DataList's item 1
            tell document WorkDocument's sheet WorkSheet
                make new table with properties {row count:rk, column count:ck, name:Client}
                tell table Client
                    repeat with i from 1 to rk
                        repeat with j from 1 to ck
                            set t to DataList's item i's item j
                            if class of t is date then set t to t - utc_offset
                            set row i's cell j's value to t as text
                        end repeat
                    end repeat
                end tell -- table
            end tell -- sheet
        end tell -- Numbers
    end MakeTable
    on GetListOfClients(FileName, TargetColumn)
        local FullListOfClient
        tell application "Numbers"
            --open (":Users:Master:Documents:" & FileName) as alias
            open ((path to documents folder from user domain as text) & FileName) as alias
            --open ((path to desktop as text) & FileName) as alias -- for test
            set FullListOfClient to {}
            tell document 1's sheet 1's table 1
                repeat with c in (get value of cell TargetColumn of rows 2 thru -1)
                    set c to c's contents
                    if c is not in FullListOfClient then set end of FullListOfClient to c
                end repeat
            end tell
        end tell
        return FullListOfClient
    end GetListOfClients
    on GetTable(DocName, TargetValue, TargetColumn)
        local CopyRow
        tell application "Numbers"
            tell document DocName's sheet 1's table 1
                set CopyRow to value of cell of rows whose cell TargetColumn's value = TargetValue
                set CopyRow's beginning to value of cell of row 1
                return CopyRow
            end tell
        end tell
    end GetTable
    --=====
    Creates a new Numbers document from Blank.template
    and returns its name.
    on makeAnNumbersDoc(myTemplate)
        local t, n
        tell application "Numbers"
            set t to (((path to resource "Templates") as string) & myTemplate) as alias
            set n to count documents
            open t
            repeat until (count documents) > n
                delay 0.1
            end repeat
            return name of document 1
        end tell
    end makeAnNumbersDoc

  • How do I stop Apple Script from leaving a Text.txt file with each image downloaded using Photo Downloader in Adobe Photoshop CS4_Bridge???

    I use Adobe Photoshop CS4_Bridge _Photo Downloader to import images from CF Cards into my 11" Mac Book Air.  I have an issue with the Text files
    that seem to accompany each and every image that I do not need.  How do I stop Apple Script (which I assume is the culprit in this case)  from interferring with this process.

    Your iWeb Site is stored not on your iDisk, but on a file named Domain.sites in your ~/Home/Library/Application Support/iWeb/ Folder.
    If , for whatever reason, you wipe your HD and/or lose this file (Get a new computer, Re-Install your OS, Stolen Laptop, Crashed HD, Etc.) without backing-up your Domain.sites file then you will have to re-build your iWeb sites from scratch again.
    Of course you can edit your Published HTML files in a different program such as Dreamweaver or even Text Edit. You just can't edit Published HTML files in iWeb. Not at this time at least.
    Use iWebBackup to backup your Domain file to a Blank CD or DVD. Backing up your Domain file to another folder on your computer is not fully backing it up. If your computer gets stolen you still lost the file but if you have your Domain file burned onto a CD you have a backup!
    Download iWebBackup Here
    You can use iWebExtender to automatically consolidate your files into one folder and delete multiple images.
    http://iWebFAQ.com

  • I'm trying to work in numbers on an Excel spreadsheet that I e-mailed to it. Numbers moves the graphs and charts around. How do I get it to transfer cleanly into numbers?

    I'm trying to work in numbers on an Excel spreadsheet that I e-mailed to it. Numbers moves the graphs and charts around. How do I get it to transfer cleanly into numbers?

    If you really need to work in excel and you need to collaborate with others in excel you should avoid the frustration and use excel.  I would only recommend using Numbers if you are using it to open a file you do not intend to open in excel again OR if the document is very simple.  If you paycheck or grade depends on Numbers importing or exports from/to excel you should use excel directly.

  • HT2488 How to I insert text into a this command in automator wine "Text goes here" this is a perl script

    I have spent hours trying to figure this out, automator is the hardest thing to figure out. All I want to do is emulate me doing this
    -Open terminal
    -type wine
    -drag and drop the location of an .exe file
    -hit enter
    Now this should be easy as all I have to do is do run shell script, insert argument and done, BUT IT DOESNT RECOGNIZE WINE!?!?! Pleas help me.
    Let me clarify.
    If I make an automator application that that runs the command "wine" and then inserts text into the space after that Then i will be set. But no matter what I do nothing works. If i set the shell to perl and pass input as argument....It doesnt work the $f and $@ stuff doesnt work.
    Wine is likely not recognized because is is pearl based so I set it to pearl, but how do i pass and argument over to it?

    Try
    /opt/local/bin/wine "$@"
    The "..." will protect the white space, but still allow $variable subsitutions.
    The $@ will substitute all the files you drag as a group to your Automator app.
    The notation "$@" does the substitution with each file properly quoted to protect the white space in the file path, but provide each file as its own quoted argument to the 'wine' command line.
    If you need to invoke 'wine' once for each file of a group of files you drag on to your automator app, then use
    for f in "$@"
    do
         /opt/local/bin/wine "$f"
    done
    This will loop through each file of a group of files you drag onto your automator app, and invoke 'wine' once for each file in the group.

  • I just bought a used macbook pro, with Apple Care.  How do I transfer AC into my name?

    I just bought a MBP from a private party.  It has Apple Care until Oct. 2012.  Do I need to transfer AC into my name or does it just remain with the MBP regardless of who owns it?  If I need to transfer it, does anyone know how I go about doing it?  Thanks.
    Tom

    6. Transfer of Plan Subject to the restrictions set forth below, you may make a one-time permanent transfer of all of your rights under the Plan to another party, provided that: (a) the transfer must include the original Proof of Purchase, the Plan's Certificate and all of the Plan's packaging material, including printed materials and these Terms and Conditions; (b) you notify Apple of the transfer by sending, faxing or e-mailing notice of transfer to Apple Inc., ATTN: Agreement Administration, MS: 217AC, 2511 Laguna Blvd, Elk Grove, CA 95758, U.S., fax number 916-399-7337 or [email protected], respectively; and (c) the party receiving the Plan reads and agrees to accept the Terms and Conditions of the Plan. When notifying Apple of the transfer of the Plan, you must provide the Plan Agreement Number, the serial numbers of the Covered Equipment being transferred and the name, address, telephone number and email address of the new owner.

  • I have recieved an e-mail seemingly from Apple that has gone straight into my spam. It says that someone has used my Apple ID to sign into iClous on an iPhone 4. There is a lionk to follow to check my details.  I am assuming that I should not so this?

    I have recieved an e-mail seemingly from Apple that has gone straight into my spam. It says that someone has used my Apple ID to sign into iClous on an iPhone 4. There is a lionk to follow to check my details.  I am assuming that I should not so this?

    You can forward the email to Apple at the link below.
    [email protected]
    Also check out the article below.
    http://support.apple.com/kb/ht2075

  • Transfer text of VBKD-BSTKD_E into a item text category when creating order

    Hi,
    when creating an order a text should be entered manually in the field 'VBKD-BSTKD_E' . Because the order is a third-party-order and we want to have this information of field 'VBKD-BSTKD_E'  also in the MM-purchase requisition to this order, the manual entered text of 'VBKD-BSTKD_E' should be transfered into a special item-text-category in the sales order (We made already the customizing that this special item-text-category goes automatically into the MM-purchase requisition when saving the SD-order). Now we have tried already to solve this issue with the function module 'change_text' and 'create_text' in the SD-user-Exits (1. Try: userexit_move_field_to_vbap and 2.Try: ZXVVAU05). We were able to change or create the text with these function modules but, although we used afterwards additionaly function module 'Save_text' to save the text, the text wasn't saved by the system.
    Has anybody an idea how this could work?
    Regards
    Stephan

    Read the header lever text using READ_TEXT, and use the SAVE_TEXT to save the text at the item level.  Obviously you have to change the TDOBJECT field before saving it.
    Albert

Maybe you are looking for