If you save a TIFF from Photoshop 6 or 7 with the default options, Cocoa won't be all that happy if you try to use it as an image resource in an app. (Because Photoshop tends not to save transparency/alpha correctly, and likes to include Adobe-specific layer data.) Choosing the correct options every time can be annoying and tedious, so here's an AppleScript I wrote ot make it quicker:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier> on getBaseName(filename, extension)
set characterCount to the (number of characters of extension) + <font color = blue>1</font>
return (characters <font color = blue>1</font> through -(characterCount + <font color = blue>1</font>) of filename) as string
end getBaseName
on open (fileList)
tell application <font color = red>"Finder"</font>
repeat with theFile in fileList
set baseName to my getBaseName(theFile as string, name extension of file theFile)
set newPath to (baseName & <font color = red>".tiff"</font>) as string
tell application <font color = red>"Adobe Photoshop <font color = blue>7.0</font>"</font>
open theFile
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}
save current document in file newPath as TIFF with options myOptions appending no extension with copying
close current document
end tell
end repeat
end tell
end open </font>[/code]
Save it as an application, and you'll then be able to drag Photoshop files onto it to have them converted to guaranteed-AppKit-friendly TIFF files. (Make sure the document's you're converting aren't already open in Photoshop first.) This requires Photohop 7.0 and the optional Photoshop Scripting 1.0 add-on (which you can download from Adobe or VersionTracker).