ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Floridude on November 15, 2015, 04:35:52 AM

Title: Spaces in file path does not seem to work in Mac version...
Post by: Floridude on November 15, 2015, 04:35:52 AM
Hello,

I have the exiftool and the lib folder in a subfolder of an app. When setting the path to the exiftool executable, I find that it does not work if the path has spaces in it.

For example, this does not work:

/users/johndoe/my folder/my app/exiftool

However, when removing the spaces, this does work:

/users/johndoe/myfolder/myapp/exiftool

Is this a bug? I just downloaded and am using Exiftool version 10.05 for Mac. I am running OS X Yosemite.

Thanks,

Keith

Title: Re: Spaces in file path does not seem to work in Mac version...
Post by: StarGeek on November 15, 2015, 02:19:27 PM
This is a property of most, if not all, command lines.  They use spaces to separate the command and the various arguments.  Try enclosing the path in quotes.  Single quotes for the mac, I believe.  Also, since you're on a mac, if you don't want to use quotes, I think you can escape the space by putting a backslash \ in front of the space /users/johndoe/my\ folder/my app/exiftool though I could be wrong on that point.
Title: Re: Spaces in file path does not seem to work in Mac version...
Post by: Floridude on November 15, 2015, 06:38:13 PM
Thanks StarGeek; that did the trick! And just to clarify, it is important to keep the space after the backslash:

This works:

/users/johndoe/my\ folder/my\ app/exiftool

But this doesn't:

/users/johndoe/my\folder/my\app/exiftool

Best Regards,

Keith the Floridude