Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open() Bug in AppleScript Studio ?



OK,

I found "my" bug:

When returning the given actual parameter value ("return theObject") in
the AppleScript Studio" application, my app acts as expected.

Thomas

Am Sonntag, 31.08.03 um 21:02 Uhr schrieb Thomas Schmidt:

> Hi,
>
> there seems to be a bug in "AppleScript Studio" open handling.
>
> The following situation:
>
> A third party, non-scriptable application produces every minute a
> jepg-image. This image should be displayed as soon as possible on
> screen by an "AppleScript Studio" application. Therefore I attached the
> following AppleScript folder action handler to the folder, where the
> producing applications puts its images into:
>
> on adding folder items to thisFolder after receiving addedItems
> try
> set firstItemName to first item of addedItems as string
> tell application "AppleScript Studio Ex#B030F"
> activate
> open firstItemName
> end tell
> on error errnum
> display dialog "Error (" & errnum & ")"
> end try
> end adding folder items to
>
> The open-event handler of the consumer, called "AppleScript Studio
> Experiments", is here:
>
> on open theObject
> try
> set objectName to (POSIX path of theObject)
> set auto resizes of image view "ImageView" of window "main" to true
> set image of image view "ImageView" of window "main" to load image
> objectName
> on error errnum
> log {"Open error " & errnum}
> end try
> end open
>
> The following will happen:
>
> 1. After putting an image into the folder with the above handler
> attached to, the "AppleScript Studio Experiments" application is
> launched.
> 2. The image will be displayed correctly.
> 3. A second image put into the folder will be handled correctly too.
> 4. Now the third image will be displayed - but the open-handler seems
> to be called forever as fast as possible! I put some logging output
> statements into the handler, which says that it will be called
> unfinitly (is it correct English ?).
> 5. After terminating the "AppleScript Studio" application, I'll get an
> error message from the attached folder handler.
> The next image put into the folder starts the show at point 1.
>
>
> What do I wrong? Is this a bug?

|Thomas Schmidt | Email: email@hidden | Phone:
+49-5807-1503 |
|Zum Heller 2 | Web: http://www.tcsoft.de/ | Fax:
+49-5807-1504 |
|D-29575 Aljarn | Cellular: +49-172-3011505 |
CelFax:+49-172-3022369|
|PGP-Key on public key server available. PGP-ID: "Thomas Ch. Schmidt"
|
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.