Re: Apply script to subfolders, save file to new folder
Re: Apply script to subfolders, save file to new folder
- Subject: Re: Apply script to subfolders, save file to new folder
- From: Michelle Steiner <email@hidden>
- Date: Fri, 22 Dec 2006 09:24:02 -0700
On Dec 22, 2006, at 8:52 AM, Ruta wrote:
4. save the converted files to a NEW FOLDER, which I identify at the
beginning of the script. Right now, the script saves the psd files
to the same location as the jpg files.
If we saw how you're doing it now, it would help to tell you what to
change. Someone else probably would have to do that because I don't
have Photoshop, so I've never scripted it.
Sorry my explanation was not clear. Right now the script converts psd
files to jpg files and saves those jpg files to the same folder that
the psd files were in. That is what the script is doing now. It
would
be much better for me, though, if the jpg files were saved to a
different folder.
What I meant was if you provided the code you're using now to save
the files, it would help someone figure out what needs to be changed.
Here are some changes I would suggest in general:
if y ends with ".psd" then
set new_y to (characters 1 thru -5 of y) as string
else if y ends with ".tif" then
set new_y to (characters 1 thru -5 of y) as string
else if y ends with ".tiff" then
set new_y to (characters 1 thru -6 of y) as string
set OFset to offset of "." in y
if text OFset thru end of y is in {".psd", ".tif", ".tiff"} then set
new_y to text 1 through (OFset - 1) of y
set new_y to new_y & ".jpg"
if new_y does not end with ".jpg" then set new_y to new_y & ".jpg"
By the way, I think you can accomplish the same thing using the Image
Events suite in Applescript itself.
-- Michelle
--
"Our enemies are innovative and resourceful, and so are we. They
never stop thinking about new ways to harm our country and our
people, and neither do we." --George W. Bush, Aug 5, 2004.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden