Re: problems with opening files due to file's path

2008-06-11 Thread Thomas Morton
@Mike and the others yesterday I did think after I posted that code (the string substitution thing) that it might do that. Thanks for clarifying that it was rubbish :P @ Alexnb I'm do a lot of support on a community forum that uses Python as it's language - I can tell you from experience tha

Re: problems with opening files due to file's path

2008-06-10 Thread Thomas Morton
, and the output startfile(r"%s"%full)***full is the path*** startfile(r"%s"%full) WindowsError: [Error 2] The system cannot find the file specified: '"C:\\Documents and Settings\\Alex\\My Documents\\My Music\\Rhapsody\\Bryanbros\\Jason Mraz\\I\'m Yours

Re: problems with opening files due to file's path

2008-06-10 Thread Thomas Morton
maybe try string substitution... not sure if that's really the BEST way to do it but it should work startfile(r"%s"%variable) -- From: "Alexnb" <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2008 7:05 PM To: Subject: Re: problems with opening files

Re: Getting current screen resolution

2008-06-10 Thread Thomas Morton
To: Subject: Re: Getting current screen resolution Thomas Morton wrote: This is a "thing" that has been annoying me all morning: and I can't work out how to do it. I need a way to get the DPI or screen resolution of the monitor that a script is currently runnign on. I have a way in

Getting current screen resolution

2008-06-09 Thread Thomas Morton
This is a "thing" that has been annoying me all morning: and I can't work out how to do it. I need a way to get the DPI or screen resolution of the monitor that a script is currently runnign on. I have a way in Windows but it doesnt port to Unix (which is important). Any ide