gettingstarted
[Top] [All Lists]

Opening document using application-revisited

To: gettingstarted at lists dot realsoftware dot com
Subject: Opening document using application-revisited
From: KHschmidt <khschmidt at cox dot net>
Date: Sun, 17 Dec 2006 18:23:24 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <20061217180013 dot D0F1B1743613 at lists dot realsoftware dot com>
On Dec. 5, 2006, I asked the following question:
I have two folderitems, fa (an application) and fd (a document). How can I open fd using fa?

I thank all those who made suggestions. I used the one by Sven E. Olsson (lists at seedit dot info) which was to temporarily change the MacCreator of the document. I did that successfully with the following simple sub:

Sub launchdoc (fa as folderitem, fd as folderitem)
  dim oldDcreator as string
  oldDcreator=fd.maccreator     // save original MacCreator of document
  fd.maccreator=fa.maccreator // change creator of document
fd.launch // document launches with the desired application
  fd.maccreator=oldDcreator    // restore old MacCreator

Tack så mycket, Herr Olsson!

Klaus Schmidt


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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • Opening document using application-revisited, KHschmidt <=