• 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
Date Help - D&T stamp w Short dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date Help - D&T stamp w Short dates


  • Subject: Date Help - D&T stamp w Short dates
  • From: "Domains4Days.com" <email@hidden>
  • Date: Mon, 06 Jan 2003 09:40:21 -0800

Basically, I would like to create a date - time stamp that ideally would
look like the following

IDEAL1: 01-06-03 09-23-21 AM (mm-dd-yy)
IDEAL2: 2003-01-06 09-23-21 AM (yyyy-mm-dd)

- This could be pasted in as a file name and would sort very cleanly
(leading zeros) and also be a PC friendly file name (without disallowed
characters)

Here's what I have so far:

IDEAL: 01-06-03 09-23-21 AM

... Currently my script listed below looks like:

Monday- January 6- 2003 09-23-21 AM

Question: Can anyone help me fix this?

hint:
I've been fooling with these commands
set showdate to theDate's date string
set showtime to theDate's time string

*** I imagine all I really need is to be able to get the numeric equivalents
for

set thisdate to ((the current date)

The day of thisdate (a number 1,2,3 etc.)
The month of thisdate (a number 1,2,3 etc.)
The year of thisdate (a number 2003 or 03)




=== start ===

set the message_text to ((the current date) as string)

set the message_text to replace_chars(message_text, ",", "-")
set the message_text to replace_chars(message_text, ":", "-")

on replace_chars(this_text, search_string, replacement_string)
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of this_text
set AppleScript's text item delimiters to the replacement_string
set this_text to the item_list as string
set AppleScript's text item delimiters to ""
return this_text
end replace_chars

set the clipboard to message_text

=== end ===

Question: I would like to drop the Jaguar 10.2.3 Finder on AppleScript to
see its dictionary... But I don't know where is ... Do you?

BTW: last time I asked a while back, I was told and let the Finder for
Jaguar 10.2.x was not recordable. Is that still the case?

--
RevDave
email@hidden
[db-lists]

Check out some great Domain Names at:
http://www.domains4days.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: Date Help - D&T stamp w Short dates
      • From: "Patrick D. Fox" <email@hidden>
    • Re: Date Help - D&T stamp w Short dates
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: saving a file in GraphicConverter
  • Next by Date: Re: Continuing problem with Satimage OSAX
  • Previous by thread: Re: Help scripting form IE...
  • Next by thread: Re: Date Help - D&T stamp w Short dates
  • Index(es):
    • Date
    • Thread