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.
Find text in console
-
@Matteo said:
do you know if the highlighted text with your script can be also copied in clipboard
Sure, it can. Do you want I modify the script to copy all highlighted texts into the clipboard?
If yes, how to separate all highlighted texts? -
@Matteo try
clp = '' for m in re.finditer(txt, t): . . . tv.addSubview_(l) clp += t[st:en] + '\n' clipboard.set(clp)
Perform your search, then paste the clipboard to check its content
Here, each highlighted text will be a new line, as example -
Hi @cvp, exactly, you read me in thought!
The choice to copy the highlighted text so that each word is on a different line is perfect for me, in this way after some calculation I can screenshot iphone screen with some highlighted text (also with different colors, thank you) and to send image to someone (it is easier to explain something with some text highlighted), with also the full string matched by your script as a text file, for further analysis (with spreadsheets or other tools).
Thank you !
Regards -
-
@cvp :-) , but my phone is so old and with storage memory so clogged that the hack works only randomly...;-)
-
@Matteo not sure that comes from the iPhone age, but perhaps due to mine 😀
I also got some problems, try the imports also at def module, because the script could be no more active but the def of the search button yesfrom objc_util import * import ui @on_main_thread def test(sender): import clipboard import console from objc_util import ObjCClass import re import ui