realbasic-nug
[Top] [All Lists]

Re: f.launch in win32

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: f.launch in win32
From: Lennox Jacob <lenpartico at yahoo dot com>
Date: Mon, 30 Jul 2007 06:34:41 -0700 (PDT)
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I left out 
myfile = DocumentsFolder.child("myfile") 
f=DocumentsFolder.child("myfile")
myfile = DocumentsFolder.child("myfile")
 
f.launch myfile.absolutepath
or
myfile.launch
does not work,getting a NilObjectException error and four instances of the
blank document appears.



How do I code that pushbutton?


Lennox Jacob <lenpartico at yahoo dot com> wrote: OK, to makke it simpler.

I have a document in my DocumentsFolder named myfile, if I double-click myfile 
it will launch myApp, create a new window for myApp and the contents of myfile 
will be displayed.

Now, I would like to code a pushbutton in myOtherApp so that when pushed it 
will launch myApp, create a new window for myApp and the contents of myfile 
will be displayed.

f=DocumentsFolder.child("myfile")
f.launch myfile.absolutepath
or
myfile.launch
does not work,getting a NilObjectException error and four instances of the
blank document appears.

How do I code that pushbutton?

Thanks.

Lennox


Lennox Jacob  wrote: OK Steve,

If i create a file using myApp, when I put the mouse over it the balloon help 
shows it as Type: WXYZ file, if I double click it it will launch myApp and its 
contents will be displayed.

When I create a text file in myOtherApp, when I put the mouse over it  the 
balloon help shows it as Type: File, I now have to manually drop it over 
myApp's icon for it to launch myApp and have its contents displayed.

Lennox.

Steve Garman  wrote: > Are you planning to do that? If not, the launch process 
will need to be
> different on windows.

Sorry, just found this and I'm late for work.

In a message regarding Re: Help: (Win 32) How to launch a text file with a
specific app dated Thu, 26 Jul 2007 06:56:57 -0700 (PDT), Lennox Jacob said
that ...

> OK, I already have the myApp File Types and File Association configured. 
 
does your document file name end with the appropriate extension .WXYZ
If not, the file association won't work.

If you double-click the document icon (in Windows Explorer - similar to the
Finder) does you app launch?

If not, the file association is not configured properly.

-- 
Steve Garman
Using RB2007r3 Professional on Windows Vista Ultimate


_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives:



       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.
_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives:



       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives:



       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
_______________________________________________
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>