• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Time/Date stamping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time/Date stamping


  • Subject: Re: Time/Date stamping
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 9 Aug 2002 09:39:49 -0700

Well, in that case, try this:

set now to the time string of the (current date)
set {tid, text item delimiters} to {text item delimiters, {":"}}
set now to the text items of now
set text item delimiters to {"-"}
set now to now as text
set text item delimiters to tid
set now to text 1 through -4 of now --to strip am/pm

--Michelle

On Friday, August 9, 2002, at 09:24 AM, Steve Thompson wrote:

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.

We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
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.

References: 
 >Re: Time/Date stamping (From: Steve Thompson <email@hidden>)

  • Prev by Date: Re: AppleScript at a Glance
  • Next by Date: Detach and reattach to shell command
  • Previous by thread: Re: Time/Date stamping
  • Next by thread: Re: Time/Date stamping
  • Index(es):
    • Date
    • Thread