Re: applescript transactions
Re: applescript transactions
- Subject: Re: applescript transactions
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 15 Jan 2004 11:46:07 -0500
on 2004-01-15 10:00 AM, Jesse Grosjean at email@hidden wrote:
>
I see some mention of applescript transactions... is this what they do?
>
My application doesn't support database like transactions (where data
>
is only committed to disk at end of transaction), but I would like the
>
ability to freeze out the applications run loop until a sequence of
>
apple events have been processed.
AppleScript transactions are strictly of the database kind. When you "open"
a transaction, you are assigned a transaction number that you can use for
subsequent write events, until you "close" the transaction. If you design
your app properly, this prevents others from updating records in the
database while you're updating them.
I'm not sure what is the best approach for your situation. I suspect,
however, that you should read the relatively recent (Jaguar?) AppleScript
release notes about "suspending" Apple events and "resuming" them.
Also, it is good to ask questions like this on the applescript-implementors
mailing list, where AppleScript engineers hang out.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.