A macro to read file name and populate some property

Hi

i need to create a macro to read the file name and populate three property, "codifica disegno"(job n.), "revisione"(revision), and "descrizione"(description).

the file name is something like this, "N00065-01-ASSIEME STRUTTURA COMPLETA" , i used a "-" to separate the three property i need to fill in solidworks; the first in the job number the second the revision the third is the description.

It's possible to create a macro to read the file name, separate the data using the "-" symbol and create three string in the code so to add or update the file property?

thanks