Coerce a string to a date??
Coerce a string to a date??
- Subject: Coerce a string to a date??
- From: Michael Tompsett <email@hidden>
- Date: Wed, 19 Jun 2002 17:42:32 +0100
Hi
I am trying to write a script whereby a quark page is opened if its
modification date is more recent than a date from a field in filemaker pro.
I have no problems getting hold of the modification date of the quark file
but I seem unable to coerce the data from filemaker into a date.
I have tried various date formats in the filemaker field e.g 6/6/02
06/06/2002 Wednesday, June 19, 2002 1:50:42 PM. When I get the data out of
filemaker, i can get it out as a string or list but it will not coerce to a
date format.
Below is what I have been working with as it will not work. It comes back
with an error message of "Can't get date" on the 3return date lastupdate2
line Please help!
Thanks, Michael
tell app "Filemaker Pro"
activate
tell record 1
set lastupdate to cell "lastupdate"
End tell
End tell
tell app "Finder"
activate
return date lastupdate
End tell
_______________________________________________
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.