
moving/copying attachments from one item to another
The problem is that you can't use:
MyTask.Attachments=MyPost.Attachments.
Why I don't know but that's the way it is.
The solution is to use the FileSystemObject to save the
attachments and then attach them to the new TaskItem and
then delete the files.
HAve a lok here:
http://www.slipstick.com/dev/code/copyatts.htm
Dave
Quote:
>-----Original Message-----
>Hello All:
>Im trying to automate some tasks here, by creating
TaskItems from PostItems.
Quote:
>PostItems have attachments that I have to "transfer" to
newly created
>TaskItems and that is where the problems start ... :)
><Attachments>.Add function requires a file path
parameter - it does not
Quote:
>accept objects of Attachment type. Attachment objects,
on the other hand,
>have property called FilePath but it seems to get "lost"
in the original
>object (set to "").
>Anyone faced similar problems?
>Thanx All,
>.