require 'rubygems' # # Needed by rbosa, mini_exiftool, appscript, --at
least in my installation
require 'FileUtils'
require 'mini_exiftool' # a wrapper for the Perl ExifTool
# I have a couple of others in my script, but these two are the ones
conflicting
FileUtils and mini_exiftool are apparently both trying to use the same
contant. Here's the error I get using TextMate:
require 'rubygems' # # Needed by rbosa, mini_exiftool, appscript, --at
least in my installation
require 'FileUtils'
require 'mini_exiftool' # a wrapper for the Perl ExifTool
# I have a couple of others in my script, but these two are the ones
conflicting
FileUtils and mini_exiftool are apparently both trying to use the same
contant. Here's the error I get using TextMate:
Script runs and is doing what I want AFAIK, but there may be some glitch
that I haven't detected yet.
Your fileutils require is "require 'FileUtils'", while mini_exiftools probably requires is as "require 'fileutils'". Because of the case difference, require thinks it hasn't seen fileutils before when mini_exiftool require's it, and tries to load it again. At least, that's my guess. Try changing your "require 'FileUtils'" to "require 'fileutils'" and see if the warnings go away.
Your fileutils require is "require 'FileUtils'", while mini_exiftools
probably requires is as "require 'fileutils'". Because of the case
difference, require thinks it hasn't seen fileutils before when
mini_exiftool require's it, and tries to load it again. At least,
that's my guess. Try changing your "require 'FileUtils'" to "require
'fileutils'" and see if the warnings go away.