cool man, will hava look when I get a chance... i've identified the problem to be the 'tell finder... activate'. If I delete the activate line, no problem - finder opens up in the background. But if I have the activate, i have the screwup... clearly a bug... but not sure if its a QC bug or AppleScript bug so dunno where to file it!


On 16 Sep 2008, at 18:25, vade wrote:

I re-factored the code a bit, and am running the applescript from a background thread, and added in some locking to avoid crashes if the script is run too quickly in succession.

This seems to work, but I get the impression this is not the right way to do it, as I little birdy told me applescript should never be called on anything but the main thread. (is this true? or does this depend on the script?)

I also added some locking for the GL context, and it *seems* to be working fine. Id be curious if this an incredibly bad idea.

Perhaps using NSTask and osascript from the command line or something, to run it in a wholly separate background process? Might be a better approach.

Hope this helps.

Cool I got to say re-factored!

<testScript.zip>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to