Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript + Mail (+ Java)




Jeremy:

Being the curious type I am, and armed with the multi-file search feature of BB-Edit, I was able to locate the beast. It is contained in the Preferences file com.apple.LaunchServices.plist. In that file, the should be at least one Dictionary named Root containing a key/value pair named Root; a sub-dictionary named LSPrefBindings containing a number (mine has 77) of key/value pairs. There is an Array named U:mailto that contains a Dictionary named 0. In here is a String named LSBundleIdentifier containing the value com.qualcomm.eudora, which just happens to be my mailer of choice.

I verfied that this was the correct place by flipping the preference setting in Mail to Mail and then back. This switch I have identified flipped right along with.

Now, what you could do that would be *REALLY* spiffy would be to create a similar routine that took into account every stand-alone, AppleScriptable mailer for the Mac.

Hope this helps more,

Martin Maher, Senior Network Security Engineer
The SSL RAS "Mac guy"
Security Operations - VPN/RAS
KP-IT, Information Security Management
desk: 925/926-3297
tie: 8-473-3297
cell: 925/324-8209
email@hidden



Jeremy Wood <email@hidden>

01/12/06 05:59 PM

To
Martin Maher/CA/KAIPERM@Kaiperm
cc
email@hidden
Subject
Re: AppleScript + Mail (+ Java)






> I am not sure where it is resident but there is a preference that can
> be adjusted in the Mail application preferences that designates the
> "default" SMTP/POP3/IMAP4 application. I imagine you could look at
> that within the preference file.
Huh.  It's a promising start, thanks. I  search the  
"com.apple.mail.plist" file just now, and didn't see that setting
listed in there.

Does anyone know where that setting lives?  (Does anyone have any
reason why that little piece of info wouldn't be sufficient?)

 - Jeremy

> Jeremy Wood <email@hidden>
> Sent by: java-dev-bounces+martin.maher=email@hidden
>
> 01/12/06 05:43 PM
> To
> Java Developers <email@hidden>
> cc
> Subject
> AppleScript + Mail (+ Java)
>
>
>
>
>
> Our goal is for users to be able to click a single button on the
>  toolbar and magically be whisked away to Mail, where their saved
>  documents will already be attached to an email.  They just add the
>  recipient's name, and optionally add a little message body/subject,
> and
>  they can mail their saved documents to whoever they'd like.
>
>  We achieved this with AppleScript, provided that the user has Mail
>  already set up... which is a fine start.
>
>  My first question is this:
>  How can we tell whether Mail is set up to run on their computer?
>  (We'd like to disable this feature if the user isn't set up to use
>  Mail...)
>
>
>  _______________________________________________
>  Do not post admin requests to the list. They will be ignored.
>  Java-dev mailing list      (email@hidden)
>  Help/Unsubscribe/Update your Subscription:
>  http://lists.apple.com/mailman/options/java-dev/email@hidden
>
>  This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: AppleScript + Mail (+ Java) (From: Jeremy Wood <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.