am facut si io ceva.. poate va ajuta si pe voi,
io unu’ mi-am cam luat teapa cu niste poze rgb scapate la tipar.. cam neplacut..
asadar..
e un scriptulet, care deschide toate fisierele dintr-un folder si le verifica daca’s CMYK sau grey, daca vreo unul nu indeplineste una din cele 2 conditii,, atunci va fi afisat.
ma gandesc sa extind scriptu’ pana la a afla si compresia…
.. l’am facut, ca uneori is uituc, si am vazut ca pe clasic exista un programel RGBFinder parca.. tare util mi-ar fi fost
iaca scriptuletzu:
“
set inputFolder to choose folder—Alege folderul cu fisiere
tell application “Finder”
set filesList to files in inputFolder
end tell
tell application “Adobe Photoshop CS”—io am versiunea CS, dar cred ca merge si pe CS2
set display dialogs to never
close every document saving no
end tell
set rgbFiles to “” as string—se defineste lista fisierelor “Buba”
repeat with aFile in filesList
set fileIndex to 0
tell application “Finder”
set theFile to aFile as alias
set theFileName to name of theFile
end tell
tell application “Adobe Photoshop CS”
set display dialogs to never
open theFile
set docRef to the current document
set docName to name of docRef
set docBaseName to getBaseName(docName) of me
if (mode of docRef is not CMYK and mode of docRef is not grayscale) then
set rgbFiles to rgbFiles & docBaseName & “; “
end if
close current document without saving
end tell
end repeat
—functia care scoate numele fisierului fara extensie.. daca are
on getBaseName(fName)
set baseName to fName
repeat with idx from 1 to (length of fName)
if (item idx of fName = “.”) then
set baseName to (items 1 thru (idx - 1) of fName) as string
exit repeat
end if
end repeat
return baseName
end getBaseName
if (rgbFiles is not “”) then
display dialog rgbFiles
else
display dialog “Toate fisierele sunt ori CMYK ori Grey, .. ai scapat data asta !”
end if
”