I have a folder action script which, when a new item was added to the 
folder, the script would create a desktop alias to the folder, newly 
named.

I would like to adapt the script so that when new mail is sorted into a 
users folder in the database of mail, that the alert icon is created on 
the desktop.

so. I have this:

property WatchedFolders : {"Evan", "Doug", "Karen", "Alanna"}

tell application "Claris Emailer"
        ignoring case
                repeat with x from 1 to the (number of items of (get folders where has 
unread messages is true))
                        if name of item x of (get folders where has unread messages is 
true) 
is in WatchedFolders then
        
                                tell application "Finder"
                                        set AliasName to ((name of item x) & " has 
mail!")
                                        if not (exists alias ("Mooch:Desktop Folder:" 
& AliasName)) then
                                                make alias file to this_folder with 
properties {name:(AliasName)}
                                        end if
                                end tell
                                
                        end if
                end repeat
        end ignoring
end tell

Now obviously, the script breaks at the 'this_folder' reference, because 
there is no *folder*, but a reference in the database. The files of mail, 
opened when you click on the little folder in the browse window aren't 
really folders at all. I know� Can I even do this? Make an icon which 
will open the 'folder' of user mail from the desktop?



___________________________________________________________________________
To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to
<[EMAIL PROTECTED]>  or  <[EMAIL PROTECTED]>

Reply via email to