On the Time/Date Trigger tab, under the "Time:" section, you'd select the "Every" radio button and put in some fractional amount of minutes (.02 or something) to get seconds. But really, that's a lot of processing overhead to just show seconds ticking on a control page.
AppleScript uses the formats specified in the "Language & Text" system control panel to format the string that's returned when you coerce a date into a string. The easiest way to change what's shown is to change the format there. AppleScript uses the "Full" date format and appends the "Medium" time format. You can see/edit those if you click on the "Customize" button. If you edit the "Medium" format for Time and remove the ":" and "09" popup so that the medium line looks like this:
7:08 PM
Then here's what you'd get for the various coercions and elements of a date in AppleScript:
- Code: Select all
time string of (current date) -- result: 12:14 PM
(current date) as string -- result: Friday, February 4, 2011 12:13 PM