I had written a script that will convert color to bw photos and relink the converted photos in indesign. It works (without the options), but when I do they I lose the transparency of the tif. I tried adding "With options code" and either I get errors or it does nothing. The code is below can anyone see what Im doing wrong, what am I not doing to get the options to work.
tellapplication "Finder" tosetorigimagestofilesofentire contentsoffolderpicfolder
repeatwithiinorigimages
setoneImagetoiasstring
tellapplication "Finder"
setanametonameoffileoneImage
setAppleScript'stext item delimitersto {"."}
setextentiontotext item 2 ofaname
setfnametotext item 1 ofaname
endtell
ifextention≠ "PDF" then
tellapplication "Adobe Photoshop CS6"
telldocument 1
openfileoneImage
change modetograyscale
setmyFiletopicfolder& fname& "_BW"
____________________________Here is the problem___________________________________
saveinmyFileasTIFFwith options {byte order:Mac OS, embed color profile:false, image compression:LZW, save alpha channels:false, save layers:true, transparency:true} appendinglowercase extension
------------------------------------------------------------------------------------------ ------------------------
close
endtell
endtell
else
display dialog "One or more images are PDFs. You will need to process these and relink them manually" buttons "OK" default button "OK" giving up after 10
endif
endrepeat