Re: Time/Date stamping
Re: Time/Date stamping
- Subject: Re: Time/Date stamping
- From: Steve Thompson <email@hidden>
- Date: Fri, 09 Aug 2002 17:24:03 +0100
On 9/8/02 4:48 pm, "Jeff Davison" <email@hidden> wrote:
>
I would like to add the current time to a file name and I am unclear on what
>
the best solution would be.
set the time_index to the time of the (current date)
set the hour_index to ((the time_index) / hours) div 1
set the minute_index to (((the time_index) / minutes) - (the hour_index *
60)) div 1
set the seconds_index to ((the time_index) - (the hour_index * 3600) - (the
minute_index * 60)) div 1
set filename to "Filename " & hour_index & "-" & minute_index & "-" &
seconds_index
-->"Filename 17-22-16"
Watch for line breaks
>
For example: "Filename10:23:34:02:12:02"
You can't use colons in file names. I've used hyphens.
Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.