Spaces in file path does not seem to work in Mac version...

Started by Floridude, November 15, 2015, 04:35:52 AM

Previous topic - Next topic

Floridude

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


StarGeek

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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Floridude

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