This is some dangerous to me, because I am Mac only, but ...
If you could double click on your document and all works fine.. then
you should also:
dim myDocFile as folderitem
myDocFile = DesktopFolder.child("myFile.txt")
myDocFile.Launch
This works on Mac if the FileCreator and FileType is correct. ( Do
NOT launch the app, launch the Document!)
Sven E
On 2007-07-30, at 07:41, Lennox Jacob wrote:
> OK Steve,
>
> I know it is different.
>
> I already have my app configured for win32 drag and drop and double-
> clicking - AssociateFileType and RegistermyApp. myApp works perfectly.
>
> The problem is that I want to create a text file in a pushbutton
> event in another application (myOtherApp), and have it launch myApp
> and display the file contents.
>
> OK, I can launch myApp via f.launch but I cannot get the newly
> created file to launch myApp.
>
> If I drop the newly created file manually over myApp's icon then
> myApp is launched and its contents displayed.
>
> Any advice?
>
> Thanks.
>
> Lennox
>
> Steve Garman <realbasic at garman dot demon dot co dot uk> wrote: In a
> message
> regarding Re: f.launch in win32 dated Sun, 29 Jul 2007
> 19:28:27 -0700 (PDT), Lennox Jacob said that ...
>
>> Yes, and I can do it very easily on Mac with f. launch like this:
>
>> Use an app to create a text file (f)
>> then use
>> f.MacCreator = "WXYZ" where WXYZ is the appropriate MacCreator
>> f.MacType = "text"
>> f.Launch
>
> OK, so on the Mac you have the MacCreator set up for your app
>
> The win32 equivalent is a much blunter instrument - to associate a
> whole
> file extension with your app.
>
> Are you planning to do that? If not, the launch process will need
> to be
> different on windows.
>
> Sorry if I'm covering old ground but I haven't been following this
> thread.
>
> --
> Steve Garman
> Using RB2007r3 Professional on Windows Vista Ultimate
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|