views:

88

answers:

3

I have opened the AppleScript Editor and pressed Record button.

Then I run TextEdit, create a file and put some text there.

When I click the Stop button in AppleScript Editor, nothing was recorded, the window is blank.

What is the problem?

+2  A: 

Not all apps are recordable (in fact, only a small handful are). Recordablity is something each app needs to implement, and I guess TextEdit isn't recordable.

RyanWilcox
+2  A: 

The problem is that applications need to explicitly support AppleScript recording in order for it to work, but almost no applications actually do. The Finder still supports it a bit, and maybe a couple other apps (BBEdit cones to mind), but for the most part, AppleScript recording has been pretty useless for quite some time.

Brian Webster
Isn't TextEdit Apple's own application? :)
never_had_a_name
Yes, TextEdit is Apple's own application, but their Applescript support has dwindled over the years. TextEdit's Applescript implementation leaves a lot to be desired. A lot of application support Applescript (more than you might think, actually), but it's more a case of the quality of the support is lacking than anything. If you need to script a text editor, you are much better off with BBEdit if you can get away with it.
Philip Regan
"The Finder still supports it a bit..." A lot of what was in the Finder is now found in System Events, and there is a lot more there than there ever was in the Finder.
Philip Regan
+1  A: 

Not to mention the limited use you get from recording your action in an application... Probably why so few of them are recordable... The end goal is not worth the process.

Michel Lemieux