Tracker: Bugs

4 AppleScript (Lion): open document hangs until timeout - ID: 3402223
Last Update: Comment added ( ralphsbln )

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.


RalphSBln ( ralphsbln ) - 2011-09-01 02:48:40 PDT

4

Closed

Works For Me

Nobody/Anonymous

None

None

Public


Comments ( 6 )

Date: 2011-09-04 12:43:07 PDT
Sender: ralphsbln

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


Date: 2011-09-02 02:15:58 PDT
Sender: hofmanProject Admin

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.


Date: 2011-09-02 02:09:13 PDT
Sender: ralphsbln

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.


Date: 2011-09-01 10:25:52 PDT
Sender: hofmanProject Admin

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


Date: 2011-09-01 04:11:04 PDT
Sender: hofmanProject Admin

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)?


Date: 2011-09-01 02:51:59 PDT
Sender: ralphsbln

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


Attached File ( 1 )

Filename Description Download
Sample of BibDesk.txt Sample of BibDesk application while AppleScript hangs Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2011-09-02 02:15:58 PDT hofman
resolution_id None 2011-09-02 02:15:58 PDT hofman
close_date - 2011-09-02 02:15:58 PDT hofman
priority 5 2011-09-01 04:11:04 PDT hofman
File Added 422531: Sample of BibDesk.txt 2011-09-01 02:48:41 PDT ralphsbln