holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.66k stars 116 forks source link

Put File Shortcut- File name #91

Open ifuchs opened 4 years ago

ifuchs commented 4 years ago

Very simple question. I want my shortcut to accept text from the share sheet and store it as a file in a-shell. This works fine but if the Shortcut’s File parameter is set to be the Shortcut input, then a file is indeed created but the name is the entire file content. How do I create a file of a specified name with its content being the text from the Sharesheet?

ifuchs commented 4 years ago

Just to clarify, I would like run an action which has variables for the file content and for the file name. In my use case both would be coming from magic variables in the Shortcut. Is this possible and I am just not seeing it? iF not, I am not clear on how the Put/Get file actions are supposed to work.