Hey Folks,
Doing a couple of things in quick and dirty fashion and thought I'd
take the opportunity to renew my acquaintance with BBEdit scripting a
bit more. In this case I'm stripping an url from a list of them in
the front BBEdit text document and later sending it to Safari.
Am I missing something, or is this really the simplest way to get and
then delete the last line?
tell application "BBEdit"
tell front text document
if (get contents of last character) = return then
delete text of last character
end if
tell last line
set theURL to its contents
delete its text
end tell
end tell
end tell
Using Tex-Edit Plus for contrast:
tell application "Tex-Edit Plus"
tell front document
set theURL to last line
delete last line
end tell
end tell
Also: does anyone have a handle on the best mailing-list for Perl (for
Mac OS X users)?
Thank you.
--
Chris
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.