In addition we now have the Xcode template for the App Store version of Pythonista. I’d say the app is in a decent place right now. (I’d still like background audio support- maybe including a example using this feature would get it approved by the App Store.)
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.
Posts made by az
-
RE: Beta expires in 1 day
-
RE: Beta expires in 1 day
Perhaps it’s time to consider extracting the IPA and using Cydia Impactor to extend the validity of the beta.
-
RE: Beta expires in 1 day
If anyone lives in Germany and wants to send him a snail-mail letter, he lists what seems to be a mailing address on his homepage: https://omz-software.com/
-
RE: Beta expires in 1 day
If anyone wants to send a message, they can try support@omz-software.com
-
Beta expires in 1 day
Hi! I just wanted to post a warning that the Pythonista 3.3 beta expires in 1 day (as of 5/23/19). I’ve been enjoying the new features and would rather not have to revert to 3.2 and lose the Siri integration, keyboard integration, etc. I know @omz hasn’t been around lately, but can we get a new build or an official release before the beta expires? Thanks!
Update: 12, 10, 5, 1 days
-
RE: Playing audio files in background does not work
I really would like to have this functionality. Maybe including an example of this functionality with Pythonista would qualify it as an “audio app”?
-
RE: New Beta for Pythonista 3.3
Great job on the beta!
A few small things:
Could it be possible to edit a shortcut to allow it to run in the background after it was created (if someone forgets to enable “background” when they create the shortcut)? I see that right now only the voice command can be changed after creation.Also, I noticed that the keyboard stays light in the UI editor properties fields although it is dark in the rest of the app.
Thanks, and keep up the great work!
-
RE: Programmatically Reading Plist Files to Access External Files in Pythonista
@zrzka That code worked for me. However, why does the following code work? Is it the data type in the file that requires this? Where are methods like this documented so I can use them in the future?
NSURL.URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( ns(data.data), 1 << 8, None, None, None )
Thanks again everyone!
-
RE: Programmatically Reading Plist Files to Access External Files in Pythonista
@ccc This is what I have so far:
import os, plistlib path = os.path.expanduser('~/Bookmarks.plist') dataparsed = plistlib.readPlist(path) print(dataparsed[0])
-
Programmatically Reading Plist Files to Access External Files in Pythonista
I would like to create a script that can work with files loaded in Pythonista's "external files" section. I believe the information needed for this is stored in
Bookmarks.plist
in the app's root directory. I also believe I needplistlib
to parse it. However, when I usereadPlist
, and take the 0 indexed item, it appears that that it contains a lot of \0x's and other various nonsense in between the pieces of data I need. How do I convert this data to a readable format? Thanks in advance for any help! -
RE: Programmatically enabling Low Power Mode
Thanks for your help @cvp and @JonB ! It does appear that this api has been locked down, but this still helped me learn about objc_util!
-
RE: Programmatically enabling Low Power Mode
@cvp I didn’t know about the dir command- that’s really cool!
Unfortunately, while I can use this api to retrieve the current power mode, it appears that I cannot successfully set the power mode. Setting the power mode always has no effect and returns -1 for me. There are several other power mode related methods, but all of them appear to require a second argument or third arguments I wasn’t able to provide (setPowerMode_error, and setPowerMode_fromSource_ returned False with ‘’ for a second argument. I could not get setPowerMode_fromSource_withCompletion_ or setPowerMode_withCompletion to execute (How do I provide a “block” type argument?)).
I tried running cdbatterysaver.batterySaver().init(), but that crashed Pythonista.
I’m wondering if this api requires a higher-privileged process. (Would running it as a Notification Center widget work better?)
Does anyone else have any other suggestions?
-
Programmatically enabling Low Power Mode
I am trying to programmatically enable/disable low power mode using objc_util. I found an example on Stack Exchange (https://apple.stackexchange.com/a/244040/294117) which uses a private objective c api to do this. I am unfamiliar with objective c, so I am having trouble translating the part of the code block I need into Pythonista. Do I need to import a header file? I tried importing the class using the following (this was as far as I could get):
from objc_util import * cdbatterysaver = ObjCClass('_CDBatterySaver')
I don’t know which method or property I need to use or change. Is there a way to generate a list of this in Pythonista?
How would the Stack Exchange code translate to Pythonista? Thanks in advance!