can anyone see what is wrong with the script below? I've varied
the names/numbers option on menu items but all I get is a beep
when I run this. I have similar scripts for Services that seem
to work (though I do find UI scripting a bit unpredictable -
sometimes swapping the name for the number seems to make the difference).
tell application "System Events"
set currentapp to (name of current application)
tell process currentapp
tell menu bar 1
tell menu bar item currentapp
tell menu 1
tell menu item "Services"
tell menu 1
tell menu item "BBEdit"
tell menu 1
click menu item 1 --"New
Window with Selection"
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
--
------------------------------------------------------------------------
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]>