Re: Open All files from an folder
Re: Open All files from an folder
- Subject: Re: Open All files from an folder
- From: Jürgen Keser <email@hidden>
- Date: 13 Feb 2006 09:43:16 +0100
Hi Michelle,
thanks for your fast answer. I've tried the script and it seems to work.
But if I use the tell application command Word will not be opened. So the files could not be
open with the open files command. Do you know
what there is wrong? Sorry, but I'm an beginner in AppleScript.
on processFiles(FileList)
tell application "Word"
repeat with thisFile in FileList
-- File processing goes here.
end repeat
end tell
end processFiles
On Montag, 13. Februar 2006 9:27 Uhr, Michelle Steiner <email@hidden> wrote:
>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
>
_______________________________________________
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