Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

demuro1

macrumors newbie
Original poster
Aug 20, 2007
12
0
Hello,
I am currently taking a programming class and they are teaching us java. I am using text wrangler as my editor and then I have an applescript I'm using to do the following

Compile:
-this applescript just sends the active text wrangler view to terminal and terminal compiles it.
-the errors are output to a new text edit file i have named compile_log.

I'd like the applescript to also add the date the document was last modified to the end of the file in the format YearMonthDayHourMinSec YYYYMMDDhhmmss

does anyone have any idea on this

Thanks!
 
Info : Dates & Times in AppleScripts
or use the date command. Lookup the man page for date for more information.

Example :

Code:
-- In the format YearMonthDayHourMinSec YYYYMMDDhhmmss
set theDate to do shell script "date +%Y%m%d%H%M%S"
-- the result
-- "20121017232332"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.