I see now. If
> f=DocumentsFolder.child("myfile")
> f.launch
doesn't work then you have a problem with how RB asks Windows to launch a
document file although my understand was that if all of the file
associations were right it should work.
What I was suggesting was that f would point to your application not the
document and that you would pass the file as a parameter. Parameters only
make sense when the thing being launched is an application.
You might take this to the forums so that Aaron will give you his feedback.
Chris
on 7/30/07 9:34 AM, Lennox Jacob at lenpartico at yahoo dot com wrote:
>
> 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.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|