MCPcopy Create free account
hub / github.com/chasingboy/Xtools / app

Function app

applescript/tell.py:5–11  ·  view source on GitHub ↗

execute applescript `tell application "VLC" ...`

(appname, applescript, background=False)

Source from the content-addressed store, hash-verified

3from ._run import _run
4
5def app(appname, applescript, background=False):
6 """execute applescript `tell application "VLC" ...`"""
7 cmd = """tell app "%s"
8 %s
9end tell
10""" % (appname, applescript)
11 return _run(cmd,background)

Callers

nothing calls this directly

Calls 1

_runFunction · 0.90

Tested by

no test coverage detected