Newbie with problems in "Photos"

Hello everybody.
First of all, I am a newbie in applescript and sure my questions isn´t going to be very interesting. I apologize for that, I don´t want to disturb anybody, i just want to learn applescript and I need some help to get it.
I´m trying to move some pictures of my app “Photos” to a new album using applescript but i´ve got problems to do it by date as I want.
When i try to add them to the album by date the editor send me an error and doesn´t work
how to do it?
thanks in advance