OSX: add editable applescript to not have the script a blackbox
authorJens Verwiebe <info@jensverwiebe.de>
Sat, 15 Oct 2011 14:21:03 +0000 (14:21 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Sat, 15 Oct 2011 14:21:03 +0000 (14:21 +0000)
source/darwin/blender.app/Contents/Info.plist
source/darwin/set_simulation_threads.app/Contents/Resources/Scripts/main.scpt
source/darwin/set_simulation_threads_applescript.scpt [new file with mode: 0644]

index a25c629ce68bda7a2aa27fbb68f6a0d6559ce5c2..7fab4a98c4be6209fb81461be2399704e543942f 100644 (file)
@@ -2,29 +2,13 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
-       <key>CFBundleInfoDictionaryVersion</key>
-       <string>6.0</string>
-       <key>CFBundleExecutable</key>
-       <string>blender</string>
-       <key>CFBundlePackageType</key>
-       <string>APPL</string>
-       <key>CFBundleSignature</key>
-       <string>????</string>
-       <key>CFBundleIconFile</key>
-       <string>blender icon.icns</string>
-       <key>CFBundleName</key>
-       <string>Blender</string>
-       <key>CFBundleIdentifier</key>
-       <string>org.blenderfoundation.blender</string>
-       <key>CFBundleVersion</key>
-       <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}, Blender Foundation</string>
-       <key>CFBundleShortVersionString</key>
-       <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
-       <key>CFBundleGetInfoString</key>
-       <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}, Blender Foundation</string>
        <key>CFBundleDocumentTypes</key>
        <array>
                <dict>
+                       <key>CFBundleTypeExtensions</key>
+                       <array>
+                               <string>blend</string>
+                       </array>
                        <key>CFBundleTypeIconFile</key>
                        <string>blender file icon.icns</string>
                        <key>CFBundleTypeName</key>
                        <array>
                                <string>BLND</string>
                        </array>
-                       <key>CFBundleTypeExtensions</key>
-                       <array>
-                               <string>blend</string>
-                       </array>
                        <key>CFBundleTypeRole</key>
                        <string>Editor</string>
                        <key>LSIsAppleDefaultForType</key>
                        <true/>
                </dict>
        </array>
+       <key>CFBundleExecutable</key>
+       <string>blender</string>
+       <key>CFBundleGetInfoString</key>
+       <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}, Blender Foundation</string>
+       <key>CFBundleIconFile</key>
+       <string>blender icon.icns</string>
+       <key>CFBundleIdentifier</key>
+       <string>org.blenderfoundation.blender</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleName</key>
+       <string>Blender</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleShortVersionString</key>
+       <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}, Blender Foundation</string>
        <key>LSEnvironment</key>
        <dict>
                <key>OMP_NUM_THREADS</key>
index 44a107abf789e7ba08108321291370769939e78f..7a0e345348ce667e7560a3eaa9b0c277cc206a00 100644 (file)
Binary files a/source/darwin/set_simulation_threads.app/Contents/Resources/Scripts/main.scpt and b/source/darwin/set_simulation_threads.app/Contents/Resources/Scripts/main.scpt differ
diff --git a/source/darwin/set_simulation_threads_applescript.scpt b/source/darwin/set_simulation_threads_applescript.scpt
new file mode 100644 (file)
index 0000000..ba05af6
Binary files /dev/null and b/source/darwin/set_simulation_threads_applescript.scpt differ