← Back to team overview

sikuli-driver team mailing list archive

[Question #255254]: File not opening in program

 

New question #255254 on Sikuli:
https://answers.launchpad.net/sikuli/+question/255254

I am trying to open a file from a directory, edit the file, then move on to the next file.  I can open the program, but the file never opens up in it.  Here is my code thus far:

openApp("C:\\Program Files (x86)\\Nuance\\Power PDF\\bin\\NuancePDF.exe")


import os
dir = "C:\\Users\\user\\Desktop\\PDF Testing\\test\\"
for e in os.listdir(dir): # this starts the loop
    fileName = os.path.join(dir, e)
    print fileName
    f = open(fileName)
    
 #   edits of the file

    f.close


Any tips to get the file to open?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.