Hello there,
TextMate 2 removed the option of new-from-template, so with your help I created a command. After updating to Yosemite and TextMate 2.0-beta.6 it stopped working.
*Compressed version of the problem*
#!/usr/bin/osascript tell application "System Events" keystroke "p" end tell
*Error:*
HTML5:63:122: execution error: An error of type -10810 has occurred. (-10810)
HTML5 is the name of the command. I don't know what 63 and 122 refers to, as there are only 18 lines in my command. Is it perhaps a permissions problem?
All the best, Rasmus
On Nov 12, 2014, at 2:00 AM, Rasmus Malver rasmus@malver.dk wrote:
tell application "System Events"
I'm sure this a dumb question, but did you remember to enable System Events in the Security pref pane? m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On Nov 12, 2014, at 9:22 AM, Matt Neuburg matt@tidbits.com wrote:
On Nov 12, 2014, at 2:00 AM, Rasmus Malver rasmus@malver.dk wrote:
tell application "System Events"
I'm sure this a dumb question, but did you remember to enable System Events in the Security pref pane? m.
In fact, wouldn't you need to enable both System Events *and* TextMate?
m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
It was not a dumb question, and it was really that simple. I don't know why, but the Yosemite update changed those settings.
For anybody else, it's System Preferences ➤ Security & Privacy ➤ Privacy ➤ Accessibility ➤ Allow TextMate to control your computer.
Naturally this is a matter of privacy, Apple. Unlike Spotlight sending every query to you. Sigh.
Vielen Dank, Matt!
Rasmus
On 12/11/14 18.23, Matt Neuburg wrote:
On Nov 12, 2014, at 9:22 AM, Matt Neuburg matt@tidbits.com wrote:
On Nov 12, 2014, at 2:00 AM, Rasmus Malver rasmus@malver.dk wrote:
tell application "System Events"
I'm sure this a dumb question, but did you remember to enable System Events in the Security pref pane? m.
In fact, wouldn't you need to enable both System Events *and* TextMate?
m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate