• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stop a NSAppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Stop a NSAppleScript (From: "Thomas C." <email@hidden>)

  • Prev by Date: Re: WebKit headers
  • Next by Date: Re: Manual Outline View Sorting
  • Previous by thread: Stop a NSAppleScript
  • Next by thread: WebKit headers
  • Index(es):
    • Date
    • Thread