On Jun 7, 2007, at 14:52, [EMAIL PROTECTED] wrote:
On 2007-06-07, at 15:20.0, Brennan wrote:
On 6/1/07 at 8:07 AM, Maarten Sneep <[EMAIL PROTECTED]> wrote:
Unfortunately I haven't found a way to
store the application is a run time variable, so the best I came up
with for producing script sets for both applications is to use a sed
script on the text version of the scripts.
This version runs in BBEdit if available, otherwise TextWrangler:
(shortened version)
set theTextEditor to "BBEdit"
-- testing
tell application theTextEditor
set tstart to (current date)
set m to make new document with properties {contents:"foo"}
tell front window
repeat 200 times
select insertion point after last line
set selection to ((current date) as text) & return
end repeat
end tell
end tell
display dialog (current date) - tstart
Thanks, last time I tried something similar it would not compile,
these days it does. This may simplify my scripts quite a bit, with
some help from the other remarks as well. Still, using sed to
transform the scripts to produce compiled output for either is good
enough for me.
Maarten
--
------------------------------------------------------------------------
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_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>