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

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 29, 2010, 10:52 AM   #1
jerewrig
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
Hansr
macrumors 6502a
 
Join Date: Apr 2007
This should work

Code:
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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
"Date modified" script strange behavior in Mavericks Remcokw Mac Programming 7 Mar 12, 2014 04:40 PM
Issue: iPhone 5 "Time Date Need Updating" EW800 iPhone 8 Nov 9, 2012 08:10 AM
"Right to Copy" (Up To Date Program)? Help! KieranDotW OS X 10.8 Mountain Lion 2 Jul 25, 2012 08:20 AM
iPhoto Crashes when click on "adjust date and time" salar101 OS X 0 Jul 24, 2012 04:55 PM
How do I remove the "date, time and usage" on the top bar? JeremiahW Jailbreaks and iOS Hacks 7 Jun 2, 2012 02:21 AM

Forum Jump

All times are GMT -5. The time now is 07:29 AM.

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

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