On 28/4/13 at 19:33, [email protected] (John Delacour) wrote:

...First, the Save As Stationery checkbox seems no longer to
exist, so I was not able to create stationery that way...

I am informed that things have indeed changed, at least for a while, and this option no longer exists.

Here is an AppleScript script (also attached) to enable the trouble-free saving of a file as Stationery:


set _stationery_folder to ¬
  ((path to application support from user domain) as string) & ¬
  "BBEdit:Stationery:"
tell application "BBEdit"
  set _windowname to the name of the front window
  tell me to set _dd to display dialog "
Creating a new stationery file in
\"~/Library/Application Support/BBEdit/Stationery/\"" & return & ¬
    return & ¬
    "Enter a name for the file:" default answer ¬
    _windowname with icon 1
  set _filename to text returned of _dd
  tell application "Finder"
    if exists file (_stationery_folder & _filename) then
      tell me to set _dd to display dialog ¬
        "A Stationery File named “" & ¬
        _filename & "” already exists." & return & ¬
        "Enter a new name or overwrite it:" with icon 2 buttons ¬
        {"Cancel", "Overwrite it", "Save"} default button ¬
        "Save" default answer ""
    end if
    if button returned of _dd is "Save" then
      set _filename to text returned of _dd
    end if
  end tell
  save the front document to file ¬
    (_stationery_folder & _filename) with saving as stationery
end tell

--
--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Attachment: Save as stationery.scpt
Description: Mac BinHex archive

Reply via email to