AppleScript: Get Attachments

Timothy J.Wood tjw at omnigroup.com
Sun Jan 2 13:04:51 PST 2005


On Dec 30, 2004, at 1:53 PM, Michael Terry wrote:
> Is there any way to get this out of Outliner? I think the pictures 
> would be considered attachments, flowed with the text of the row. 
> However, any way I access them, they just come out as "?". Any 
> suggestions?

   There is no way to get this right now, sadly.  We were hoping to take 
Apple's lead on this, but no lead has been forthcoming yet.  The likely 
way this will play out is:

	text attachments of text of MyCell

   with attachment having some set of as yet undefined properties 
('expanded', 'title', 'url', and 'file' being likely candidates).  We 
might also have subclasses for 'url attachments', 'movie attachments' 
and such so that you can filter the attachment type you are wanting to 
look for.  This is all nebulous, since we weren't sure what people 
would want -- please send a list of what you want to 
omnioutliner3 at omnigroup.com to make sure this gets logged.


> I wanted to fall back on using GUI scripting to copy the rows, and 
> then parse them in AS, but this is a little tricky, partly because 
> Outliner doesn't seem to use nearly as many controls as it used to. 
> The entire window content area comes up as one Scroll View in UI 
> Element Inspector, so it's tough to manipulate. (I'm sure we owe 
> Outliner's increased performance partly to this.) This dovetails with 
> my last message, where I was hoping to change the selection with 
> AppleScript. Thats another way I could loop over the rows and copy 
> them with GUI scripting.

   You might have some luck with 'select MyCell'.  This will start 
editing in the specified cell and then you might be able to use UI 
scripting to futz with the text object that is the first responder of 
the window.  We also want to support accessibility in our outline view, 
but this involves a fair bit of work that didn't make it into 3.0.  
With infinite time, all things are possible... :)

-tim




More information about the OmniOutliner-Users mailing list