Forum Archive

Rough stick

sam rod

Hello everyone, i try to share files. How to start the sheet of share as usual is in iOS. and some thing is pulling my leg : how to i get the source writed in the central control ?.
Thaks

zencuke102

Could you post an example. I can't quite figure out what you are asking.

sam rod

how do i call this share sheet?

sam rod

Is like this to share default:
```
import glob
import dialogs
path='/private/var/mobile/Containers/Shared/AppGroup/29427C70-DDD5-4356-A6C7-0FBAD22F6230/Pythonista3/Documents/'
files=[f for f in glob.glob(path+'*/.py',recursive=True)]
files_name=[]
form_list_of_sections=[]
for f in files:
import os
with open(f,'r') as file:
fn=os.path.basename(file.name)
file.close()

files_name.append(dict(type = 'check', title = fn,
key = 'to_share', value = False)
)

form_list_of_sections.append(('pick for share pp',files_name, 'the files will appear in other app by share default '))

diag = dialogs.form_dialog(title = 'Form Dialog', sections=form_list_of_sections)```

cvp

@sam-rod try

console.open_in(file_path)
sam rod

is not what i looking for. Wherever.

cvp

@sam-rod I really don't understand what you want because it is the share sheet.

sam rod

I want the link in string type of this control central