Previous  |  Main  |  Next
AppleScript Logo

Toggle Window Properties

Script for: BBEdit
Copyright: Free, use at your own risk!
Description: Gives examples how to toggle boolean text window properties:

Script A: Toggles the "soft wrap" function of the frontmost window in BBEdit.
Script B: Toggles the "show invisibles" function of the frontmost window in BBEdit.

Other boolean text window properties which you can use with BBEdit 6.x:
  • (zoomed)
  • (auto indent)
  • (smart editing)
  • (auto balance)
  • (smart quotes)
  • (expand tabs)
  • (show spaces)
  • (show status bar)
  • (show philip bar)
  • (show tab stops)
  • (show cursor position)
  • (show function position)
  • (show line numbers)
  • (color syntax)
Necessary: None
Download: Script A:  ToggleSoftWrap.hqx (for BBEdit 6.x)
Script A:  ToggleSoftWrap.hqx (for BBEdit 5.x)

Script B:  ToggleInvisibles.hqx (for BBEdit 6.x)
Script B:  ToggleInvisibles.hqx (for BBEdit 5.x)
The Scripts: Script A:
tell application "BBEdit 6.0"
	tell text window 1
		set (soft wrap text) to not (soft wrap text)
	end tell
end tell

Script B:
tell application "BBEdit 6.0"
	tell text window 1
		set (show invisibles) to not (show invisibles)
	end tell
end tell

 


Contact: Matthias Steffens  |  Previous  |  Main  |  Next  |  Last Updated: 23-Sep-00