• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apply script to subfolders, save file to new folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Apply script to subfolders, save file to new folder
      • From: Ruta <email@hidden>
References: 
 >Apply script to subfolders, save file to new folder (From: Ruta <email@hidden>)

  • Prev by Date: Re: Applescript mounting servers and finder
  • Next by Date: Photoshop selection
  • Previous by thread: Apply script to subfolders, save file to new folder
  • Next by thread: Re: Apply script to subfolders, save file to new folder
  • Index(es):
    • Date
    • Thread