Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jumpstart me with the scripting bridge



on 2007-11-06 6:54 PM, Bill Cheeseman at email@hidden wrote:

> on 2007-11-06 3:52 PM, Matt Neuburg at email@hidden wrote:
> 
>> [[bb textDocuments] addObject:doc];
> 
> I'm not familiar with BBEdit's dictionary, but what if you changed this to:
>   [bb addObject:doc];

I should know better than to fire off a quick response after a long day at
the office.

The concept I was trying to express is that adding the new document to an
ordinary mutable array of documents seems like it might naturally generate
something like 'at end of every document', since 'every document' and
'documents' are synonyms. So perhaps there's something about the way you're
declaring textDocuments. You didn't give us that detail, but I assume based
on a quick glance at the programming guide that it should be declared as an
SBElementArray. Certainly, according to the document, -addObject: is the
right method to call, since SBElementArray is a subclass of NSMutableArray.

In my own use of Scripting Bridge to date, I've only played with properties.
I haven't yet had occasion to get into elements.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden

References: 
 >Re: jumpstart me with the scripting bridge (From: Bill Cheeseman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.