Re: Stop a NSAppleScript
Re: Stop a NSAppleScript
- Subject: Re: Stop a NSAppleScript
- From: Thomas Davie <email@hidden>
- Date: Tue, 30 Nov 2004 23:22:15 +0000
I have made an AppleScript Studio application which tells Photoshop to
process some operations and this can be very long depending on the
size of the image so my customer is asking me for a button to stop the
script before it's finished (which is a useful sometimes).
The problem was that the interface wasn't responding to my actions
when the script was running so I made an Objective-C application using
NSAppleScript and NSThread to avoid this problem but now I'm looking
for a way to interrupt the NSAppleScript and exit the NSThread.
I've tried different things with no luck so far (I ran into crashes
until now)...
Does someone know how to do this ?
You need to push your long process off into a different thread.
--
Computer Science is as much about computers as astronomy is about
telescopes -- Edsgar Dijkstra
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden