Please help with script for convert EPS to transparent PNG

Hello,

I need to convert large amount of EPS files with paths to transparent PNG (one PNG file for each path in EPS).

My script is:



tell application "Finder"
    set filesList to files in "Macintosh HD:Users:xmurphy:data_input"
end tell

tell application "Adobe Photoshop CS3"
    set display dialogs to never
    close every document saving no
end tell

repeat with aFile in filesList
    tell application "Finder"
        set theFile to aFile as alias
    end tell

    tell application "Adobe Photoshop CS3"
        open theFile
        set docRef to the current document
        set docName to name of docRef

        tell document docName
            set pathCount to count of path items
            repeat with p from 1 to pathCount
                create selection path item p
                ....
            end repeat
        end tell
    end tell
end repeat

And I need to somehow save that selection to EPS file (outer area of selection must be transparent).

Thank you very much for help.

Zdenek