• 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: Open All files from an folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open All files from an folder


  • Subject: Re: Open All files from an folder
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 13 Feb 2006 01:27:10 -0700

On Feb 13, 2006, at 1:20 AM, Jürgen Keser wrote:

has someone a script with that I can choose an folder. In this folder are many
files and other folders. The script should open one file, do something with that
and then close the file. After that it should open the next file (also the files in the sub folders).

Here you go:

splitFoldersFromFiles(choose folder)

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

-- Michelle

--
Homosexuals do not recruit; Christians recruit, and so does the military.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Open All files from an folder (From: Jürgen Keser <email@hidden>)

  • Prev by Date: Call for offers for making AppleScript-related software.
  • Next by Date: Re: Open All files from an folder
  • Previous by thread: Open All files from an folder
  • Next by thread: Re: Open All files from an folder
  • Index(es):
    • Date
    • Thread