|
Prev: Sky Writing
Next: 'I Love NY' type graphics
From: joled on 14 May 2007 11:01 Hello, In ImageReady I created a droplet to add a watermark to a bunch of jpg images. I now want to run the droplet from a cygwin shell so I can create a script to add the watermark to hundreds of jpegs. The watermark.exe is in my cygwin bin directory which in windows equates to c:/Documents and Settings/me/bin. The image I am testing is in a directory called joetest named foo.jpg. So when I try to run the watermark.exe like this $cd c:/Documents and Settings/me $bin/watermark.exe joetest/foo.jpg I get an ImageReady error "Could not play back the batch. The file was not found. (c:\Documents and Settings\me\joetest\foo.jpg." The file does exist in the folder it thinks it should be in. If from Windows Explorer I drag foo.jpg unto watermark.exe it works fine. Does anyone have any ideas how to resolve this or what might be causing this error whenI try to run the droplet from a cygwin shell? Any ideas are appreciated. Thanks in advance. Joe
From: Mike Russell on 14 May 2007 16:00 <joled(a)rcn.com> wrote in message news:1179154870.891548.49560(a)y80g2000hsf.googlegroups.com... > Hello, > In ImageReady I created a droplet to add a watermark to a bunch of jpg > images. I > now want to run the droplet from a cygwin shell so I can create a > script to add the > watermark to hundreds of jpegs. The watermark.exe is in my cygwin bin > directory which > in windows equates to c:/Documents and Settings/me/bin. The image I am > testing > is in a directory called joetest named foo.jpg. So when I try to run > the watermark.exe like > this > > $cd c:/Documents and Settings/me > $bin/watermark.exe joetest/foo.jpg > > I get an ImageReady error "Could not play back the batch. The file was > not found. (c:\Documents and Settings\me\joetest\foo.jpg." > > The file does exist in the folder it thinks it should be in. > If from Windows Explorer I drag foo.jpg unto watermark.exe it works > fine. Does anyone > have any ideas how to resolve this or what might be causing this error > whenI try to > run the droplet from a cygwin shell? Any ideas are appreciated. Hi Joe, Embedded spaces give cygwin a stomach ache. I'd recommend moving the images to a folder with no spaces in the name. If your images are hard to move, change your script to have quotes around the filename. -- Mike Russell www.curvemeister.com/forum/
From: joled on 15 May 2007 08:43 Hi Mike, I am quoting the path so that doesn't appear to be the problem. It looks like, by default, ImageReady looks in c:/Desktop and Settings/me for the input file. it prepends c:/d & s/me to the beginning of the path of the input file. I was expecting it to use the full path if I gave it the full path but it still prepends c:/d&s/ me. I have gotten around it by making sure I copy the files to a folder under c:/d&s/me. Now I wonder if there is a way to tell when the completion of the droplet has been reached. cygwin appears to background the process but will not let me "wait" for it to proceed with the execution of the script. Thanks. Joe > > Hi Joe, > > Embedded spaces give cygwin a stomach ache. I'd recommend moving the images > to a folder with no spaces in the name. If your images are hard to move, > change your script to have quotes around the filename. > -- > > Mike Russellwww.curvemeister.com/forum/
From: Mike Russell on 15 May 2007 13:28 <joled(a)rcn.com> wrote in message news:1179233024.179936.116800(a)e65g2000hsc.googlegroups.com... > Hi Mike, > I am quoting the path so that doesn't appear to be the problem. It looks > like, by default, ImageReady looks inc:/Desktop and Settings/me for the > input file. it prepends c:/d & s/me to the beginning of the path of the > input file. I was expecting it to use the full path if I gave it the full > path but it still prepends c:/d&s/ me. < That's a very reasonable expectation, and a rather dreadful command line interface on ImageReady's part. > I have gotten around it by making sure I copy the files to a folder under > c:/d&s/me. Glad you found something that works. > Now I wonder if there is a way to tell when the completion of the droplet > has been reached. cygwin appears to background the process but will not > let me "wait" for it to proceed with the execution of the script. My Unix is a bit rusty, not to mention my cygwin. If you can get hold of the pid of the droplet, perhaps with a combination of ps and awk, you can use wait(1) to hang until it finishes. -- Mike Russell www.curvemeister.com/forum/
From: joled on 15 May 2007 14:43 On May 15, 1:28 pm, "Mike Russell" <RE-MOVEm...(a)Curvemeister.comRE- MOVE> wrote: > <j...(a)rcn.com> wrote in message > > news:1179233024.179936.116800(a)e65g2000hsc.googlegroups.com... > > > Hi Mike, > > I am quoting the path so that doesn't appear to be the problem. It looks > > like, by default, ImageReady looks inc:/Desktop and Settings/me for the > > input file. it prepends c:/d & s/me to the beginning of the path of the > > input file. I was expecting it to use the full path if I gave it the full > > path but it still prepends c:/d&s/ me. < > > That's a very reasonable expectation, and a rather dreadful command line > interface on ImageReady's part. > > > I have gotten around it by making sure I copy the files to a folder under > > c:/d&s/me. > > Glad you found something that works. > > > Now I wonder if there is a way to tell when the completion of the droplet > > has been reached. cygwin appears to background the process but will not > > let me "wait" for it to proceed with the execution of the script. > > My Unix is a bit rusty, not to mention my cygwin. If you can get hold of > the pid of the droplet, perhaps with a combination of ps and awk, you can > use wait(1) to hang until it finishes. > -- > > Mike Russellwww.curvemeister.com/forum/ My saga continues. I restarted my computer. Now when I run the droplet the input path it defaults to looking in is c:\windows\system32\me not c:\docs&settings\me. I'm not sure how to get it to look in c:\docs&settings\me again. Very anoying. Joe
|
Pages: 1 Prev: Sky Writing Next: 'I Love NY' type graphics |