Automate Google Drive SDK Authorization

2013-11-08 Thread Pratik Mehta
Guys, I am stuck with a problem. #!/usr/bin/python import httplib2 import pprint from apiclient.discovery import build from apiclient.http import MediaFileUpload from oauth2client.client import OAuth2WebServerFlow # Copy your credentials from the co

Auto-authorization for Google Drive using Python in Mac OS X

2013-11-04 Thread Pratik Mehta
I have written Python code for Google Drive which uploads the image files to my drive app. I have three queries. Here is my code: #!/usr/bin/python import httplib2 import pprint from apiclient.discovery import build from apiclient.http import MediaFileUpload from oauth2client.client import OAut

Re: Screenshots in Mac OS X

2013-10-22 Thread Pratik Mehta
Hey Mark, Thanks for reverting. I had tried coding it using os.system("screencapture -s /filepath") // for selecting a particular region.. I have replied to Kevin's comment, that's exactly what I am looking for. :) Thanks ... -- https://mail.python.org/mailman/listinfo/python-list

Re: Screenshots in Mac OS X

2013-10-22 Thread Pratik Mehta
Hey Kevin, Thanks for reverting. I know about the "screencapture" function and the parameters available. But, how would I take the user input, as in, that is just command-line, as soon as I execute the program, it will take whatever kind of parameter is passed under screencapture. I want that

Re: Screenshots in Mac OS X

2013-10-22 Thread Pratik Mehta
Hey John, I want to code my own Snapshot taking program using Python. Hence, had posted this question... -- https://mail.python.org/mailman/listinfo/python-list

Re: Screenshots in Mac OS X

2013-10-22 Thread Pratik Mehta
Anyone there to help me out??? -- https://mail.python.org/mailman/listinfo/python-list

Re: Screenshots in Mac OS X

2013-10-19 Thread Pratik Mehta
Hey Ned, Thanks for reverting. I am looking for the similar functionality. Thanks for sharing that link. Could you pls help me out with the Python Code? Thanks. :) -- https://mail.python.org/mailman/listinfo/python-list

Screenshots in Mac OS X

2013-10-19 Thread Pratik Mehta
Hi Guys, Good Morning! How are you all doing? I am in need of your help. I am stuck in a problem. I want to write my own Screenshot Taking program in Python for Mac OS X. Example : Whenever Command + Shift + 3 is pressed ==> whatever is there on the screen, should be grabbed / captured, and s

Screenshots in Mac OS X

2013-10-19 Thread Pratik Mehta
Hi Guys, Good Morning! How are you all doing? I am in need of your help. I am stuck in a problem. I want to write my own Screenshot Taking program in Python for Mac OS X. Example : Whenever Command + Shift + 3 is pressed ==> whatever is there on the screen, should be grabbed / captured, and s