Re: Applescript: Get text contents of text note

2008-01-27 Thread Patrick Gilmour

Jim,

Thanks for pointing me to that - very comprehensive.

If I ever finish cobbling together this current script I'll post it  
here. I'm exporting a list of text items (with carriage returns in the  
text) as a .csv file to print, repurpose etc.


Cheers,

Pat




On Jan 25, 2008, at 11:05 PM, Jim Correia wrote:


On Jan 25, 2008, at 9:14 PM, Patrick Gilmour wrote:

I expect what I'm trying to do is very simple - I want to get the  
text contents of a text note into an AppleScript variable. When I  
use the following code, however, it gives me the note id and not  
the text stored in it.


set theDef to contents of item i of myTargets
(* where myTargets is a list of items *)

I guess it's protecting me from trying to get rich text into a text  
string. So is there some way of doing this? I just need the text  
from the note in the variable.


Rather than repeat myself :-)...

http://www.listsearch.com/Yojimbo/Message/index.lasso?3638

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  
workingcorrectly? Please send mail to: [EMAIL PROTECTED]



--
--
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]


Applescript: Get text contents of text note

2008-01-25 Thread Patrick Gilmour

Hi,

I expect what I'm trying to do is very simple - I want to get the text  
contents of a text note into an AppleScript variable. When I use the  
following code, however, it gives me the note id and not the text  
stored in it.


set theDef to contents of item i of myTargets
(* where myTargets is a list of items *)

I guess it's protecting me from trying to get rich text into a text  
string. So is there some way of doing this? I just need the text from  
the note in the variable.


Thanks,

Pat



--
--
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]