Oh-oh... I understand what you are saying, No One. However, Is the
AcceptFileTypes property a feature of a later RB version? From your
description
of where it is I gather you may be using RB 200x. In my version (5.2.4) I
cannot
find any such property & the online help comes up empty when searching for
such
a name.
I do have the OpenDo***ent event code ("fontoholic" is of course correct
in
stating that I need it). It all works as long as the creator code of the
text
file is the same as that of the app. But I really would like to be able to
drop
text files from different origins. I also would not like my app to open
*every*
saved email just because I double clicked the it (which is what I get if I
set
the opening application in the GetInfo window to my app).
So, anyone out there with RB 5.2.4 having seen an AcceptFileProperty??
Anyway, your hint was helpful.
Mac Dude.
In article <C3F35A90.51%noone@[EMAIL PROTECTED]
>, No One <noone@[EMAIL PROTECTED]
>
wrote:
> Creating the TEXT fileType as Dale described in the earlier reply is the
> first step.
>
> Then you need to add the file type to the App's AcceptFileTypes
property.
> Select the App class in the Project tab. AcceptFileType is near the
bottom
> of the property list at the right side of the window.
>
> Finally you need to add code to the OpenDo***ent event handler in the
App
> class as fontoholic mentioned.
>
> On 3/4/08 8:04 AM, in article d_mdnYXbgc2t7lDanZ2dnUVZ8qSnnZ2d@[EMAIL PROTECTED]
> "fontoholic" <malcolm911@[EMAIL PROTECTED]
> wrote:
>
> > Have you put something into the OpenDo***ent event of App?
> >
> >
> >
> > "Mac Dude" <do@[EMAIL PROTECTED]
> wrote in message
> > news:do-092726.14280402032008@[EMAIL PROTECTED]
> >> Hi,
> >>
> >> I wrote a little REALbasic app to process a TEXT file & then send the
> >> output via
> >> Applescript to another program (specifically, though not relevant
here, it
> >> takes
> >> an ics file originally form Outlook Calendar & enters the appointment
into
> >> the
> >> Datebook of Palm Desktop, so I can sync it to my Palm organizer). The
app
> >> basically works. (TEXT here refers to the file type code)
> >>
> >> My problem is that the built application won't accept a TEXT file
drop
> >> onto its
> >> icon UNLESS the dropped TEXT file has the same creator code as the
app. No
> >> highlighting of the app's icon, no opening the app, the dropped-file
icon
> >> simply
> >> snaps back. If I set the TEXT file & the app to the same creator code
then
> >> it
> >> works. If the TEXT file has a different creator code then I can make
my
> >> app open
> >> on double clicking the file by using the GetInfo box & making it open
> >> *all*
> >> files with the specific extension (.ics).
> >>
> >> What I want is that I can drop any TEXT file onto my app so I can
process
> >> email
> >> messages by dropping them onto the app. Many other progs work this
way.
> >>
> >> Any hint is appreciated.
> >>
> >> TIA,
> >>
> >> Mac Dude
> >>
> >> OS X 10.4.11 on a G4 PowerBook, RB 5.2.4.
> >
> >


|