Re: Who Owns An Application?
Re: Who Owns An Application?
- Subject: Re: Who Owns An Application?
- From: Luther Fuller <email@hidden>
- Date: Thu, 22 Jun 2006 11:09:48 -0500
On Jun 22, 2006, at 8:30 AM, Alex Husted wrote [off list]:
I have never used it and never looked for it in the dictionaries.
(some help I am huh?)
according to Matt's book (1st edition) you use it just like you use
"with timeout". The difference being that you have to put it inside
the tell block of the app you want to sequester.
tell app "some app"
with transaction
-- do some stuff
end transaction
end tell
I just did a little looking and it appears that FileMaker Pro is
the only app that supports this function. You may want to ask the
group if there are any other known.
FileMaker Pro is just the kind of application that needs such a
command. I really ought to reveal the name of "application A" and why
not being able to "lock" A causes a problem.
My application (B) is named "Mail Saver" and the application (A) it's
operating on is "Mail" and the data (D) are the messages in ~/Library/
Mail/Mailboxes/. "Mail Saver" is working extremely well and I'm
considering distributing it as shareware ... except for the one
little problem wev'e been discussing.
If the user quits Mail or closes the viewer window before Mail Saver
is finished, then 'he will see a dialog: -609 Mail got an error:
Connection is invalid, then another dialog: mail quit unexpectedly.
In addition, mail now may contain messages which erroneously error
with "Message has not been downloaded from the server, take this
account online to view".
I have tested this for the past few weeks and have confirmed that no
messages are lost (they have been moved into a Finder folder) and
Mail Saver has operated correctly. All you have to do to clear the
problem is Rebuild the mailboxes. But ...
These error messages WILL scare the user!!!
I could explain this in the documentation ... but this will scare the
user, too.
The only solution that makes sense is to "lock" Mail until Mail Saver
finishes, thus avoiding all errors and explanations. And, no, there
isn't a 'transaction' command in Mail. Perhaps I can get something
to work using a Smile dialog, but I'm not sure such a dialog will
lock Mail the same way that 'tell application "Mail" to display
dialog ...' does.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden