• 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
Coerce a string to a date??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Coerce a string to a date??
      • From: Emmanuel <email@hidden>
    • Re: Coerce a string to a date??
      • From: AppleScript Guru <email@hidden>
  • Prev by Date: Re: hide command?
  • Next by Date: Re: Bevel and emboss with PSD7
  • Previous by thread: Scripting with DAVE
  • Next by thread: Re: Coerce a string to a date??
  • Index(es):
    • Date
    • Thread