running droplet from cygwin shell-file not found

J
Posted By
joled
May 14, 2007
Views
350
Replies
4
Status
Closed
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

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

MR
Mike Russell
May 14, 2007
wrote in message
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/
J
joled
May 15, 2007
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/
MR
Mike Russell
May 15, 2007
wrote in message
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/
J
joled
May 15, 2007
On May 15, 1:28 pm, "Mike Russell" <
MOVE> wrote:
wrote in message

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

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections