• 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
Multitasking ASObjC Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multitasking ASObjC Application


  • Subject: Multitasking ASObjC Application
  • From: Wayne Melrose <email@hidden>
  • Date: Thu, 18 Aug 2011 14:23:18 +0200

I found this thread from a  while ago. 

https://secure.macscripter.net/viewtopic.php?pid=126689

The question was about having more than one handler running at the same time, and if it is possible in ASObjC. The answer is kind of no. 

Shane suggested this code: 

   property theCount : 0
   
   on buttonPush_(sender)
       set theCount to theCount + 1
       performSelectorInBackground_withObject_("myTest", missing value)
   end buttonPush_
   
   on myTest()
       set myCount to theCount
       repeat 6 times
           log "Running test " & myCount
           delay 1
       end repeat
       log "ending test " & myCount
   end myTest

To be able to trigger a script and have it run essentially giving the user access to the GUI. 

This was from a while ago, I guess I'm just curious to know if anything has changed with Lion? Or if I try and trigger two scripts at the same time, say one to process InDesign documents and the other to process files in Photoshop at the same time, will one wait for the other to be completed? 

Thanks in advance for any help. 

Wayne. 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Multitasking ASObjC Application
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Problem selecting correct row in sorted table
  • Next by Date: Re: Multitasking ASObjC Application
  • Previous by thread: Re: Problem selecting correct row in sorted table
  • Next by thread: Re: Multitasking ASObjC Application
  • Index(es):
    • Date
    • Thread