realbasic-nug
[Top] [All Lists]

Re: FolderItem.launch monitoring

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: FolderItem.launch monitoring
From: Jann Gobble <janngobble@gmail.com>
Date: Fri, 29 May 2009 14:40:40 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=NmB46Z6Y/vLiKb0++FzMuq7WCl4QpD6uL1eaOnqQTmg=; b=F37WxsKACktMMXMzHE4+5ucBh4sRmZNWdX0dtZQtBvXskfOXS2DrHAeZqmdSs80ODD /IKcjuylQkzF3sXiy1mCK6TQwcrCKdQIAcNky/+v/QbcJlGPBg7aVvT3+mwptAeTQXln 8fo4yZSv78FdNuHXehxuz99ko0JOPURXYN2MM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=fii3sEUPzzsFfFvyY4MCJn0ePnBepMN3ISrhmL7hh4YZOw53qnjS8dkLYSVZ1r8C8l bSVwQ5IPH4UweNNalKU6oZVkJmslElJr9jgB83nPF8kSLgrk9u2f3wfkkQbza6gX9Q2q 5qD60C8j9gX6xu4eqw+41uLHAP7U/V4LQnqEA=
In-reply-to: <2D2625F8-1D66-4E70-9621-6A8D191229A5@mac.com>
References: <mailman.1421.1243524215.12275.realbasic-nug@lists.realsoftware.com> <A654B52967750C439058C3A5CA373F0903ABEA1A@ucexchange4.canterbury.ac.nz> <e3e2c9250905281404w2d139d33i7e8f57f763b3e5fe@mail.gmail.com> <AB8B60C2-DF1D-4814-A9B6-62D809448D07@great-white-software.com> <D920F59A-832E-45C7-B82B-A5B722A8DFF6@tolisgroup.com> <2FA65D53-286C-4B3F-BA35-057AFCA2137B@great-white-software.com> <2D2625F8-1D66-4E70-9621-6A8D191229A5@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On May 29, 2009, at 2:33 PM, Anic wrote:

Le 29 mai 09 à 00:39, Norman Palardy a écrit:


On 28-May-09, at 4:05 PM, Tim Jones wrote:



On May 28, 2009, at 2:35 PM, Norman Palardy wrote:



On 28-May-09, at 3:04 PM, Bastian Bense wrote:



I doubt you can do that using folderItem.launch(). The best way to do that (depending on the application you are using) is to use a shell command and
wait until it finishes/terminates.



In an OS X shell you can use open -W and the shell wont complete til the application opened quits Combine -W with -n and then when the user quits the copy of the application you launched you'll be 100% sure it's the right one



One very important tip - make sure the shell is in asynchronous mode (Mode = 2), or your app will appear frozen while the shelled process runs.



ah right ... you may or may not want that but it's a good thing to remember :)


The Apple Interface Guidelines mention that an application should not appear frozen (with the coloured mouse cursor of the spinning ball). I agree with them: when I see an unexpectedly frozen application, I try to force quit it.


Something better may be to use asynchronous mode (like was said above) but launch it from a thread in the application, that way if there is an issue with the shell, the rest of your app is not locked up.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>