• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AppleScript and thread safety in Lion.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

 _______________________________________________
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

  • Prev by Date: Re: Lion crashed by AppleScript
  • Next by Date: Applescript and Lion
  • Previous by thread: Idle Bug in Lion ASE
  • Next by thread: Applescript and Lion
  • Index(es):
    • Date
    • Thread