On Jun 15, 2006, at 10:46 PM, Doug McNutt wrote:

At 21:56 -0400 6/15/06, Jim Correia continued:
For example, to convert the front document into something readable, the best way is probably via AppleScript. (It requires a small hack to close and reopen the file since there is currently no other way to get BBEdit to reload the file contents via script.)

I just learned that the automatic reload preference doesn't work with an AppleScript. One could incorporate the Applescript into an osascript command within a shell script and fix that up.

When I said "no other way to get BBEdit to reload the file contents via script" I mean that there is no *script initiated* way to force a file to reload other than to close and re-open it.

If you run the script from BBEdit's script menu or palette, and have the appropriate preference set, the file will be verified after the script is run.

If you run the script from elsewhere, the files aren't verified (because BBEdit has no idea that you are even running a script.)

Jim

--
------------------------------------------------------------------
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