[OMC] OMC paste date and time

OnMyCommand discussion omc at abracode.com
Mon Sep 15 19:06:20 PDT 2008

I have an OMC script to add date.time to a file (works great):

mv __OBJ_PATH__
  __OBJ_PARENT_PATH__/__OBJ_NAME_NO_EXTENSION__-`date +"%Y%m%d.%H%M% 

But I am unable to get a version to paste date and time into a  
document the way I like.

This works but I would also like to suppress the trailing linefeed.

date +"%Y%m%d.%H%M%S" | pbcopy

[X] Paste Clipboard after Execution

Any idea on how to do this?

Santa Cruz, California

More information about the OMC mailing list