I want to delete the last word in a selection in BBEdit 6.1.
…
delete last word of contents of selection in window 1
…
does not work – “delete” is in the BBEdit dictionary but it gives an error, “last word doesnb’t know about delete” etc.
What does one do to accomplish this, please?
A U S T I N .
uimike
#2
This works for me:
tell application “BBEdit”
delete last word of selection of window 1
end tell
Mike
tell app “BBEdit”
set aVar to selection in text window 1
delete last word of aVar
…what am I doing wrong? please
uimike
#4
Look at the script below and you´ll see that gets put i aVar when you setit to selection:
tell application “BBEdit”
set aVar to selection in text window 1
return aVar – this is handy for watching what the variable gets set too
end tell
…
result: characters 1 thru 39 of text window 1 of application “BBEdit”
Mike