June 26, 200817 yr This applescript works great: tell application "FileMaker Pro Advanced" set img_URL to cell "zz__web_ImgPath_CertImg__lct" of current record do shell script "cd /Applications/Cert_Print; curl -m 1 -fO " & img_URL end tell tell application "FileMaker Pro Advanced" set img_path to cell "zz_local_cert_path" of current record do shell script "lp" & img_path end tell Problem I am having is that I would like the image that is downloaded to be fit to the size of the page when printed. I saw the -o option and fitplot but can't seem to make it work. Any ideas or help would be really appreciated. Thanks, Drew
June 26, 200817 yr Author I found a little more documentation that might help related to fit plot "This feature depends upon an accurate size in the print file. If no size is given in the file, the page may be scaled incorrectly!"
June 26, 200817 yr Author Great advise Fenton: Here is the new script tell application "FileMaker Pro Advanced" set img_URL to cell "zz__web_ImgPath_CertImg__lct" of current record do shell script "cd /Applications/Cert_Print; curl -m 1 -fO " & img_URL end tell tell application "FileMaker Pro Advanced" set img_path to cell "zz_local_cert_path" of current record do shell script "sips --resampleWidth 2250 " & img_path do shell script "lp -o fitplot " & img_path end tell The fitplot is probably not neede at this point but it can't hurt. Thanks, Drew
Create an account or sign in to comment