# Running a script from within swift app (QLExtension)

**URL:** <https://forums.swift.org/t/running-a-script-from-within-swift-app-qlextension/70226>\
**Category:** Using Swift\
**Tags:** entitlement\
**Created:** [February 23, 2024, 1:22am UTC](https://forums.swift.org/t/running-a-script-from-within-swift-app-qlextension/70226 "2024-02-23T01:22:15Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![eskimo](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/eskimo/32/13558_2.png) [@eskimo](https://forums.swift.org/u/eskimo)\
**Post date:** [February 23, 2024, 9:35am UTC](https://forums.swift.org/t/running-a-script-from-within-swift-app-qlextension/70226/5 "2024-02-23T09:35:16Z")

</div>

This is very Apple specific, which makes it kinda off-topic for Swift Forums, where the focus is on the Swift language and related open source technologies. Please start a new thread over on [Apple Developer Forums](https://developer.apple.com/forums/). Tag it with (at least) _App Sandbox_ so that I see it.

However, just to set expectations: I don’t think you’ll be able to make this work. Quick Look extensions, in common with all app extensions, must be sandboxed. And that `EPERM` is a strong indication that the the Quick Look extension’s sandbox is preventing you from starting a child process.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

---

_[View the full topic](https://forums.swift.org/t/running-a-script-from-within-swift-app-qlextension/70226)._
