Skip to content
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

Script doesn't work when filenames contain spaces (Contains solution) #2

Open
davidvb opened this issue May 23, 2019 · 0 comments
Open

Comments

@davidvb
Copy link

davidvb commented May 23, 2019

Update
The solution turns out to be simple.

Just change:
set theFilePath to POSIX path of (thisPath as text)
to this:
set theFilePath to quoted form of the POSIX path of (thisPath as text)

And it works on any filename! \o/

@davidvb davidvb changed the title Script doesn't work when filenames have spaces in them! Script doesn't work when filenames contain spaces (Contains solution) May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant