Le 4 janv. 07 à 16:23:26, Ruta a écrit :
Script for #1:
on resize(y)
--get rid of .jpg or .jpeg at the end of file name
if y ends with ".psd" then
set new_y to (characters 1 thru -5 of y) as string
else if y ends with ".tif" then
set new_y to (characters 1 thru -5 of y) as string
else if y ends with ".tiff" then
set new_y to (characters 1 thru -6 of y) as string
else
set new_y to y
end if
set OFset to offset of "." in y
if text OFset thru end of y is in {".psd", ".tif", ".tiff"} then set
new_y to text 1 through (OFset - 1) of y
set new_y to new_y & ".jpg"
if new_y does not end with ".jpg" then set new_y to new_y & ".jpg"
…