on 2/11/00 1:36 PM, Tereza Snyder at [EMAIL PROTECTED] wrote:
>> Have you created/edited the necessary resources in the Mac standalone
>> to link the application, the files, and the associated icons? The
>> resources involved are BNDL and FREF (and any icon resources you
>> need). You will also need to set the creator and file type strings
>> for the relevant files.
>>
>
> I have done this, and if I click on a BNDL'd file it DOES launch the app
> - but now the scripts need to know so they can read the file and do the
> right thing (set the prefs, show the text, whatever...); I'm stuck!
Note: This is off the cuff, but if memory serves it goes something like
this:
on appleEvent pEvent, pSender, pID
if pEvent = "odoc" then
request ae data
repeat for each line tFile in it
-- open each
end repeat
end if
end appleEvent
--
Richard Gaskin
Fourth World
Multimedia Design and Development for Mac, Windows, UNIX, and the Web
_____________________________________________________________________
[EMAIL PROTECTED] http://www.FourthWorld.com
Tel: 323-225-3717 ICQ#60248349 Fax: 323-225-0716
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm