On 9/20/07 at 2:47 PM, Jim DeVona <[EMAIL PROTECTED]> spake thusly:

Is it possible to use a "whose" clause to get only items of a certain
type from a list of Yojimbo database items? Here is an example
intended to get any selected bookmark items:

tell application "Yojimbo"
        
        set _items to selected items of browser window 1
        if _items is missing value then return
        
        set _bookmarks to every item of _items whose class is bookmark item
        
end tell

The bookmarks line gives this error: 'Can't get {bookmark item id
"D0303DFD-C8B1-4F17-BD0E-EAD40018D3A1" of application "Yojimbo"} whose
class = bookmark item.' I suspect I am either grossly off track or
nearly there. Any guidance?


This works for me.

--> Cut <--
tell application "Yojimbo"
        set foo to every database item whose class is bookmark item
end tell
--> Cut <--
--
Under a government which imprisons any unjustly, the true place for a just man is also in prison.  -Henry David Thoreau

--
------------------------------------------------------------------
This message is sent to you because you are subscribed to
 the mailing list <[email protected]>.
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  <http://www.listsearch.com/yojimbotalk.lasso>
Have a feature request, or not sure if the software's working
correctly? Please send mail to: <[EMAIL PROTECTED]>

Reply via email to