Simple AS Script to ask for framework name and dump the headers to rtf format.
The script use dsdump and could be find at GitHub.
https://github.com/DerekSelander/dsdump
(**
* Simple AS Script to dump the headers of framework to rtf.
*
* The command: dsdump could be find at GitHub.
* https://github.com/DerekSelander/dsdump
*
* default: dsdump --arch=x86_64 --objc --verbose=5
*)
(**
* Set the path to framework and ask for Framework name.
*)
set thePath to POSIX path of (path to library folder from system domain)
set dialogText to (display dialog "" default answer "Foundation")'s text returned
set frameString to thePath & "Frameworks" & "/" & dialogText & ".framework" & "/" & dialogText
(**
* Set path, params of 'dsdump' from /usr/local/bin
* Default parameters: --arch=x86_64 --objc --verbose=5
*)
set command to "/usr/local/bin/dsdump --arch=x86_64 --objc --verbose=5"
(**
* Editor to use "TextEdit"
*)
set editor to "open -f -a \"TextEdit\""
-- Ps. Quoted form of the path to the command and params do not work.
do shell script "echo | " & command & space & quoted form of frameString & " | " & editor