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.
Outliner with drag/drop reordering - part 2
-
@ihf I guess that I'm responsible for the problem. The script displays outline name and undo button at 10 pixels from the screen top. And that is obviously not compatible with a device having a notch. I don't have this kind of device (only iPad Air 4 and iPhone SE2) thus I've never remarked a problem.
As you got an iPhone 13Pro as Xmas present, I'll have to quickly develop a new version supporting it 😂.
I'll foresee to not display anything in the safe area of the iDevice. You'll see that even the TableView will be limited just above the horizontal line at bottom.
But Pythonista fullscreen overrides the whole screen.
Wait until my evening. -
@cvp I guess all the complaints about the notch were related to more than just aesthetics.
-
@ihf are all your devices where you actually use outline.py without notch?
-
@ihf new V01.32 and outline.versions with
Version V01.32 - support all versions of iDevices, taking in account their "Safe Area" to display buttons and items
Hoping feed-back after tests with all your devices. If it works (even when turning your device), it could be my Xmas present.
My last problem has been turning the device when dates are displayed because the TableView has also been moved down to display date title. -
@cvp That works perfectly on my iPhone 13. Best wishes for a Happy and Healthy (covid-free) 2022! And thank you so much for all of your work on outline!
-
@ihf thank you for your good wishes. In my turn, I wish you that 2022 will be wonderful for you and your loved ones. No thanks for outline, you are a very appreciated customer 😂
-
-
@cvp After moving an outline file into the correct place and putting the name in the shortcut, I run the shortcut and it runs without error but I don’t see anything being added to the file. I’m not sure it’s actually running the Pyto script. I will play around some more
-
@ihf The best way to test it is first to test the shortcut on your iDevice before testing on Watch.
Then, in the action "run Pyto code", set "open console" switch ON.
Of course, Pyto has to be installed on your Watch -
@cvp I had .outline on the filename in the shortcut. I removed it and now pyto says:
Traceback (most recent call last): File "Library/Caches/Shortcuts.py", line 89 , in <module> with open(path+file,mode='rt', encoding=' utf-8', errors="surrogateescape") as filc: PermissionError: [Errno 1] Operation not perm itted: '/private/var/mobile/Library/Mobile Do cuments/iCloud~is~workflow~my~workflows/Docum ents/Outlines/ToDo_20211221_171407.outline' Exception in thread Thread-5: Traceback (most recent call last): >>> File "Library/python38/threading.py", l ine 932, in _bootstrap_inner self.run() File "Pyto.app/scripts_runner.py", line 51, in run super().run() File "Library/python38/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "<string>", line 18, in complete File "Pyto.app/Lib/rubicon/objc/api.py", li ne 651, in __getattr__ raise AttributeError( AttributeError: rubicon.objc.api.ObjCClass Py to.EditorViewController has no attribute code ToComplete ```
-
@ihf you are sure that
Outlines/ToDo_20211221_171407.outline
Exists in iCloudDrive/ShortcutsAnd you have to define Shortcuts in the accessible folders of Pyto
-
@cvp I added the Outlines directory in Shortcuts to the pyto accessible directories. I then ran the Shortcut on my iPad and the pyto script seemed to run without error. However, when I then run outline, change the path to the outlines in Shortcuts dir, and open the outline, I get “File does not (yet) exist, try again”.
-
@ihf You have also to authorize Pythonista to access iCloudDrive/Shortcuts folder in "external files/open/folder"
-
@cvp got it working from the phone but watch says
Could Not “Run Code” This action encountered an error while running on your iPhone
-
@ihf Weird, I just retested now and successfully worked.
With last Watch OS, last Pyto update from today.
Did you reset switch "Open console" off in "run Pyto code" action?Édit: ok even if switch on.
On the watch, after having asked the text to be appended, the shortcut asks if you authorize the shortcut to access to Pyto, I just tried to answer "refuse" in place of "authorize " and from this moment, I have The same problem as you.
I'LL search how to reauthorize...Solved:
IPhone/Settings/Shortcuts/Advanced/Allow Running Scripts ON
-
@cvp no luck. Works fine from phone but same error as before. Pyto was no longer on my watch (seems to have disappeared after I upgraded the phone)
-
@ihf For that, you only have to reinstall Pyto on your Watch, as usual
More: if your normal outlines are in IcloudDrive/Pythonista 3/Outlines/ folder and if you authorize, on the iPhone connected to the Apple Watch, Pyto access to this folder, you can change in the shortcut the line path = '.....' into
path = '/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/Outlines/'
and your Apple Watch shortcut will access normal outlines, no more ones copied into the Shortcuts/Outlines folder. That's a one step forward.
One thing I can't do actually is to know in the shortcut the entire full name of the outline file, with its date-time part, reason for which you have to define it in the shortcut it-self. But I have some hope.😅 -
@cvp I deleted Pyto from my watch and reinstalled it. Now if I try to start it on the watch it immediately ends.
-
@ihf why do you want to start Pyto on the watch? Do you have a Pyto script running on the watch? Or do you mean you start a shortcut running a Pyto code?
-
@cvp I don't want to run anything (right now) in Pyto on the watch but I thought it was odd that it does that. In any case the error that I get when I run the add to outline shortcut from the watch persists.