I've added editor.reload_files() to the script because when it creates files in pythonista my list qas not being updated unless I've ordered again or closed and opened the app.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by fcrespo82222
-
RE: Using the Dropbox Module
-
RE: Pythonista now supported in Launch Center Pro
Awesome, my sms script will be easier to implement!!
-
Send SMS from Pythonista
Source: https://gist.github.com/4162427
Simple script to open the SMS compose screen (it plays well with Launch Center Pro)Use it as a custom URL action:
pythonista://simplesms?action=run&args='tel={tel}&body={msg}'
Where {tel}: Phone to send SMS
{body}: Message to sendWarning: As the iOS doesn't allow to send SMS directly, the script will open the compose screen
Warning 2: iOS doesn't support the message to be passed by url scheme only programmaticaly, so when the SMS screen is opeoned you will have to paste the clipboard contents to the SMS itself.
Hey developers, it is possible for a future version include some python binding for the objective-c code below to make it possible prepopulate the text os the SMS
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = self;picker.recipients = [NSArray arrayWithObject:@"48151623"];
picker.body = @"Body text.";[self presentModalViewController:picker animated:YES];
[picker release]; -
RE: Send SMS from Pythonista
I've made a lot of changes.
Now you must run the program with args:
usage: simplesms.py generate_url [-h] telephone message
positional arguments:
telephone phone number to send sms
message message to sendusage: simplesms.py run [-h] pythonista_args
positional arguments:
pythonista_args pythonista args part, spaces replaced with + then quoted -
RE: Send SMS from Pythonista
I'm happy with your answer. Seeing that the app is in constant development is awesome. Could you give a time frame for the next version? Just "a few days" or "couple of months" will suffice.
-
Simple script to sync files to dropbox
Hi guys, this is my first attempt to make a useful script in python.
I've made a script to use your dropbox account using the "app_folder" permission to upload and download scripts from dropbox.
https://gist.github.com/4137305Any help on how to improve it will be very welcome!
Hope you enjoy it.
-
RE: Simple script to sync files to dropbox
Yep, you're right.
Nonetheless, I'll continue to improve my, for the sake of learning.