|
|
10.7: Finding Control and Menu Items for use in AppleScript User Interface Scripting
is there really no way to get the result in a text file or array by applescript?
10.7: Finding Control and Menu Items for use in AppleScript User Interface Scripting
I asked about this script in Macscripter.net, and the experts there came up with two very useful ways of extending it to create a more manageable list of results:
10.7: Finding Control and Menu Items for use in AppleScript User Interface Scripting
As far as I can tell, the only way to get it is to write a GUI script that pulls the text out of the Applescript editor's results pane.
10.7: Finding Control and Menu Items for use in AppleScript User Interface Scripting
You could add code at the end to put winstuff into a text file or an array, not sure how this would be helpful since you are just going to copy it and paste it elsewhere. Just open a text file for writing, set it's contents to winstuff, save and close the file.
10.7: Finding Control and Menu Items for use in AppleScript User Interface Scripting
Nigel Garvey at MacScripter.net provided a script that generates text that can be be pasted into a text editor. In the script below, I added the tell block that pastes text into TextEdit:
10.7: Finding Control and Menu Items for use in AppleScript User Interface Scripting
And here's a version of Nigel Garvey's script that prompts you to select an application to analyze. I only added the trivial stuff. The intelligent part is by Nigel Garvey.
10.7: Finding Control and Menu Items for use in AppleScript User Interface Scripting
And there's now an even better version at or near the end of this thread: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|