Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Auto-notify of changes in Drop Box contents' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto-notify of changes in Drop Box contents
Authored by: mprewitt on Jun 16, '03 10:59:28AM

Here is, in my opinion, a simpler solution done via AppleScript.

I wrote the following script to alert me of any incoming items. It does this by speaking the number of items in your drop box (but only if there are any), and if there are items it will also open the Drop Box folder automatically. Obviously what it does when it finds items in your Drop Box can be changed to suit your preferences. I saved this as an application and used cron to schedule this to run once each afternoon.

You will need to change "YOUR-USER-NAME" to your actual user name, and "VOLUME" to the drive your users folder is on.

[code]
tell application "Finder"
set myCount to (count every file of folder "Users:YOUR-USER-NAME:Public:Drop Box" of disk "VOLUME")
set myDialog to "You have " & myCount & " items in your drop box!"
try
if (myCount > 0) then
if (myCount = 1) then set myDialog to "You have one item in your drop box!"
say myDialog
open folder "Users:YOUR-USER-NAME:Public:Drop Box" of disk "VOLUME"
end if
end try
end tell
[/code]



[ Reply to This | # ]