msnews.microsoft.com
7/9/2007 11:18:00 PM
Yeah, I thought of that and tried it both ways, same result...
Daniel Berger wrote:
> On Jul 8, 11:13 am, Mike Cargal <m...@cargal.net> wrote:
>
>> I've mapped a Z: drive on my PC from my mac, but whenever I try the
>> following script from the command line, it works fine, but when I try to
>> execute it within Eclipse with the Ruby Development Tools plugin
>> installed, it just terminates immediately with no output.
>>
>> require 'exifr'
>> Dir.glob("Z:/2007/07/02/*.JPG").each do |filename|
>> jpg = EXIFR::JPEG.new(filename)
>> print "#{filename}: \n"
>> jpg.exif.to_hash.each do |key,val|
>> print "\t#{key}=#{val}\n"
>> end
>> end
>>
>> Would anyone happen to know why that is? I can work around the issue by
>> running from the command line, but I'm embarrassed to admit how long I
>> spent trying to figure out what was wrong with my code, when, in fact it
>> works fine from the command line.
>>
>
> Just for kicks, what happens if you replace the forward slashes with
> backslashes? And is it possible there's some sort of interaction
> between exifr and Eclipse happening?
>
> Regards,
>
> Dan
>
>
>
>