How to get attachment date with lotus script

Hi,

i want to get the attachment date, how we can handle the attachment date, i check with embedobject properties its having only the size,name etc but i want the date, so please help if any one know the answer,

waiting for responses

thanks

arti reddy

Subject: How to get attachment date with lotus script

To my knowledge from embedobject you cant get attachment date. but there is a solution.

have a hidden field and while attaching itself update the date in this field. and you can easily retrive this date at ease.

Hope you got it…

Subject: RE: How to get attachment date with lotus script

Hi prasad,

thanks for response, here the problem is already the attchments are there in the document, this for migration, so no chance to create the field right now.

arti

Subject: How to get attachment date with lotus script

Arti - I did some digging and have successfully used…

evaluate(@AttachmentModifiedTimes, doc)

and…

Filedatetime(path$)

…either works.

I ended up using Filedatetime as to guarantee that the date I am getting is for the right file. You need to extract the file first and then issue the Filedatetime - I was skeptical, but it does retrieve the correct date - same as @AttachmentModifiedTimes. The latter retrieves an array of dates and you have to trust that it lists the dates in the same order that RichTextNavigator finds the attachments.

Good luck :slight_smile:

PS

Subject: RE: How to get attachment date with lotus script

Peter,

This is exactly the way I’ve been doing it in the past, using the FileDateTime in LS. Be aware that it only works if the file was attached through the Notes client, or through LS on the server. If the file was attached via a File Upload control on the web, then the original file date/time is gone, since web upload doesn’t support it.

/Peter

Subject:

Subject: How to get attachment date with lotus script

You need to save the file to disk to be able to get the file’s date and time.

/Peter

Subject: RE: How to get attachment date with lotus script

Peter - can you elaborate on your idea - how do I get time and date from a detached file in the file system? Is it done through Lotusscript? I am trying to do the same thing Arti is doing - detach files for migration purposes and I need to supply a file timestamp to the downstream system.

Thanx - ps.