Is there a way when creating a file list with finder to set the files allow overwriting the orginal? Here is a sample that only opens photoshop EPS files. I can create a new folder and save into that location easy enough.
set inputFolder to choose folder with prompt "Where's the folder?"
tell application "Finder"
set filesList to (files of inputFolder whose file type is "EPSF" and creator type is "8BIM")
set outputFolder to make new folder at inputFolder with properties {name:"TIFF Preview"}
end tell
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
save current document in file (outputFolder as string) as Photoshop EPS with options ¬
{embed color profile:false, encoding:binary, preview type:eight bit TIFF}
close current document
end tell
end repeat
What I can’t do is this
set inputFolder to choose folder with prompt "Where's the folder?"
tell application "Finder"
set filesList to (files of inputFolder whose file type is "EPSF" and creator type is "8BIM")
end tell
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
save current document in file theFile as Photoshop EPS with options ¬
{embed color profile:false, encoding:binary, preview type:eight bit TIFF}
close current document
end tell
end repeat
doing this manually I would need to say its OK to overwrite the original. Is this possible? Hope i’ve explained myself clearly enough!