12-22-2023, 11:41 PM
You're supposed to give the second and third parameters. They are not optional. The Wiki page "synposis" is badly written for this function in particular.
The second parameter: The function needs to know where to begin to show files to the user. I don't know a lot about MacOS so I don't know what is the default path for your account's Documents directory. That should be the value to use if you don't care otherwise what it is.
The third parameter is the type of file the user desires to show in the open file requester. In the least this should be "*.*" but again I don't know if that could work on Macintosh computer with its original operating system. If you require text files then it should be "*.txt". If you aren't going to be the only one using the program that you write, it would be nice to indicate a bit of help such as "Text files". This has to be indicated in the fourth parameter.
In the third parameter must use the vertical bar to separate the wildcard paths if there is more than one path desired to be shown in the open file requester. The fourth parameter then must have the same order of descriptions.
The second parameter: The function needs to know where to begin to show files to the user. I don't know a lot about MacOS so I don't know what is the default path for your account's Documents directory. That should be the value to use if you don't care otherwise what it is.
The third parameter is the type of file the user desires to show in the open file requester. In the least this should be "*.*" but again I don't know if that could work on Macintosh computer with its original operating system. If you require text files then it should be "*.txt". If you aren't going to be the only one using the program that you write, it would be nice to indicate a bit of help such as "Text files". This has to be indicated in the fourth parameter.
In the third parameter must use the vertical bar to separate the wildcard paths if there is more than one path desired to be shown in the open file requester. The fourth parameter then must have the same order of descriptions.


