mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
4674c3e1c5
In order to interact with native osx applications, AppleScript support is a plus. Here is a patch that makes LyX respond to a simple command (run) and that allows to communicate with LyX as with the LyX client. Example of use: tell application "LyX" to run "server-get-filename" with argument ""' returns message:/Users/bpiwowar/newfile1.lyx, code:0 with a message and the error code
46 lines
1.2 KiB
XML
46 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleExecutable</key>
|
|
<string>lyx</string>
|
|
<key>CFBundleDocumentTypes</key>
|
|
<array>
|
|
<dict>
|
|
<key>CFBundleTypeExtensions</key>
|
|
<array>
|
|
<string>lyx</string>
|
|
</array>
|
|
<key>CFBundleTypeIconFile</key>
|
|
<string>LyX.icns</string>
|
|
<key>CFBundleTypeName</key>
|
|
<string>LyX Document</string>
|
|
<key>CFBundleTypeOSTypes</key>
|
|
<array>
|
|
<string>LYX </string>
|
|
</array>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>Editor</string>
|
|
</dict>
|
|
</array>
|
|
<key>CFBundleGetInfoString</key>
|
|
<string>LyX/Mac @VERSION@</string>
|
|
<key>CFBundleIconFile</key>
|
|
<string>LyXapp.icns</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>org.lyx.lyx</string>
|
|
<key>CFBundleName</key>
|
|
<string>LyX</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>APPL</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>@VERSION@</string>
|
|
<key>CFBundleSignature</key>
|
|
<string>OLYX</string>
|
|
<key>NSAppleScriptEnabled</key>
|
|
<string>YES</string>
|
|
<key>OSAScriptingDefinition</key>
|
|
<string>LyX.sdef</string>
|
|
</dict>
|
|
</plist>
|