-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On macOS impossible to open file with comma followed by a space #890
Comments
@miguelpruivo I'd need a programming advice: macOS returns the list of picked files as a string where each file is prefixed with
My current implementation splits the string by I could change the implementation to split by No matter which separator I use to split the string returned by macOS, there will be some file names that won't work. Do you have a better idea than splitting by |
@philenius I’d split it by Since we’re working with strings I’m afraid there isn’t much to do. |
Change the pattern from ", " to ", alias " when splitting the output of osascript. Although this is not a perfect solution, it allows to pick filenames that contain a comma followed by a blank (", ").
@miguelpruivo thanks for your quick response, then I'll do it that way. Just for clarification: my example was slightly misleading. Actually, the first part that comes after
|
…ith-comma-followed-by-blank #890: cannot pick filenames with comma followed by blank
Describe the bug
Files with a comma followed by a space, e.g. "test, test.csv", cannot be opened correctly in the macOS version. The result consists of two non-existing files, even though only one file was selected.
Platform
Platform OS version
macOS Big Sur 11.5.2
How are you picking?
The text was updated successfully, but these errors were encountered: