Hi,
Im using Mac 10.3 version.
Im going to set watch folder actions only for a top-level folder.But when a file is dropped inside a sub-folder(watch folder is not set) i need to trace the event.How can i automate this using applescript .Any code snippets plz?
Any help will be highly appreciated
Thanks
Not sure exactly what you mean here - Applescript basically works by bossing applications around from the "outside" utilising the hooks made available by the programmer of the app in question.
From what you ask above it seems that you want each top level folder to signal when a sub folder has had an addition but I'm not sure this would be scriptable since you would need to access this action from
inside the system itself (unless I have misunderstood).
Even if you managed to script event catching from folder actions you would presumably then have to attach your script to every folder you were interested in - I can't see how this could be done system wide without a lot of work. You have got me thinking though, If I come up with anything I will post it on.
If you wrote a file system in Cocoa you could catch events like these by invoking delegate methods since OSX can be told to act in this way but I think this is outside the scope of Applescript, maybe someone can tell me I'm wrong and answer the original question for you !