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


Click here to return to the 'Disable auto-launching of Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Disable auto-launching of Mail.app
Authored by: efindel@earthlin on Mar 11, '06 03:03:09PM

You can do it the same way the poster disabled it -- by creating an Automator action and making that the default mailer. One of the choices in Automator is "run a shell script", and there's a choice of shells to run it with -- with Perl being one choice.

So, you could either choose Perl as the shell and cut-and-paste your code in, or use another shell and have it run your existing Perl script.



[ Reply to This | # ]
Disable auto-launching of Mail.app
Authored by: vinc17 on Mar 16, '06 05:03:33PM

I've tried with Automator: I've selected the shell /bin/bash and typed:

/Users/vinc17/bin/mutt-mailto "$@"

I've chosen "Pass input as arguments". Then I saved this as an application, and chose this application for "mailto:" URLs (thanks to the "Default Apps" tool). But when I click on a mailto URL, the application crashes:

Date/Time: 2006-03-17 01:46:28.470 +0100
OS Version: 10.4.5 (Build 8H14)
Report Version: 4

Command: Mutt-mailto
Path: /Applications/Mutt-mailto.app/Contents/MacOS/Mutt-mailto
Parent: WindowServer [64]

Version: 1.0.2 (63)
Build Version: 72
Project Name: Automator
Source Version: 630000

PID: 3007
Thread: 0

Exception: EXC_BREAKPOINT (0x0006)
Code[0]: 0x00000001
Code[1]: 0x909c8cc0


Thread 0 Crashed:
0 libobjc.A.dylib 0x909c8cc0 _objc_trap + 0
1 libobjc.A.dylib 0x909c8c34 _objc_error + 76
2 libobjc.A.dylib 0x909c8bc4 __objc_error + 64
3 com.apple.AutomatorFramework 0x963146d8 -[AMRunner stop:] + 160
4 com.apple.AutomatorFramework 0x962f0e00 -[AMAction run:] + 1824
5 com.apple.AutomatorFramework 0x962f05b8 -[AMBundleAction doRun:] + 92
[...]



[ Reply to This | # ]