Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Return Program Results



I am writing a program using ImageMagick and I had one quick question. 
The first step in my scaling process is to get the width and height of 
the image. I have successfully done this on the command line using the 
following command:

         /usr/local/bin/identify -format "%w" 
/Users/lopatins/Desktop/image.jpg

The above command will return the width of the file. I am running 
commands successfully using:

             Process process = Runtime.getRuntime().exec(command);

Where command equals the string to run.

What I don't know is how to return the output from the command line to 
a String variable that I can use in my program. Do you know how to pull 
the output of the program back into WebObjects?

Thanks very much in advance for any help you can provide.

Thanks,
Scott
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Documentation for 5.2.2 (From: "Colin O'Brien" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.