Hello,

I've written a small AppleScript (code below) that works with
SecuritySpy to send a notification when motion is detected on a
camera, it includes an image from the camera.  The script works on the
local machine but it doesn't seem to send any network notifications.
Once I've run the script it seems to kill all network notifications to
and from that machine for other applications as well.


property captureFolder : alias "Mac
HD:Users:Me:Documents:SecuritySpy:Captured Files:Front Camera"
tell application "Finder"
        (sort folders of captureFolder by creation date)
        set mostRecentFolder to (first item of the result as alias)
        --
        (sort (files of mostRecentFolder whose name extension is "jpg") by
creation date)
        set mostRecentFile to (first item of the result as alias)
        --
        set jpgPath to (POSIX path of mostRecentFile)
end tell


tell application "GrowlHelperApp"
        set the allNotificationsList to {"Front Camera Motion", "Side Camera
Motion", "Back Camera Motion"}
        set the enabledNotificationsList to {"Front Camera Motion", "Side
Camera Motion", "Back Camera Motion"}
        register as application "SecuritySpy" all notifications
allNotificationsList default notifications enabledNotificationsList
icon of application "Script Editor"
        notify with name "Front Camera Motion" title "Front Camera Motion"
description "Motion!" application name "SecuritySpy" image from
location jpgPath
end tell

-- 
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en.

Reply via email to