I’m working on a project that essentially creates files via a shell script using “sox”. The application is not document-based, all its doing is calling a script that creates files, and doesn’t internally save any data. However, I need to prompt users where to save the file, and what file name to use before the script is run. What would be the best way to have a “save as..” dialog box to get a filepath/filename from a user to pass to the shell script?
Share
This is pretty straightforward. You tagged this question with
NSSavePaneland that’s exactly what you want to use.See also “The Save Panel” in the File System Programming Guide.