Re: Reload from Disk

2018-02-04 Thread Christopher Stone
Hey David,

You could give ‘Reload from Disk’ a keyboard shortcut in BBEdit's ‘Menus & 
Shortcuts’ prefs if manual activation would work for you.

As Rich mentioned – reloading isn't scriptable – but if you really need it to 
be then either Keyboard Maestro <https://www.keyboardmaestro.com/main/> or 
FastScripts <https://www.red-sweater.com/fastscripts/> and UI-Scripting would 
probably be the way to go.

(BBEdit doesn't like doing UI-Scripting from its own script menu.)

Here's how to do it with AppleScript and UI-Scripting:


# Auth: Christopher Stone
# dCre: 2018/02/04 21:00
# dMod: 2018/02/04 21:10
# Appl: BBEdit, System Events
# Task: Activate ‘Reload from Disk’ menu item.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @BBEdit, @System_Events, @Activate, 
@Reload_from_Disk, @Menu, @Item


tell application "System Events"
tell application process "BBEdit"
tell menu bar 1
tell menu bar item "File"
tell menu 1
    tell menu item "Reload from Disk"
if enabled then
perform action "AXPress"
end if
end tell
end tell
end tell
end tell
end tell
end tell



Rich also mentioned that BBEdit is very good about reloading files when the 
disk content changes.

But ‘Automatically refresh documents as they change on disk’ must be turned 
[ON] in the ‘Application’ preference panel.

I have seen rare occasions when this didn't work properly with certain 
documents, although NOT so far with BBEdit 12.

--
Best Regards,
Chris

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


Re: Reload from Disk

2018-01-28 Thread Rich Siegel

On 1/25/18 at 11:59 AM, dwr...@gmail.com (David Roland-Holst) wrote:


Can anybody suggest how to do this for a file in applescript?


Reloading isn't scriptable; but in general, changes to the file 
on disk are sensed and the document is automatically reloaded.


What problem are you trying to solve?

R.
--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


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


Re: Reload from Disk

2018-01-25 Thread Fletcher Sandbeck
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.


Reload from Disk

2018-01-25 Thread David Roland-Holst
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: 
--- 
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.


Re: Reload from disk should work in ftp/sftp mode also, and a shortcut would be appreciated

2016-05-16 Thread Gilles Misslin1
Ok Kerri,

i know these softwares but they are quite heavy, bahave as intermdiates, 
and have not a good behaviour when you switch from one internet connection 
to another, while leaving BBedit opened. 

But i asked Rich to take in account that an integrated relaod / refresh 
feature inside BBedit would be definitively more elegant, as CMD-R (mac) or 
F5 (windows) in navigators.

Have a good week-end,

Gilles



Le vendredi 13 mai 2016 16:09:47 UTC+2, Kerri Hicks a écrit :
>
> To take advantage of these features, I use an SSHFS connection tool (there 
> are a few, including MacFuse  and ExpanDrive 
> ). With that, you mount your remote server as 
> though it were a drive connected to your Mac. When you do that, I believe 
> you can use all BBEdit's disk-related features, including reloading.
>
> --Kerri
>
> On Fri, May 13, 2016 at 7:46 AM, Gilles MISSLIN  > wrote:
>
>> Hello everybody,
>>
>> i am new here, but not new about Bbedit i am using at least 3 hours per 
>> day.
>>
>> When debugging, i would love to have a reload button, shortcut, that 
>> would enable to reload the active document from disk (this function exists) 
>> and also from ftp/sftp remote file.
>>
>> This would be very usefull when we are currently debugging and we are 
>> waiting for remote log files to be updated with some traces (eg: apache 
>> logs, php error logs).
>>
>> I do not know is somebody of barebones is reading this group, i hope so !
>>
>> Thanks,
>>
>> Gilles from France.
>>
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or would like to report a problem, please email
>> "sup...@barebones.com " rather than posting to the group.
>> Follow @bbedit on Twitter: 
>>
>> --- 
>> 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+un...@googlegroups.com .
>> To post to this group, send email to bbe...@googlegroups.com 
>> .
>>
>
>

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

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


Re: Reload from disk should work in ftp/sftp mode also, and a shortcut would be appreciated

2016-05-14 Thread Tom Robinson
Welcome Gilles :]

BB do read this group, but ask that feature requests (and bug reports) be sent 
directly to them — see the footer.

Cheers

Sent from my iPhone

> On 13/05/2016, at 23:46, Gilles MISSLIN  wrote:
> 
> When debugging, i would love to have a reload button, shortcut, that would 
> enable to reload the active document from disk (this function exists) and 
> also from ftp/sftp remote file.

[…]

> I do not know is somebody of barebones is reading this group, i hope so !
> 
> -- 
> 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.

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

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


Re: Reload from disk should work in ftp/sftp mode also, and a shortcut would be appreciated

2016-05-13 Thread Kerri Hicks
To take advantage of these features, I use an SSHFS connection tool (there
are a few, including MacFuse  and ExpanDrive
). With that, you mount your remote server as
though it were a drive connected to your Mac. When you do that, I believe
you can use all BBEdit's disk-related features, including reloading.

--Kerri

On Fri, May 13, 2016 at 7:46 AM, Gilles MISSLIN 
wrote:

> Hello everybody,
>
> i am new here, but not new about Bbedit i am using at least 3 hours per
> day.
>
> When debugging, i would love to have a reload button, shortcut, that would
> enable to reload the active document from disk (this function exists) and
> also from ftp/sftp remote file.
>
> This would be very usefull when we are currently debugging and we are
> waiting for remote log files to be updated with some traces (eg: apache
> logs, php error logs).
>
> I do not know is somebody of barebones is reading this group, i hope so !
>
> Thanks,
>
> Gilles from France.
>
>
> --
> 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: 
>
> ---
> 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.
>

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

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


Reload from disk should work in ftp/sftp mode also, and a shortcut would be appreciated

2016-05-13 Thread Gilles MISSLIN
Hello everybody,

i am new here, but not new about Bbedit i am using at least 3 hours per day.

When debugging, i would love to have a reload button, shortcut, that would 
enable to reload the active document from disk (this function exists) and 
also from ftp/sftp remote file.

This would be very usefull when we are currently debugging and we are 
waiting for remote log files to be updated with some traces (eg: apache 
logs, php error logs).

I do not know is somebody of barebones is reading this group, i hope so !

Thanks,

Gilles from France.


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

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