FileWave Alliance

The Official Community Forum
  • Page:
  • 1

TOPIC: Entourage First Run

Entourage First Run 09 Jul 2007 11:58 #17

  • IT Support
  • IT Support's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 21
  • Thank you received: 0
Hi,

Im trying to implement an AppleScript which configures an Entourage Exchange account - the script is done and works fine by getting all the info from the AD and entering it into Entourage.
Problem is - how do i make sure the script is run the first time a user starts Entourage?

Any ideas?

My last resort is running it as a loginscript - but imho this is not a pretty solution...

/Martin Schyth
sysadm
Bonnier Publications A/S

Running Applescripts 09 Jul 2007 18:13 #306

  • FileWave
  • FileWave's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 218
  • Thank you received: 0
There is a shell tool called osascript that can run an applescript from a shell script.



You could then create a shell script, set to execute upon activation, which has code such as the following:

#!/bin/sh

/usr/bin/osascript /path/to/script



Alternatively, you could put the script actions directly in the shell script:
#!/bin/sh

/usr/bin/osascript -e 'tell app "Finder" to quit'




Let us know if this solution is not what you're looking for and we'll devise something else :-)

Entourage First Run 09 Jul 2007 18:40 #307

  • IT Support
  • IT Support's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 21
  • Thank you received: 0
I know that one - but it doen't really solve my problem - have figured another way though i think...

I will try and see if i can get the "schduler" in Entourage to have an item in it where it runs my script at startup. Then i just check if the account have been made before i do anything, and if its added i quit the script...

Could actually try an option where i delete the script from schedules...
Gotta look into that tomorrow

/Martin Schyth
sysadm
Bonnier Publications A/S

Entourage First Run 10 Jul 2007 06:58 #308

  • IT Support
  • IT Support's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 21
  • Thank you received: 0
OK i solved this one...



I made sure that the ditectory ~/Documents/Microsoft User Data/Office 2004 Identities/Main Identity/Database is distributed to the /System/Library/User Template/... - the file is a started version of Entourage and a schedule named MakeNewAccount which runs an applescript at startup.



The script make the account based on 4 ldap searches and then deletes the schedule.



Anyone interested in the script - just say the word - i will at some time make a repository of my scripts on my website...

/Martin Schyth
sysadm
Bonnier Publications A/S

Entourage First Run 16 Aug 2007 14:06 #309

  • lars.berger
  • lars.berger's Avatar
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 8
  • Thank you received: 0
hello martin, i am very interested in your script, would you be so kind and send me this one? that would be greatly appreciated, i got the same problems with entourage than you. many thanks, lars



martin.schyth wrote:

OK i solved this one...



I made sure that the ditectory ~/Documents/Microsoft User Data/Office 2004 Identities/Main Identity/Database is distributed to the /System/Library/User Template/... - the file is a started version of Entourage and a schedule named MakeNewAccount which runs an applescript at startup.



The script make the account based on 4 ldap searches and then deletes the schedule.



Anyone interested in the script - just say the word - i will at some time make a repository of my scripts on my website...

Entourage First Run 17 Aug 2007 05:52 #310

  • IT Support
  • IT Support's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 21
  • Thank you received: 0
Hi again,



I've made a sourceforge project containing the script - and other scripts - feel free to use it under the GPL license :)



[url=http://http://sourceforge.net/projects/admin-as/]http://sourceforge.net/projects/admin-as/[/url]

/Martin Schyth
sysadm
Bonnier Publications A/S
  • Page:
  • 1