Thanks a lot, that actually got me going in the correct direction, and i now have my "weekly report" script done...

Frank
On Apr 29, 2008, at 11:26 PM, Bill Verity wrote:

I found bbedit to get into, but here is a function that I have to insert a line at the end of a file. The key is setting an insertion point and then set the selection.

...
my ToBBEdit(aList, Short_Title)
...
--
-- Write out names in outline format
-- Indent is the number space to ident the line
--
on ToBBEdit(NextName, Title)
        local blanks, nextLine
        tell application "BBEdit"
                tell front window
                        set blanks to characters 1 thru indent of " "
set nextLine to blanks & NextName & " " & Title & return as Unicode text
                        select insertion point after last character
                        set selection to nextLine
                end tell
        end tell
        return
end ToBBEdit

--
Good friends are hard to find, harder to leave, and impossible to forget.

Bill Verity - 814-865-4758  Fax: 814-863-7049
215A Computer Building - Information Technology Services, Penn State University
At the office - on my Mac, of course ;-)

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>



--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to