On Oct 03, 2014, at 09:08, Jan Erik Moström <[email protected]> wrote:
> 
> Which isn't bad. But I'm curious to know if it's possible to make this one 
> action instead of two.
______________________________________________________________________

Hey Jan,

Easy enough.

--
Best Regards,
Chris

-------------------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2014/10/03 12:24
# dMod: 2014/10/03 12:27
# Appl: BBEdit
# Task: Make new document of specific size, insert a clipping, set src-lang to 
Markdown.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @BBEdit, @Make, @New, @Document, @Bounds, 
@Insert, @Clipping
-------------------------------------------------------------------------------------------

set _clipping to alias ((path to application support from user domain as text) 
& "BBEdit:Clippings:Universal Items:Jan's Clipping")
tell application "BBEdit"
  set newDoc to make new document with properties {bounds:{317, 44, 1403, 
1196}, source language:"Markdown"}
  tell newDoc's window
    insert clipping _clipping
  end tell
end tell

-------------------------------------------------------------------------------------------

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" 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 [email protected].
To post to this group, send email to [email protected].

Reply via email to