I tried to do a script that copies files to another folder and changes the size if neccessary. That works. But I need another routine in my scipt. I need a textfile with all filenames and a specific list delimiter.
There has to be counter for the files included.
This is my test and the result:
on run set Image_folder to "Festplatte:Users:Shared:Screenbilder:JPEG Images" ListContents(choose folder Image_folder) end run on ListContents(theFolders) set itemNumber to 1 set LogFile to a reference to (path to desktop as string) & "picID" set savedTextItemDelimiters to AppleScript's text item delimiters repeat with i in (theFolders as list) set foo to "&pic" & itemNumber & "=" set itemNumber to itemNumber + 1 set AppleScript's text item delimiters to "&pic" & itemNumber & "=" tell application "Finder" to set foo to foo & (name of files of (i) as list) & return as text end repeat try open for access file LogFile with write permission set eof of file LogFile to 0 write foo to file LogFile close access file LogFile on error errText number errNum close access file LogFile display dialog errText end try set AppleScript's text item delimiters to savedTextItemDelimiters end ListContents
As you can see my script does 1 and 2 but no more counts for the pic-prefix.
Can anybody help me?