Make Default

M

markc0

Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel Email Client: Exchange Hi I have a script to open entourage to configure a account, although the first time round for every user the script stops due to the message in Entourage asking would you like to make entourage you default browser.
Anyone have a script to set this to default or any way of setting this so it never ask's ?

thanks
 
A

Allen Watson

Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor:
Intel Email Client: Exchange Hi I have a script to open entourage to
configure a account, although the first time round for every user the
script stops due to the message in Entourage asking would you like to
make entourage you default browser.
Anyone have a script to set this to default or any way of setting this
so it never ask's ?

thanks

There's no way to control it from a script addressing Entourage.
Clearly, then, you need some other manner for the script to change this
setting. I don't think it is possible; at least I cannot find one. I've
looked around at ways of setting the default mail app. There is a
preference panel, free, called RCDefaultApp, which makes changing the
default app for email or web browsing a simple manual operation, but it
does not appear to be scriptable. I cannot find any indication that it
can be done by Terminal either (a shell script would be nice...).
Perhaps it could be worked out using the preference panel and GUI
scripting, but for me--an individual user at home--, it's too much
trouble to bother.
 
W

William Smith [MVP]

I have a script to open entourage to configure a account, although
the first time round for every user the script stops due to the
message in Entourage asking would you like to make entourage you
default browser. Anyone have a script to set this to default or any
way of setting this so it never ask's ?

When Entourage launches, it checks the user's
com.apple.LaunchServices.plist file for the default mail application. By
default, when a user's Mac OS X user account is created, this file does
not exist and the default settings are applied. That means Apple's Mail
is default.

You can do this a few different ways, but essentially you want to create
this file in the /System/Library/User Template with the default setting
pointed to Entourage. Or you want to modify this file if the user's Mac
OS X user account already exists.

This one-line AppleScript calls the defaults command to create this file
with the Entourage setting in the User Template folder:

do shell script "defaults write /System/Library/User\\
Template/English.lproj/Library/Preferences/com.apple.LaunchServices
LSHandlers '({LSHandlerRoleAll = \"com.microsoft.entourage\";
LSHandlerURLScheme = mailto;})'" with administrator privileges

This problem is discussed and addressed in the manual for the latest
version of my Entourage Exchange setup script found here:
<http://entourage.mvps.org/exchange/exchangesetupv3.html>.

Hope this helps!

--

bill

Entourage Help Page <http://entourage.mvps.org/>
Entourage Help Blog <http://blog.entourage.mvps.org/>
YouTalk <http://nine.pairlist.net/mailman/listinfo/youtalk>
Twitter: follow <http://twitter.com/meck>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Upgrading Identities 3
Make Entourage Default 3
changing default browser in Entourage 2
Entourage mail 3
Scripts Menu 1
Delayed Send (Entourage) 1.0 4
default color 1
Workgroup Manager and Entourage 2008 1

Top