| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jan 13, 2006, at 2:38 PM, email@hidden wrote: Mine is probably an older version of Eudora which might explain why it's plist lacked CFBundleURLTypes. I added as this... <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>Email Address URL</string> <key>CFBundleURLSchemes</key> <array> <string>mailto</string> </array> <key>LSIsAppleDefaultForScheme</key> <false/> </dict> </array> My code still didn't find it so I used lsregister like.... ts1-9:~/devstuff/ls mjh$ lsregister -f "/Applications/Eudora Application Folder/Eudora.app" Simply using 'touch' on the application bundle itself might of caused a LaunchServices update as indicated in a recent post (I filed a bug report anyhow). Then my app shows... ts1-9:~/devstuff/ls mjh$ java -cp .:jnidirect.jar:Linker.jar mailapps /Applications/Eudora Application Folder/Eudora.app /Applications/Mail.app This doesn't indicate that these applications are AppleScriptable, it does indicate that they support the mailto URL, and for these two I believe they do in fact both have AppleScript support. I haven't done all that much with that lately to be able to think of a good simple test to find out. Maybe try a simple script against them using something in the standard suite? But anyhow for finding mail applications in the standard locations the code I posted yesterday should work. I also noticed if someone were to do their own JNI anyhow that there is a... LSCopyApplicationURLsForURL available since 10.3 that might be a better choice now then my approach was at 10.2. Mike Hall mikehall at spacestar dot net |
_______________________________________________ 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: email@hidden) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.