AS Timeout in Snow Leopard scripting Entourage: bug?

H

hagimeno

Version: 2008
Operating System: Mac OS X 10.6 (Snow Leopard)
Processor: Intel
Email Client: pop

Hi all,

Even if all test was performed on clean machines we decided to repeat all test.
We reformat the Hard Disk and installed the Snow Leopard.
After, we installed Office 2008 with all latest patches (Entourage version is the last 12.2.1).
Absolutely no others apps have been installed. Rosetta has been installed because Office 2008 Installer require it.
Restarted the Mac and executed different tests with one of our Entourage DB (we checked also the DB Integrity and all was OK).
Previously, on Leopard we executed the same test with same script with same Entourage DB.

Below the results of all the test. We repeated the tests with both 10.6.0 and 10.6.1

Test 1 on OS X 10.5.8 - 112 seconds
Test 2 on OS X 10.5.8 - 112 seconds
Test 3 on OS X 10.5.8 - 113 seconds
Test 4 on OS X 10.5.8 - 112 seconds
Test 5 on OS X 10.5.8 - 114 seconds
Test 6 on OS X 10.5.8 - 112 seconds
Test 7 on OS X 10.5.8 - 114 seconds
Test 8 on OS X 10.5.8 - 113 seconds
Test 9 on OS X 10.5.8 - 114 seconds

Test 1 on OS X 10.6.0 - 570 seconds
Test 2 on OS X 10.6.0 - 8 seconds
Test 3 on OS X 10.6.0 - 9 seconds
Test 4 on OS X 10.6.0 - 8 seconds
Test 5 on OS X 10.6.0 - Microsoft Entourage got an error: AppleEvent timed out.
Test 6 on OS X 10.6.0 - 364 seconds
Test 7 on OS X 10.6.0 - 555 seconds
Test 8 on OS X 10.6.0 - 9 seconds
Test 9 on OS X 10.6.0 - 8 seconds

Test 1 on OS X 10.6.1 - 683 seconds
Test 2 on OS X 10.6.1 - 1044 seconds
Test 3 on OS X 10.6.1 - 506 seconds
Test 4 on OS X 10.6.1 - 8 seconds

Test 1 on OS X 10.6.1 with AppleScript Editor set as 32 Bit - 915 seconds

Like you can see on Leopard the script take exactly the same time. We can run the script 1000 times and it never fails.
On Snow Leopard, it randomly fails or take much time to complete. Looking AppleScript Editor under Activity monitor, is sometimes is in red with CPU at 99,7-102%
In some test AppleScript Editor stop with error "Microsoft Entourage got an error: AppleEvent timed out".
When don't go in error and take much timem, the spinning wheel appear.
Also the 8-9 seconds for some tests appear strange: too fast. Seems impossible.

The script seems linear and is only a very short reduced version of our entire ASS app that is composed by more than 3000 lines of code.
The script below don't use any Scripting Additions commands inside Tell Block or any double tell block or strange thing.
It's only collect info from every message and can be used just to reproduce the Entourage/Applescript bug.

Now the problem can be in Entourage scriptability under SL or AppleScript in Snow Leopard. We don't know exactly where the problem reside.

We only ask that users at Apple or Microsoft reproduce the problem because we are really sure that problem exists.

Please help. Just spend 10 minutes of time to reproduce the problem.

Alex H.

property pEntourageStructure : missing value

tell application "Microsoft Entourage"
set folderList to (ID of every folder) as list
end tell

set pEntourageStructure to {}
set numFolders to count folderList
repeat with j from 1 to numFolders
set entourageFolderID to item j of folderList
StructureRecursive(entourageFolderID)
end repeat

set numFolders to count pEntourageStructure

set t1 to current date

repeat with j from 1 to numFolders
set folderID to item 2 of item j of pEntourageStructure

tell application "Microsoft Entourage"
set pFolderMessages to count messages in folder id folderID
end tell

repeat with m from 1 to pFolderMessages
tell application "Microsoft Entourage"

tell message m of folder id folderID
set emailID to ID
end tell

-- Capture Categories
set categoryList to category of message id emailID

-- Capture Dates and Class
tell message id emailID
set emailSentDate to time sent
set emailReceivedDate to time received
set numAttachments to count attachments

if class is incoming message then
se
 

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

Top