Re: AS Timeout (Silence) Updated
Re: AS Timeout (Silence) Updated
- Subject: Re: AS Timeout (Silence) Updated
- From: Hagimeno <email@hidden>
- Date: Tue, 6 Oct 2009 16:18:47 -0700 (PDT)
Hi Matt,
First thanks to reply us.
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
set emailClass to "incoming message" as string
else if class is outgoing message then
set emailClass to "outgoing message" as string
end if
-- Capture Sender
set displayName to (display name of sender) as Unicode text
set displayEmail to address of sender
-- Capture Subject and Body
set subjectRecipient to subject
set contentRecipient to content
end tell
end tell
end repeat
end repeat
set t2 to current date
set t3 to t2 - t1
on StructureRecursive(myObject)
tell application "Microsoft Entourage"
set folderName to name of folder id myObject
set numItem to count folders in folder id myObject
end tell
copy {folderName, myObject} to end of pEntourageStructure
if numItem > 0 then
tell application "Microsoft Entourage"
set folderList to (ID of every folder in folder id myObject) as list
end tell
repeat with i from 1 to numItem
set idObject to item i of folderList
StructureRecursive(idObject)
end repeat
end if
end StructureRecursive
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden