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: Wed, 20 Dec 2006 10:49:18 -0700
On Dec 20, 2006, at 1:59 AM, Ruta wrote:
3. apply to all files in all SUBFOLDERS. Right now, it applies
only to
files in the top level of the folder I select at the beginning of the
script.
Here is a generic script that will traverse sub folders:
set topLevel to choose folder
splitFoldersFromFiles(topLevel)
on splitFoldersFromFiles(inputFolder)
tell application "Finder"
my processFiles(get files of inputFolder)
set FolderList to folders of inputFolder
repeat with thisFolder in FolderList
my splitFoldersFromFiles(thisFolder)
end repeat
end tell
end splitFoldersFromFiles
on processFiles(FileList)
repeat with thisFile in FileList
-- File processing goes here.
end repeat
end processFiles
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.
-- Michelle
--
Prius: Kicks Gas
_______________________________________________
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