bartreardon / swiftDialog-scripts

Scripts that utilise Dialog for various tasks.
MIT License
67 stars 14 forks source link

Feature Request: Select File #9

Closed JDiaz11 closed 1 year ago

JDiaz11 commented 1 year ago

I just discovered swiftDialog and I am honestly as thrilled as the proverbial kid in candy store!! Thank you for this awesome app! I was wondering if you might consider adding a Select File button feature? (similar to AppleScript's "choose file") Thank you.

bartreardon commented 1 year ago

I know you closed this already but you can do this with the fileselect option on a textfield.

e.g. dialog --textfield "Select a file",fileselect

I need to update the docs and help - I notice this isn't documented anywhere

bartreardon commented 1 year ago

oh wait - it is documented https://github.com/bartreardon/swiftDialog/wiki/Textfields#fileselect-and-filetype