(*
using applescript to save from photoshop cs to a path with a slash (/)
i had a script which saved documents in existing folders with existing names and ran into problems. the first problem i had was that if i tried to save an image into a folder with a slash in it, like "12/04 images", photoshop would give an error, "Adobe Photoshop CS got an error: Folder some object wasn't found."
as a workaround, i was able to convert the path to a posix path and save that way, like this:
set thePosix to POSIX path of thePath
save current document in POSIX file thePosix as TIFF
but, for some reason, that did not work with filenames over 31 characters long (some strange legacy of OS9?), so eventually i came to the solution below. as long as the file already exists, photoshop does not get an error when saving to the file, so i use do shell script to touch the file so it exists.
be warned, however, every time i tried to save a document with a slash in the filename, photoshop saved the file then crashed.
*)
tell application "Finder" to set thePath to (home as string) & "Documents:test 12/04:PStest_01234567890_0123456789.TIFF"
--note, folder "test 12/04" above must exist in Documents
set thePosix to quoted form of POSIX path of thePath
display dialog thePosix
do shell script "touch " & thePosix
tell application "Adobe Photoshop CS"
make new document
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 thePath as TIFF with options myOptions appending no extension without copying
end tell
-- applescript page