At first glance, I'd expect your script to work as intended so
please ping tech support via the usual means, namely
[email protected] :-) and we'll be happy to investigate.
Regards,
Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>
[PS: For reference, you needn't worry about explicitly making
AppleScript scripts executable.]
On 6/2/17 at 2:28 PM, [email protected] (George Warner) wrote:
I created a simple script <File•Save.scpt> and put it in the
<~/Library/Application Support/BBEdit/Menu Scripts/> folder but
it's not being called when I select the File menu's Save item.
This is the (simple) script:
*on* menuselect(menuName, itemName)
*if* menuName = "File" *and* itemName = "Save" *then*
*display dialog* "Are you sure you want to save?" buttons
{"No", "Save"} default button 2
*return* *false*
*end* *if*
*end* menuselect
I never see the dialog. I checked the script's file protections:
term> l ~/Library/Application\ Support/BBEdit/Menu\ Scripts/File•Save.scpt
-rwxrwxrwx@ 1 geowar staff 6052 Jun 2 10:44
/Users/geowar/Library/Application Support/BBEdit/Menu Scripts/File•Save.scpt*
So its got executable privileges…
Little help?
--
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].
Visit this group at https://groups.google.com/group/bbedit.