> I'd like to pass to edate just the month and year, so I suppose I
> should use the rightString method
> something like
> -- the date
> set eyear to rightString(edate, " ")
> set edaymonth to leftStringFromRight(edate, " ")
> set emonth to leftString(edaymonth," ")
> set emonthyear to month & " " & eyear
> if edate is not "" then
> set ed to HeSheNow & " " & everb & " " & emonthyear
> end if
> But I get the following error
> structure 3 of individual id "@I655@" of document "O'Hara and
> Stuart.gedpkg" doesn’t understand the rightString message
> any ideas?
> thanks
> Jon
I am not sure what rightString() (etc.) are? I don't think it is a defined function in AppleScript? You could write one and call it, but otherwise I cannot tell what you want to do. You mentioned getting just month and year. Rather then try to decode the date string (which will need to handle lots of special cases), the much better approach is to reformat the date using a custom scripting command for GEDitCOM II such as
which will reformat any date using just month and year. For example input "JUL 1776" would outlut "JUL 1776" as I think you want. The format supplied need not include all parts of the date.
These and many other date commands are described inthe "Scripting Command" section on the "Scripting Features" chapter of the GEDitCOM II help.