#1329 AppleScript (Lion): open document hangs until timeout

closed-works-for-me
nobody
None
4
2014-08-15
2011-09-01
RalphSBln
No

BibDesk 1.5.4 (2141)
Mac OS 10.7.1 (11B26)

Opening a tex file in BibDesk using AppleScript results in a hang situation and an "AppleEvent timed out." number -1712" error after the timeout. BibDesk does launch (if not already running) and open the tex file, but control flow does seem to be returned to the AppleScript interpreter. While the script hangs, BibDesk can be sampled using the Activity Monitor application (see attached sample file).

Here's is a simple script that causes the hang situation:

set theFile to POSIX file "/private/tmp/test.bib"
tell application "BibDesk"
open theFile
end tell

This started happening after upgrading to Mac OS Lion, so maybe it's a bug in Lion's AppleScript engine rather than in BibDesk.

Discussion

  • RalphSBln

    RalphSBln - 2011-09-01

    Sample of BibDesk application while AppleScript hangs

     
  • RalphSBln

    RalphSBln - 2011-09-01

    In line 2 it should be "but control flow does NOT seem to be returned". Sorry

     
  • Christiaan Hofman

    • priority: 5 --> 4
     
  • Christiaan Hofman

    Looks really like a Lion bug to me. We have no control over *how* Cocoa scripting opens the document. Does Bibdesk itself hang, or is it only the AppleScript script (i.e. AppleScript Editor.app)?

     
  • Christiaan Hofman

    Another thing, does it change when you add an extra "activate" at the beginning of the tell block?

     
  • RalphSBln

    RalphSBln - 2011-09-02

    It's only the script that hangs. BibDesk launches and opens the document immediately and is completely responsive while the script is running/hanging.

    Adding "activate" before the "open" statement does not change anything.

     
  • Christiaan Hofman

    • status: open --> closed-works-for-me
     
  • Christiaan Hofman

    So this is really a system bug, as we're not in control of suspending the applescript. There's nothing we can do, Apple should fix this.

     
  • RalphSBln

    RalphSBln - 2011-09-04

    Thank you, Christiaan. I reported the bug to Apple.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks