How can I time stamp each row individually

I am creating a trade log.  I need each row to be marked with date and time to the minute individually.  There is a post from 2010 on how to make Numbers do this but I don't know how to write applescript.  Can anyone help me here? 

Good idea jaxjason.
Your post urged me to update the script which was really old.
Here is the modern release :
--[SCRIPT store_CreationDate]
Enregistrer le script en tant que Script  : store_CreationDate.scpt
déplacer le fichier créé dans le dossier
<VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Library:Scripts:Applications:Numb ers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Placez le curseur dans la cellule que vous souhaitez alimenter.
Aller au menu Scripts , choisir Numbers puis choisir  “store_CreationDate”
La cellule pointée reçoit la chaîne saisie
La cellule de coordonnées ligne_cellule + decalage_vertical , colonne_cellule + decalage_horizontal reçoit la date_heure de l'intervention.
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
+++++++++
Save the script as a Script : store_CreationDate.scpt
Move the newly created application into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Put the cursor in the cell which must receive your entry.
Go to the Scripts Menu, choose Numbers, then choose “store_CreationDate”
The pointed cell receives the entered string.
The cell at row_cell + decalage_vertical , column_cell + decalage_horizontal receive the current date_time.
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Yvan KOENIG (VALLAURIS, France)
16 février 2009
2011/04/25 use the most recent handler to get references to the target cell.
          added properties to make the changes of date location easier.
--=====
property decalage_horizontal : 1
property decalage_vertical : 0
property theApp : "Numbers"
--=====
on run
          local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2, rate
          set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
          tell application (path to frontmost application as string)
                    if my parleAnglais() then
                              set rate to text returned of (display dialog "Cell's contents" default answer "blabla bla")
                    else
                              set rate to text returned of (display dialog "Contenu de la cellule…" default answer "blabla bla")
                    end if
          end tell
          my doYourDuty(dName, sName, tName, rowNum1, colNum1, rate)
end run
--=====
on doYourDuty(d, s, t, r, c, txt) (*
d = document's name
s = sheet's name
t = table's name
r = rowIndex
c = columnIndex
txt = new cell's contents *)
          local cdt
          set cdt to my cleanThisDate(current date) (* the new date_time as a clean date_time *)
          tell application "Numbers" to tell document d to tell sheet s to tell table t
                    set value of cell r of column c to txt
                    set value of cell (r + decalage_vertical) of column (c + decalage_horizontal) to (cdt as text)
          end tell -- application …
end doYourDuty
--=====
on cleanThisDate(dt)
  (* ugly code but once I got date_time with milliseconds so if necessary, I drop them *)
          local l
          set l to my decoupe(dt as text, ":")
          if (count of l) = 4 then
                    set dt to date (my recolle(items 1 thru 3 of l, ":"))
          end if
          return dt
end cleanThisDate
--=====
set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
on get_SelParams()
          local d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2
          tell application "Numbers" to tell document 1
                    set d_name to its name
                    set s_name to ""
                    repeat with i from 1 to the count of sheets
                              tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                              if maybe is not 0 then
                                        set s_name to name of sheet i
                                        exit repeat
                              end if -- maybe is not 0
                    end repeat
                    if s_name is "" then
                              if my parleAnglais() then
                                        error "No sheet has a selected table embedding at least one selected cell !"
                              else
                                        error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                              end if
                    end if
                    tell sheet s_name to tell (first table where selection range is not missing value)
                              tell selection range
                                        set {top_left, bottom_right} to {name of first cell, name of last cell}
                              end tell
                              set t_name to its name
                              tell cell top_left to set {row_num1, col_num1} to {address of its row, address of its column}
                              if top_left is bottom_right then
                                        set {row_num2, col_num2} to {row_num1, col_num1}
                              else
                                        tell cell bottom_right to set {row_num2, col_num2} to {address of its row, address of its column}
                              end if
                    end tell -- sheet…
                    return {d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2}
          end tell -- Numbers
end get_SelParams
--=====
on parleAnglais()
          local z
          try
                    tell application theApp to set z to localized string "Cancel"
          on error
                    set z to "Cancel"
          end try
          return (z is not "Annuler")
end parleAnglais
--=====
on decoupe(t, d)
          local oTIDs, l
          set oTIDs to AppleScript's text item delimiters
          set AppleScript's text item delimiters to d
          set l to text items of t
          set AppleScript's text item delimiters to oTIDs
          return l
end decoupe
--=====
on recolle(l, d)
          local oTIDs, t
          set oTIDs to AppleScript's text item delimiters
          set AppleScript's text item delimiters to d
          set t to l as text
          set AppleScript's text item delimiters to oTIDs
          return t
end recolle
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) lundi 25 avril 2011 10:57:04

