Re: Accessing Most Recently Added Item Via Applescript

2007-09-26 Thread Jeff Berg

tell application Yojimbo
copy last item of collection Recent Items to vLatestItem
get name of vLatestItem
end tell

Of course, you can perform any operation on vLatestItem

rgds!

jab 

smime.p7s
Description: S/MIME cryptographic signature


Accessing Most Recently Added Item Via Applescript

2007-09-25 Thread Kenneth Kirksey
Subject kind of says it all. What's the easiest way to access via  
Applescript the item most recently added to Yojimbo? Thanks!




--
--
This message is sent to you because you are subscribed to
 the mailing list yojimbo-talk@barebones.com.
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]


Re: Accessing Most Recently Added Item Via Applescript

2007-09-25 Thread Jim DeVona
On 9/25/07, Kenneth Kirksey [EMAIL PROTECTED] wrote:

 Subject kind of says it all. What's the easiest way to access via
 Applescript the item most recently added to Yojimbo? Thanks!

Steve Kalkwarf shared an example that does this by getting the last
item of the Recent Items collection:

http://www.listsearch.com/Yojimbo/Thread/index.lasso?786#3857

These are the key lines:

set ri to builtin smart collection named Recent Items
set recentItem to last item of ri

Hope this helps.

Jim

-- 
--
This message is sent to you because you are subscribed to
  the mailing list yojimbo-talk@barebones.com.
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]