Applescript: Execute a line in a worksheet

2011-02-08 Thread Christopher Stone
Hey Folks, Is there a way to execute a line in a worksheet via Applescript? I've got a script that preassembles a command and opens it in a new worksheet, and I'd like for the script to execute the line as well to save me a step. TIA -- Best Regards, Chris -- You received this message

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Doug McNutt
At 12:18 -0600 2/8/11, Christopher Stone wrote: Is there a way to execute a line in a worksheet via Applescript? I've got a script that preassembles a command and opens it in a new worksheet, and I'd like for the script to execute the line as well to save me a step. There certainly is a way to

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Bruce Van Allen
On 2011-02-08, Christopher Stone wrote: Hey Folks, Is there a way to execute a line in a worksheet via Applescript? I've got a script that preassembles a command and opens it in a new worksheet, and I'd like for the script to execute the line as well to save me a step. Not sure if this

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread John Delacour
At 12:18 -0600 08/02/2011, Christopher Stone wrote: Is there a way to execute a line in a worksheet via Applescript? I've got a script that preassembles a command and opens it in a new worksheet, and I'd like for the script to execute the line as well to save me a step. You do mean

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Bruce Van Allen
On 2011-02-08, John Delacour wrote: You do mean document/window, I suppose, and not worksheet, which is an Excel thing? John -- You don't know about BBEdit (shell) worksheets? - Bruce _bruce__van_allen__santa_cruz_ca_ -- You received this message because you are subscribed to the

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Christopher Stone
On Feb 08, 2011, at 15:33, Bruce Van Allen wrote: Here is the applescript (watch out for email-induced line breaks): __ Hey Bruce, Interesting. That's not quite what I had in mind, but it gives me a few ideas that'll make the

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Steve Piercy
On Feb 8, 4:35 pm, Fritz Anderson fri...@manoverboard.org wrote: You're in for a treat. Select File New Shell Worksheet, and read what's in the window that appears. (MacOS Error code: -4960) Where's my treat? --steve -- You received this message because you are subscribed to the BBEdit

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Fritz Anderson
On 8 Feb 2011, at 6:58 PM, Steve Piercy wrote: On Feb 8, 4:35 pm, Fritz Anderson fri...@manoverboard.org wrote: You're in for a treat. Select File New Shell Worksheet, and read what's in the window that appears. (MacOS Error code: -4960) Where's my treat? Your treat is that you have

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Bruce Van Allen
On 2011-02-08, Christopher Stone wrote: Playing a bit with your script: Nice. I modified the second one to delete starting one character later, to preserve the end-of-line after #-#-#, so the output starts on its own line. That's the '+ 1'. tell application BBEdit try tell text of

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Christopher Stone
On Feb 08, 2011, at 19:40, Bruce Van Allen wrote: I modified the second one to delete starting one character later, to preserve the end-of-line after #-#-#, so the output starts on its own line. That's the '+ 1'. __ Aha!

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Doug McNutt
At 19:03 -0600 2/8/11, Fritz Anderson wrote: On 8 Feb 2011, at 6:58 PM, Steve Piercy wrote: On Feb 8, 4:35 pm, Fritz Anderson fri...@manoverboard.org wrote: You're in for a treat. Select File New Shell Worksheet, and read what's in the window that appears. (MacOS Error code: -4960)