Similar Messages

  • How can i separate 4 files to individual files that are on 1 email?

    How can I separate 4 files to individual files that are all on one email?

    Export your images as png, jpg or tiff. As most users can see these formats. Tiff would be the largest format so it will take up more of your email limit and will be slower to send and receive. But will keep most of the features editable.
    Png like tiff supports transparency, whereas jpg lacks majority of the features found in the other formats but can be highly compressible. However it does so by throwing away data. So each time the file is opened and saved more data is thrown away, if repeated enough times the file is no longer usable.
    Png and jpg are great for viewing inside a web browser or email program. Tiff can be viewed in a image viewer normally associated when accessing the file from windows explorer or mac's finder.
    Once the files are exported, most email programs can select the images as attachments.

  • How can I leave an empty row?

    Hi,
    If I want to use GridBagLayout, how can I leave an empty row? Or empty column? When I create the buttons on a frame, are they created sequentially? so Is that mean I can't put something back to the first row later in the program? Thx.
    Adrian

    I'm just guessing, since I havent done Java for a long time... but if you want an empty row... what pops up in my mind first is like putting in an empty JLabel/Label... for that row... but then if you wanna fill it in... i dunno...

  • How to convert time stamp to time in update rule

    Anybody know how to convert time stamp to time only?  Any FM that I can use?
    time stamp example
    20010203100201
    Result:
    10:02:01
    Thank
    Sudree

    Please search the forum

  • Using Numbers, I need to time-stamp each line in a table for when it was entered

    I need to time-stamp each line in a table for when it was entered.
    I have a formula which is
    "=IF(F18="","",NOW())"
    it gives me the answer I want, but every time I edit any data in the formula is recalculates the date/time to reflect the most recent edit. I do not want to do this. I am open to any and all solutions including using a script. I do not really know anything about scripts except that they are really easy to use once it's written.
    I have a formula i use in excel but it requires circular references in excel. I tried using this formula in numbers but I get the error that says I cannot reference a cell that references back to the cell i’m inputting the formula into (circular reference. It is easy to use in excel just by limiting the # of iterations in preferences. I can’t seem to find any such preference in numbers. Do you know of one? here is the formula:
    "=IF(D4=”",”",IF(B4=”",NOW(),B4))"
      I use it to time stamp each line in a spreadsheet. It is the only way to keep all the previous line from recalculating everytime I add a new line. If I can’t use this formula, do you know of a way to timestamp each line without having it update everytime I add a line or edit the form?
    Thanks in advance- I know this isn’t exaclty an easy question but I have honestly looked everywhere
    emely

    Hi Emely,
    Check the Insert menu:
    The highlighted item is slightly misnamed, requiring a bit more than a simple selection (or keypress combination*) to act as a time stamp.
    Simply choosing the menu item willproduce the result shown in A2: A time and date value is entered, but only the Date part is displayed.
    Setting the cell format to Date and Time, with both parts displayed (as I've done in column B) does show both parts of the Date and Time value, but as you can see, the time part is set to midnight, as it is in any cell where you have entered only the Date part of a Date and Time value. The date was entered here in the same manner as in A3.
    To enter both the current Date and current Time, the process has a few more steps:
    Select the cell
    Go Insert > Date & Time
    Before confirming the entry, double-click the cell (now showing the Date) to open this small dialogue:
    Click the pop-up menu under Choose Date format:
    Choose the last item in the list.
    Results as shown in A4 and B4 of the table above.
    Regards,
    Barry
    •Regarding the KB shortcut shown: The Mac OS lets you define a KB shortcut for any top-level menu item. The one in the menu is a user-defined keypress combination, made to be easily remembered, not to be physically convenient to use. If doing your own, you may want to try for something eassier to get your fingers on.

  • How can i explicitly lock a row of a Table

    Hi
    How can we implement optimistic locking , i am using Oracle as Database for my Application .
    Assume that i am working on a single row of a Table .
    Now please tell me how can i explicitly lock this row , so that other simultanoues users insert or update operations are not affected to this particular row .
    I am not using any ORM related technology
    Please help .

    raviprivate wrote:
    Hi
    How can we implement optimistic locking , i am using Oracle as Database for my Application .
    Assume that i am working on a single row of a Table .
    Now please tell me how can i explicitly lock this row , so that other simultanoues users insert or update operations are not affected to this particular row .Either you want optimistic locking which does not use (database) locks at all, or you want pessimistic locking which does use database locks.
    In optimistic locking everyone is allowed to read and to update without taking out a lock. Usually the optimistic lock is realised by including either a 'version' or 'last_modified' column which with every update is either increased (version) or set to the current_timestamp (last_modified). The update statement must be issued with a condition including that column (eg UPDATE ... WHERE id=<id> AND version=<version at time of read>). If the column was already changed by another user or process zero rows will have been updated signalling to the program that another user already changed the row and the user must redo his changes, or a more complex method of change comparison can be done.

  • How can I sync my ipod to the i tunes library in my computer? and how can I make sure each Cd I play automatically is saved onto the Ipod?

    How can I sync my ipod to the i tunes library in my computer? and how can I make sure each Cd I play is automatically saved onto the Ipod?
    My problem is that if I open I tunes, the Sync ipod option in the menue is grayed out, and so not available.
    This is starting to irritate me, so any help would be much appreciated.
    Thanks!

    I have the same problem. The Sync ipod option in the menue is grayed out, and so not available. HELP!

  • How can I filter the LOV rows at the runtime

    I am working in oracle forms 6i.
    My lov is based on a view. If I selected one row from LOV, that row should not appear in list box.
    I would like to restrict rows before saving a form. How can i filer the LOV rows at the runtime?
    Please help me.

    Dear Mr.MH_BD,
    Thanks for your immediate response,
    My form is built based on master and detail link.  On the multi row detail section I am invoking this LOV.  The record group containing the following query:
    select fees_id,fees_name,term_fees from sk_fees_mst where fees_bal>0;
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    13
    Smart Class
    100
    14
    Admin Fees
    300
    If I selected the fees_id 13 for the first row of detail section, then the LOV should display only the following in the next row:
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    14
    Admin Fees
    300
    (ie.) Before commit form I need to filter the already selected fees ids from record group.
    Thanks in advance.

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How can we pass the entire rows of a table to a web service in a VC model ?

    Hi,
    On the click of the submit button, I have to pass the rows of two tables into an enterprise service. This service also takes other fields of a form as an input.
    How can we pass the entire rows of a table into a service ?
    Regards,
    Nitin

    Hi Nitin,
    It seems that you have two or three different structures to pass data using your webservice. In your main question, two tables, you can join both in one table and from there call the webservice. In order to pass the entire table you need:
    1. Draw a line between your joinned table and your service,
    2. Map the fields,
    3. Create a 'SUBMIT' in your table tool bar. Right click on your table and choose 'Create Toobar', '+', name and choose 'Submit' as your event.
    4. Go to Configure Element (Table View) 'Multiple' at Selection Mode.
    Reward points if helps you to solve your question.
    Regards,
    Gilson Teixeira

  • How to use time stamps en how to make time stamps in Adobe Reader

    How to use time stamps en how to make time stamps in Adobe Reader

    Did you find a solution? I am having the same problem.
    PDF compatibility level is too high. Supported PDF versions are PDF 1.3 and PDF 1.4 (Acrobat 4, 5 and 6). If you are using Acrobat 7 or higher you will need to save your file at a lower PDF compatibility level.

  • How to get control on each row in advance table

    hi, i have a advanced table with some data, in each row i have two radio buttons which i need to set depending on some column value in the row, i tried by following code
    for(SoftCompVORowImpl row2 = (SoftCompVORowImpl)svo.first();row2!=null;row2=(SoftCompVORowImpl)svo.next())
    if(row2.getAttribute("CommitEndDate")==null || row2.getAttribute("CommitEndDate").equals(""))
    onetime.setSelected(true);
    recurring.setSelected(false);
    else
    onetime.setSelected(false);
    recurring.setSelected(true);
    but this code is making set only one radio button (onetime), which ever i am making first true its getting selected, i need to know how to get control of each row....

    Babu,
    Basically you should use the decode function in your sql query itself and attach it with BC4J properties of radio buttons.In that case you don't have to worry about setting them declaratively !
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I reduce number of rows in Planning webform in Smartview?

    Hi,
    I downloaded a Planning webform into Smartview. I want to reduce the 1000 rows down to 20 for a particular user as he does not submit data for the other 980 rows. How can I reduce number of rows in Planning webform in Smartview?
    Someone said that I can insert vlookup code into Smartiveiw pointing to a new worksheet that has only 20 rows. I could not test it as our Planning 9.3.1 has a bug that would not take sub variables from Smartview.
    Thanks.

    Hi,
    My first reaction is why do you have a form with a 1000 rows, surely this is a design issue and doesn't benefit anybody when entering data, anyway why not have security on the dimensions then users will only see what they have access to when they retrieve the form in smart view or through the planning web front end.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can I show additional tab rows when using many open tabs?

    How can I show additional tab rows when using many open tabs?

    What method (code) did you use to get the Tab bar displaying in the space used for the Navigation Toolbar (location bar)?
    The Tab bar should be displayed above the Navigation Toolbar.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How can I make the current row in a different color  in  ADF Table 10.1.3

    Hi all
    in JDeveloper 10.1.3 ADF Table ,
    How can I make the current row in a different color ?
    thanks

    And what exactly would "the component" be?
    I tried the af:outputText, but it just creates a <span> around the value of the cell, and if I try the af:column it just won't use it at all!
    Any suggestions?

Maybe you are looking for

  • Error while running hr_sit_api.create_sit API - FLEX-INVALID NUMBER

    I am writing an Inbound interface code to import the SIT info. When I tested the  hr_sit_api.create_sit API, it gave me an error ORA-20001: FLEX-INVALID NUMBER. I made sure that the flex id number and id_flex_structure_code are correct. But, I am una

  • Change XML DB default HTTP port number from 8080 to ... ?

    Hi ! I need to change the default port number of XML DB from port 8080 to something else, because the development server also hosts a web service, which is configured to listen on port 8080 for debugging reasons. This WS is provided by our partner an

  • HOw to create a console in a GUI??

    Hi, i have redirectioned the java outoup to write in a file, it reacts perfectly to the system.out but when the new outpot becomes anything else as a printf nothing happens. Anyone knows if it could be that the console is not "flusing" the messages.

  • Matching import and export files

    Is there a way to pair up imported files with the exported .Dat files and .err error files? We are running the batch process (using upsShell.exe executed via a scheduled batch script) to import CSV files and export them to Essbase, and have had sever

  • Time Machine Deleted All Backups After Restore

    Had a very strange thing happen...I had to do a clean reinstall of Mountain Lion and manually add back everything from various backups. After the reinstall (including a completely new computer name), I was able to access all the old Time Machine back