Friday, July 20, 2018

#1 2003-07-02 12:09:29 pm

From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Process recursivelly dropped files/folders X

You can use this set of handlers to process any files/folders dropped into your droplet.
It is very fast, because it uses the shell's command "find" to determine the entire hierarchy of files/folders dropped onto it.
This will process, too, invisible files.

OS version: OS X


on open aliasList
   repeat with i in aliasList
       repeat with x in paragraphs of (do shell script "find " & quoted form of POSIX path of i)
           set aliasIze to x as POSIX file as alias
           if (aliasIze as text) ends with ":" then
           end if
       end repeat
   end repeat
end open

to processDir(dir)
   --> do whatever to this folder
end processDir
to processFile(thisFile)
   --> do whatever to this file
end processFile



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)