Write file permission and terminal command parameter invoke on mac (firemonkey delphi)


By PassionateStudent In Windows I could do shellexecute to open a browser or cmd with parameters to open a file, etc.

Any examples to do things like shellexecute on a Mac?

Basically what I want is to open a file then write/append it with permissions so the users will be asked for password.

My logic is to invoke sudo (and ask for password) before stringlist.savetofile
or creating a temporary file. Based on the opened file then use terminal command sudo mv /dir/files or something like that.

Could somebody give me example code? …read more

Via: StackOverflow

Comments are closed.