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

Re: Date Help - D&T stamp w Short dates


  • Subject: Re: Date Help - D&T stamp w Short dates
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Tue, 07 Jan 2003 15:42:10 -0500

> Date: Tue, 07 Jan 2003 09:03:51 -0800
> Subject: Re: Date Help - D&T stamp w Short dates
> From: "Domains4Days.com" <email@hidden>

> I tried to create something very simple. My attempt to run it produces an
> error saying - ... Does not understand the date to string command...
>
> set d to date "Monday, December 9, 2002 08-04-28 PM"
>
> set test to DateToString("mm", d) --> "12"
>
> set the clipboard to d

You are attempting to set the clipboard to variable "d", where as I
assume you want to set it to the value returned from the DateToString()
handler, the variable "test":

set d to date "Monday, December 9, 2002 08-04-28 PM"

set test to DateToString("mm", d) --> "12"

activate --> before working with the clipboard

set the clipboard to test


If you actually want to set the clipboard to a "pure" date, then
you might need to explicitly coerce the date object to a string:

set d to date "Monday, December 9, 2002 08-04-28 PM" --> date object

activate --> before working with the clipboard

set the clipboard to (d as string)


{ Arthur Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m

"Safe the Nature" - political graffiti in Prague
}
_______________________________________________
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: "Domains4Days.com" <email@hidden>
  • Prev by Date: Re: Quark 5 can't copy selection w/styles
  • Next by Date: Re: Launching scripts from Dragthing
  • Previous by thread: Re: Date Help - D&T stamp w Short dates
  • Next by thread: Re: Date Help - D&T stamp w Short dates
  • Index(es):
    • Date
    • Thread