Re: Date Help - D&T stamp w Short dates
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.