You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/
The text was updated successfully, but these errors were encountered:
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
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/
The text was updated successfully, but these errors were encountered: