Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Sep 29, 2010, 10:52 AM   #1
macrumors newbie
Join Date: Sep 2010
"Script" to copy date and time to clipboard

I'm new to Applescripts/Automator. Basically I frequently need to add the time and date into notepad and word documents. I would like to have a keystroke that would copy the current time and date and automatically paste into whatever application I'm in, or just copy it to the clipboard. Any help would be greatly appreciate. Thanks.
jerewrig is offline   0 Reply With Quote
Old Sep 29, 2010, 03:41 PM   #2
macrumors 6502a
Join Date: Apr 2007
This should work

set {year:y, month:m, day:d} to current date
d * 1000000
result + m * 10000
result + y
result as string
set the clipboard to result
Then add it to something like Quicksilver in triggers or another command hot key assigning application.
Hansr is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How To Copy Text From Facebook To Clipboard? Secruoser iPhone Tips, Help and Troubleshooting 2 Apr 13, 2012 11:20 AM
Versions and Time Machine haravikk Mac OS X 10.7 Lion 0 Jun 21, 2011 09:21 AM
How to have date and time on the main screen of IPod touch? shankar2 iPod touch 3 Jun 25, 2009 01:23 PM
How to get date and time synchronized with the internet? seasurfer OS X 1 Dec 28, 2007 11:51 AM

All times are GMT -5. The time now is 05:52 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC