Hello
This is my first script . I have a number of five by seven photo’s (psd) that I run through
picture package in photoshop 7.0.1. I then need to save them to a new folder with the same name (035 to 999) as TIFF files. I figured out how to set my input folder and output folder along with my save options. My problem is that the picture package action is still being saved as (Picture Package ) to my output folder and over writing each photo as
such. I am using a I Book G4 with 10.4.8 Photoshop 7.0.1 and Script editor 2.1.1
any help would be appreciated.
set tempFolderName to "1-ea"
set inputFolder to choose folder
set outputFolder to "Macintosh HD:Users:thomasebl:Desktop:ebl finals:1-ea"
tell application "Finder"
set filesList to files in inputFolder
end tell
tell application "Adobe Photoshop 7.0"
set display dialogs to never
close every document saving no
end tell
repeat with aFile in filesList
tell application "Finder"
set theFile to aFile as alias
set theFileName to name of theFile
end tell
tell application "Adobe Photoshop 7.0"
open theFile
set docRef to the current document
if (mode of docRef is not RGB) then
change mode docRef to RGB
end if
if (bits per channel of docRef is sixteen) then
set bits per channel of docRef to eight
end if
set myOptions to {class:TIFF save options, image compression:none, byte order:Mac OS, save alpha channels:true, save spot colors:true, embed color profile:true}
set infoRef to get info of docRef
set docName to name of docRef
do action "D Package" from "test scripts"
save current document in file "Macintosh HD:Users:thomasebl:Desktop:ebl finals:1-ea" as TIFF with options myOptions appending lowercase extension without copying
close current document saving yes
close front document saving no
end tell
end repeat
on getBaseName(fName)
set baseName to fName
return baseName
end getBaseName
Model: I Book
AppleScript: 2.1.1
Browser: Safari 419.3
Operating System: Mac OS X (10.4)
{Edited to correct AppleScript tags. The script goes between them}