At 1:00 PM -0400 5/10/08, Marc Liyanage sent email regarding Re: Contextual Menu 'Notes' Script:
On 10.05.2008, at 01:44, Marconi wrote:

Can an AppleScript be included in a .bundle to create a contextual menu
item? Any and all help appreciated.

on my Leopard instalation, right-click gives me 'more' at the bottom, which leads to Automator, amongst other things. Does that help?

No.

Why doesn't it help?

All Automator was able to do is open a new, unsaved document in BBEdit. I'm trying instead to create a new document in the front/clicked Finder window and then open it in BBEdit.


Sticking the following bit of shell code into a "Run Shell Script" automator action and then storing the workflow into ~/Library/Workflows/Applications/Finder does what I think you want (if you have the command line "bbedit" helper installed, otherwise it could be rewritten in AppleScript).

Thanks, I'll give it a try.


DIR=$(osascript -e 'tell application "Finder" to POSIX path of (target of window 1 as alias)')
bbedit "${DIR}Notes"

--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to