Usually the record button in the Script Editor will reveal at least the basic 
shape of the commands related to a menu option, but it doesn't return anything 
for "Reload from Disk".

This code does the equivalent closing without saving and then re-opening the 
frontmost document.

tell application "BBEdit"
  set myfile to file of front text document
  close front text document saving no
  open file myfile
end tell

Hope this helps,

[fletcher]

> On Jan 25, 2018, at 8:59 AM, David Roland-Holst <dwr...@gmail.com> wrote:
> 
> Can anybody suggest how to do this for a file in applescript?
> 
> Thanks,
> David
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to