Re: Open All files from an folder
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