• 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: unresponsive apps and applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unresponsive apps and applescript


  • Subject: Re: unresponsive apps and applescript
  • From: Dee Dee Sommers <email@hidden>
  • Date: Wed, 26 Jun 2013 22:14:04 -0400

Thank you, Kaydell!

I really appreciate your help!
I will report back on my progress!

Dee Dee


On Jun 26, 2013, at 5:25 PM, Kaydell Leavitt wrote:

> Hi Dee Dee,
>
> I think that this *is* an interesting question.
>
> First of all, attached is an Objective-C app what will become frozen when you choose "Freeze" from the "File"  menu, in case you still need to test for this sort of thing.
>
> @Ron Hunsinger suggested a solution  of aborting the operation that the AppleScript is doing and starting it over.  That might work.  I want to add than in database work, you start a transaction to a call to something like:
>
> startTransaction();
> try {
>   // do a bunch of database stuff here.
> } on error {
> 	rollback();
> } finally {
> 	commit();
> }
>
> Of course the above code isn't AppleScript, but I just wanted to convey the idea of having a transaction that if there's an error during the transaction, the data isn't changed, all of the changes are rolled back.
>
> Having transactions with commit and rollbck keeps your data in a consistent state when there is an error.
>
> -- Kaydell
>
> <Freeze.app.zip>
>
>
> On Jun 26, 2013, at 1:58 PM, Dee Dee Sommers <email@hidden> wrote:
>
>> Thanks!  Note to self:  Try a search before asking the list. doh.
>> Thank you all the same.
>> :)
>>
>>
>> On Jun 25, 2013, at 4:32 PM, Kaydell Leavitt wrote:
>>
>>> Hi Dee Dee,
>>>
>>> I googled for "mac os x force quit applescript" and found this link:
>>>
>>> https://discussions.apple.com/thread/3766077?start=0&tstart=0
>>>
>>> -- Kaydell
>>>
>>> On Jun 25, 2013, at 2:24 PM, Dee Dee Sommers <email@hidden> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is it possible, using Applescript, to determine if an application has stopped responding and if so, to force-quit that app?
>>>>
>>>> OS 10.8.4
>>>>
>>>> Thank you!
>>>> Dee Dee
>>>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >unresponsive apps and applescript (From: Dee Dee Sommers <email@hidden>)
 >Re: unresponsive apps and applescript (From: Kaydell Leavitt <email@hidden>)
 >Re: unresponsive apps and applescript (From: Dee Dee Sommers <email@hidden>)

  • Prev by Date: Re: unresponsive apps and applescript
  • Next by Date: Mail Scripting - Copy Messages to Finder Folder
  • Previous by thread: Re: unresponsive apps and applescript
  • Next by thread: Re: unresponsive apps and applescript
  • Index(es):
    • Date
    • Thread