On Mar 13, 2010, at 10:01 PM, Peter Hosey wrote: > You mean display?
Oops. Sorry. I got the terminology mixed up. > Notifications are what get passed to displays to be displayed, usually on the > screen. Non-visual displays such as MailMe “display” the notification in some > other way, such as by sending it as an email message. That's what I'm talking about. > That's called a shebang (for “shell bang”, since it's most useful for shell > scripts). I did some searching around in the mean time with Google about using /usr/bin/env for the shebang (yep, learned that, too). It was an interesting read. > We simply run simple-mailer the same way we would run a compiled machine-code > program, and the OS reads the shebang line and turns around and runs the > script under that program for us. So, this is being called on (run) by/from the executable at '.../MailMe.growlView/Contents/MacOS/MailMe', correct? Shouldn't an executable like that be able to run a script of our own in the same manner? Even if there's not a GUI option to set up multiple scripts, just one hard wired script placed in the Resources folder would be fine with me. So long as the executable will run whatever's there (given a specific name, of course). The script could play traffic cop and decide what to do based on the parameters passed to it. That is until someone runs with it and creates a slick GUI for the prefpane to manage multiple scripts. :-) You are passing parameters to simple-mailer for <username[:passwo...@server[:port] from to subject>, I would assume. This executable could pass the 'Notification' data to a script in the parameters, instead. I think something like this could satisfy the many people I've seen in the archives who are really, really wanting a way to run AppleScripts in place of (or along with) a display (using osascript). As far as that goes, we could make a call to growlnotify from within a script if a visual display is needed, also. I suppose a trap would need to be set to prevent a loop by calling the same script-running display. Dave. -- 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.
