AppleScript "Save as..."

2014-11-01 Thread jgill
I'm using an AppleScript to generate a web page which needs to be saved to a specific local folder. I can't figure out how to access BBEdit's "Save as..." operation. "Save" is covered in the BBEdit Dictionary but not "Save as..." -- This is the BBEdit Talk public discussion group. If you have

Re: AppleScript "Save as..."

2014-11-01 Thread Christopher Stone
On Nov 01, 2014, at 11:56, jgill wrote: > I'm using an AppleScript to generate a web page which needs to be saved to a > specific local folder. I can't figure out how to access BBEdit's "Save as..." > operation. __ Hey Joe, Th

Re: AppleScript "Save as..."

2014-11-01 Thread jgill
Thank you Christopher, The files is a template file which I modify with AppleScript. It has a default name "Month Year.html". The AppleScript opens it, does a paste operation, and changes a few lines of text. I then want to save the modified files into another folder (2014) as, for instance "No

Re: AppleScript "Save as..."

2014-11-01 Thread Christopher Stone
On Nov 01, 2014, at 17:57, jgill wrote: > So, it is a previously saved file but is being modified and saved to a > different location. It will not be replacing the original template. __ Hey Joe, Okay. Something like this shou

Re: AppleScript "Save as..."

2014-11-02 Thread jgill
Thanks Christopher, I am copying and pasting found text tell application "BBEdit" activate find "" searching in text 1 of text document "index.html" options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend sele

Re: AppleScript "Save as..."

2014-11-02 Thread Christopher Stone
On Nov 02, 2014, at 03:36, jgill wrote: > I am copying and pasting found text __ Hey Joe, A good rule of the thumb in automation is to never use the clipboard, unless it's the best tool for the job. It's a common failure-poi

Re: AppleScript "Save as..."

2014-11-02 Thread jgill
Christopher, the reason I am using copy and paste is that there are two separate (rather complicated) Applescripts involved here. One which selects text from one page and another that inserts that text into a placeholder. Short of using an intermediate window, I can't think of any way to transfe

Re: AppleScript "Save as..."

2014-11-02 Thread Christopher Stone
On Nov 02, 2014, at 07:59, jgill wrote: > Christopher, the reason I am using copy and paste is that there are two > separate (rather complicated) Applescripts involved here. One which selects > text from one page and another that inserts that text into a placeholder.

Re: AppleScript "Save as..."

2014-11-02 Thread jgill
Hi Cristopher, I managed to do it with one script. The timing issues I had with my old MacPro are not there with my new iMac. It's much faster. Can I ask how you manage to insert colour-coded scripts into this forum? Thanks, Joe On Saturday, November 1, 2014 4:56:44 PM UTC, jgill wrote: > > I

Re: AppleScript "Save as..."

2014-11-02 Thread Christopher Stone
On Nov 02, 2014, at 13:11, jgill wrote: > I managed to do it with one script. __ Hey Joe, Very good. > Can I ask how you manage to insert colour-coded scripts into this forum? I copy them from Script Debugger (after compiling