AppleScript and thread safety in Lion.
AppleScript and thread safety in Lion.
- Subject: AppleScript and thread safety in Lion.
- From: Beatrix Willius <email@hidden>
- Date: Sun, 24 Jul 2011 18:29:41 +0200
Hi,
does anyone have an idea, if something changed in regard to thread safety of AppleScript in Lion?
Since upgrading to Lion I'm getting crashes in many of my AppleScripts, which are scattered through the application. The scripts don't crash always but often. Everything lives in a thread. When testing simple scripts I don't get crashes and so I'm suspecting thread safety. The script themselves are rather simple like the following:
script theScript tell application "Mail" set theMessages to every message of mailbox ("smörebröd") of account ("Imap Moth") set NoOfMessages to length of theMessages return NoOfMessages end tell end script with timeout of 10000 seconds run script theScript end timeout
script theScript tell application "Mail" set theAccounts to (get name of accounts whose enabled is true) end tell set text item delimiters to "/listitem" return every item in theAccounts as string end script with timeout of 10000 seconds run script theScript end timeout
|
_______________________________________________
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