--
Paul Berkowitz
From: "Perbix, Michael" <[EMAIL PROTECTED]>
Reply-To: "Entourage:mac Talk" <[email protected]>
Date: Wed, 14 Jun 2006 14:43:15 -0400
To: "Entourage:mac Talk" <[email protected]>
Conversation: Applescript to Set up Exchange account
Subject: Re: Applescript to Set up Exchange account
You are indeed correct, the scripts are stored in the Database, and since this is a fresh install from a custom package, I can put a database file in there that I need to for the user.
Thank you again.
-Mike
On 6/14/06 2:13 PM, "Swenson, Joseph" <[EMAIL PROTECTED]> wrote:
I think schedules are stored in the Entourage database. Sorry.I have a script that does kind of what you want, however its contingent on the user logging in with their Active Directory account. I set up a default Exchange account that I put into a customized Default User profile. The default account has a scheduled event called “setup” that runs on opening, which runs this script.
On 6/14/06 1:04 PM, "Perbix, Michael" <[EMAIL PROTECTED]> wrote:
Yeah, I was hoping to NOT use Applescript, but rather manhandle a plist or something.....guess I will look a little further into what happens...
Thank you.
-Mike
On 6/14/06 1:58 PM, "Swenson, Joseph" <[EMAIL PROTECTED]> wrote:
According to the applescript dictionary it looks like the answer is No. The only properties you can set for a schedule is the name, the ID, and whether it’s enabled or not.
On 6/14/06 12:47 PM, "Perbix, Michael" <[EMAIL PROTECTED]> wrote:
Thank you...one last thing, is there anyway I can enter a schedule to run as you indicated (on startup) without using Applescript and having entourage running?
What I would like to do is prevent having to re-cut my images....and using a shell script configure the startup schedule and enable it.
Thank you again for all your help.
On 6/14/06 1:23 PM, "Swenson, Joseph" <[EMAIL PROTECTED]> wrote:
I just turned it off in the default setup. There doesn’t appear to be anything in Entourage’s Applescript dictionary to handle the junk filter.
On 6/14/06 12:18 PM, "Perbix, Michael" <[EMAIL PROTECTED]> wrote:
Thank you....I took a chunk our of this, and I appreciate it. One last question...how do we turn off the Junk Filter?
Thank you.
On 6/14/06 10:11 AM, "Perbix, Michael" <[EMAIL PROTECTED]> wrote:
So, the laptops are bound to AD, but the account is local...what I can do however is to prompt for name/password and use that in place of your $user variable...or I should say, define the $user variable with the users shortname (a.k.a network ID)...
On 6/14/06 10:01 AM, "Swenson, Joseph" <[EMAIL PROTECTED]> wrote:
Hopefully something in here will help you out:
--work offline
tell application "Microsoft Entourage"
set working offline to true
end tell
--check if the account has an email address using dscl
set userName to do shell script "whoami"
set fullName to do shell script "dscl localhost -read /Active\\ Directory/All\\ Domains/Users/$USER displayName | sed 's/displayName: //' "
set firstName to do shell script "dscl localhost -read /Active\\ Directory/All\\ Domains/Users/$USER FirstName | sed 's/FirstName: //' "
set lastName to do shell script "dscl localhost -read /Active\\ Directory/All\\ Domains/Users/$USER LastName | sed 's/LastName: //' "
set eMailAddress to do shell script "dscl localhost -read /Active\\ Directory/All\\ Domains/Users/$USER EMailAddress | sed 's/EMailAddress: //' "
--set up the account and disable the schedule
if userName ≠ "EmailAddress: " then
tell application "Microsoft Entourage"
set the email address of Exchange account "default" to eMailAddress
set the domain of Exchange account "default" to "AD"
set the full name of Exchange account "default" to fullName
set the Exchange ID of Exchange account "default" to userName
set enabled of schedule "setup" to false
display dialog "Your account is being set up for the first time.
It will take a few minutes for all your data to synchronize with the mail server.
Please be patient. Thank you." buttons {"OK"}
set working offline to false
end tell
end if
On 6/14/06 8:51 AM, "Perbix, Michael" <[EMAIL PROTECTED]> wrote:
Does anyone have a good Applescript that prompts for an email name/password and can contact a domain controller to get the info for the account and set up an Entourage Exchange account?
I am looking to make a single run applescript for newly imaged machines where my users can put in the info and have the exchange account created for them.
Thank you in advance
-Mike
_______________________________________________
Michael Perbix
Lower Merion School District
Telecommunications Specialist
(610) 645-1964 - Work
(610) 896-2019 - Fax
_______________________________________________
Michael Perbix
Lower Merion School District
Telecommunications Specialist
(610) 645-1964 - Work
(610) 896-2019 - Fax
_______________________________________________
Michael Perbix
Lower Merion School District
Telecommunications Specialist
(610) 645-1964 - Work
(610) 896-2019 - Fax
_______________________________________________
Michael Perbix
Lower Merion School District
Telecommunications Specialist
(610) 645-1964 - Work
(610) 896-2019 - Fax
_______________________________________________
Michael Perbix
Lower Merion School District
Telecommunications Specialist
(610) 645-1964 - Work
(610) 896-2019 - Fax
_______________________________________________
Michael Perbix
Lower Merion School District
Telecommunications Specialist
(610) 645-1964 - Work
(610) 896-2019 - Fax
