VOOZH about

URL: https://theapplewiki.com/wiki/Dev:ApplicationScripting.framework

⇱ Dev:ApplicationScripting.framework - The Apple Wiki


ApplicationScripting.framework
Private Framework
Available3.0 – present
Class PrefixAS

ApplicationScripting is a simulator-only interface framework to allow users to use scripts (e.g. Javascript) to control the applications.

The ApplictionScripting framework can be located in the conventional location , or mounted to the folder which the device can supposedly use as well.

This framework is not used anywhere in the SDK. It should be used only for Apple's internal testing.

API

ApplicationScripting can support a self-hosted scripting server/client. The server only needs to call on start, and on exit.

The client can request script to be evaluated on the server by the , e.g.

// print the UI hierarchy.
NSLog(@"%@",ASSendScriptingEventWithClassAndArguments(@"ASUIHierarchy",[NSArrayarray],NO));

GSEvents

Scripts can also be run with the event. This event will be sent to the target application's -[UIApplication_processScriptEvent:] method, then call the function, and finally report the result to the ApplicationScripting server.