Author Topic: Spaces in file path does not seem to work in Mac version...  (Read 1436 times)

Floridude

  • Newbie
  • *
  • Posts: 6
Spaces in file path does not seem to work in Mac version...
« 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


StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3948
Re: Spaces in file path does not seem to work in Mac version...
« Reply #1 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.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

Floridude

  • Newbie
  • *
  • Posts: 6
Re: Spaces in file path does not seem to work in Mac version...
« Reply #2 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