![]() ![]() menu item under the Search menu, and enter, in the Find: field and \n in the Replace: field. Munging the output:To clean up the text of the output, you can use TextWrangler (or other free text processors, probably including TextEdit). It may even time out if you have a huge iTunes library- The script'll process most App's UI structures in under a minuteset appname to "System Preferences" - Set this to the App you want to look atset winstuff to "defaultval"set menustuff to "defaultval"tell application appname activateend telltell application "System Events" tell process appname set winstuff to entire contents of front window set menustuff to entire contents of menu bar 1 end tellend tell-return winstuff & "rrrr" & menustuff - comment this out to get just winstuffreturn winstuff - comment this out too to get just menustuff-return menustuff Pointing the code at 'System Preferences' with the 'Desktop & Screens Saver' pane open will return, along with 128 other UI objects, this line describing the slider which controls the delay before the screen saver activates: ![]() Entire Contents Demo - mini- BP ages ago or so- This'll get all the controls and structures associated with an App's window and menus- In a form which is easily pasteable into your own scripts- and show them in the result pane below.- Copy that into a text editor and change commas to returns to get an easily readable list.- The script can take a long time if there are LOTS of window items, such as- in the "music" pane of iTunes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |