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.
>
>


|