Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Realbasic > Re: dropping fi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 3305 of 3326
Post > Topic >>

Re: dropping file onto a REALbasic app

by Mac Dude <do@[EMAIL PROTECTED] > Mar 6, 2008 at 04:30 AM

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




 8 Posts in Topic:
dropping file onto a REALbasic app
Mac Dude <do@[EMAIL PR  2008-03-02 22:25:01 
Re: dropping file onto a REALbasic app
Dale Arends <dalearend  2008-03-03 20:11:59 
Re: dropping file onto a REALbasic app
Mac Dude <do@[EMAIL PR  2008-03-04 06:51:55 
Re: dropping file onto a REALbasic app
"fontoholic" &l  2008-03-04 16:04:55 
Re: dropping file onto a REALbasic app
No One <noone@[EMAIL P  2008-03-05 03:59:12 
Re: dropping file onto a REALbasic app
Mac Dude <do@[EMAIL PR  2008-03-06 04:30:55 
Re: dropping file onto a REALbasic app
bubba jones <bubba@[EM  2008-04-09 21:01:45 
Re: dropping file onto a REALbasic app
Mac Dude <do@[EMAIL PR  2008-04-17 06:13:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:39:07 CDT 2008.