New topic: 

Default app for file type?

<http://forums.realsoftware.com/viewtopic.php?t=47733>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        BrianOBrien          Post subject: Default app for file 
type?Posted: Mon Apr 29, 2013 12:33 pm                                 
Joined: Wed Jul 07, 2010 2:55 pm
Posts: 691
Location: University Of Calgary, Faculty Of Medicine                I have an 
application I wrote that I would normally open files through the menu.
i.e. File, Open... .fil
So, on a MAC, when I click on my applications file type, the OS asks what 
application I'd like to use to open this fil type.
I navigate to my application but it isn't highlightable.

So two questions:

1) why isn't my application a recommended application for this type?
2) App.OpenDocument is called if the user has double-clicked on a document 
whose creator matches the application’s creator, but the window that has the 
method to read the data isn't know to App.      
_________________
If at first you don't succeed... Try REALBasic.  
                             Top                kermit          Post subject: 
Re: Default app for file type?Posted: Mon Apr 29, 2013 4:21 pm                  
       
Joined: Mon May 30, 2011 12:56 am
Posts: 674                create a filetype for the kind of file you want.
In the project settings, assign an application identifier
eg
com.mycompany.productname

in  AcceptfileTypes, add the file type you want.
Set the Role to be 'editor'


On windows, use the installer to assign the type to your app.

In the OpenDocument event of the app, you are passed an  item  as a folder item.
This is the file you need to open.   
                             Top                BrianOBrien          Post 
subject: Re: Default app for file type?Posted: Mon Apr 29, 2013 4:52 pm         
                        
Joined: Wed Jul 07, 2010 2:55 pm
Posts: 691
Location: University Of Calgary, Faculty Of Medicine                Thank you 
very much!      
_________________
If at first you don't succeed... Try REALBasic.  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to