summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/ScriptExec
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /packaging/macosx/ScriptExec
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'packaging/macosx/ScriptExec')
-rw-r--r--packaging/macosx/ScriptExec/English.lproj/InfoPlist.stringsbin0 -> 520 bytes
-rw-r--r--packaging/macosx/ScriptExec/English.lproj/main.nib/classes.nib4
-rw-r--r--packaging/macosx/ScriptExec/English.lproj/main.nib/info.nib19
-rw-r--r--packaging/macosx/ScriptExec/English.lproj/main.nib/objects.xib271
-rw-r--r--packaging/macosx/ScriptExec/Info.plist39
-rw-r--r--packaging/macosx/ScriptExec/MenuBar.nib/classes.nib4
-rw-r--r--packaging/macosx/ScriptExec/MenuBar.nib/info.nib23
-rw-r--r--packaging/macosx/ScriptExec/MenuBar.nib/objects.xib73
-rw-r--r--packaging/macosx/ScriptExec/ScriptExec.xcode/project.pbxproj451
-rw-r--r--packaging/macosx/ScriptExec/ScriptExec.xcode/sveinbjornt.pbxuser378
-rw-r--r--packaging/macosx/ScriptExec/ScriptExec.xcode/voisine.pbxuser729
-rw-r--r--packaging/macosx/ScriptExec/ScriptExec_Prefix.pch5
-rw-r--r--packaging/macosx/ScriptExec/main.c624
-rwxr-xr-xpackaging/macosx/ScriptExec/openDoc4
-rwxr-xr-xpackaging/macosx/ScriptExec/script4
-rw-r--r--packaging/macosx/ScriptExec/version.plist16
16 files changed, 2644 insertions, 0 deletions
diff --git a/packaging/macosx/ScriptExec/English.lproj/InfoPlist.strings b/packaging/macosx/ScriptExec/English.lproj/InfoPlist.strings
new file mode 100644
index 000000000..0bb6ef503
--- /dev/null
+++ b/packaging/macosx/ScriptExec/English.lproj/InfoPlist.strings
Binary files differ
diff --git a/packaging/macosx/ScriptExec/English.lproj/main.nib/classes.nib b/packaging/macosx/ScriptExec/English.lproj/main.nib/classes.nib
new file mode 100644
index 000000000..ea58db118
--- /dev/null
+++ b/packaging/macosx/ScriptExec/English.lproj/main.nib/classes.nib
@@ -0,0 +1,4 @@
+{
+IBClasses = ();
+IBVersion = 1;
+}
diff --git a/packaging/macosx/ScriptExec/English.lproj/main.nib/info.nib b/packaging/macosx/ScriptExec/English.lproj/main.nib/info.nib
new file mode 100644
index 000000000..da8455c15
--- /dev/null
+++ b/packaging/macosx/ScriptExec/English.lproj/main.nib/info.nib
@@ -0,0 +1,19 @@
+<?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>IBFramework Version</key>
+ <string>345.0</string>
+ <key>IBOldestOS</key>
+ <integer>3</integer>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>29</integer>
+ <integer>166</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>7B44</string>
+ <key>targetFramework</key>
+ <string>IBCarbonFramework</string>
+</dict>
+</plist>
diff --git a/packaging/macosx/ScriptExec/English.lproj/main.nib/objects.xib b/packaging/macosx/ScriptExec/English.lproj/main.nib/objects.xib
new file mode 100644
index 000000000..92ff05616
--- /dev/null
+++ b/packaging/macosx/ScriptExec/English.lproj/main.nib/objects.xib
@@ -0,0 +1,271 @@
+<?xml version="1.0" standalone="yes"?>
+<object class="NSIBObjectData">
+ <string name="targetFramework">IBCarbonFramework</string>
+ <object name="rootObject" class="NSCustomObject" id="1">
+ <string name="customClass">NSApplication</string>
+ </object>
+ <array count="38" name="allObjects">
+ <object class="IBCarbonMenu" id="29">
+ <string name="title">main</string>
+ <array count="4" name="items">
+ <object class="IBCarbonMenuItem" id="185">
+ <string name="title">Foo</string>
+ <object name="submenu" class="IBCarbonMenu" id="184">
+ <string name="title">Foo</string>
+ <array count="1" name="items">
+ <object class="IBCarbonMenuItem" id="187">
+ <string name="title">About Foo</string>
+ <int name="keyEquivalentModifier">0</int>
+ <ostype name="command">abou</ostype>
+ </object>
+ </array>
+ <string name="name">_NSAppleMenu</string>
+ </object>
+ </object>
+ <object class="IBCarbonMenuItem" id="127">
+ <string name="title">File</string>
+ <object name="submenu" class="IBCarbonMenu" id="131">
+ <string name="title">File</string>
+ <array count="10" name="items">
+ <object class="IBCarbonMenuItem" id="139">
+ <string name="title">New</string>
+ <string name="keyEquivalent">n</string>
+ <ostype name="command">new </ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="134">
+ <string name="title">Open…</string>
+ <string name="keyEquivalent">o</string>
+ <ostype name="command">open</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="133">
+ <boolean name="separator">TRUE</boolean>
+ </object>
+ <object class="IBCarbonMenuItem" id="130">
+ <string name="title">Close</string>
+ <string name="keyEquivalent">w</string>
+ <ostype name="command">clos</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="138">
+ <string name="title">Save</string>
+ <string name="keyEquivalent">s</string>
+ <ostype name="command">save</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="137">
+ <string name="title">Save As…</string>
+ <string name="keyEquivalent">S</string>
+ <ostype name="command">svas</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="132">
+ <string name="title">Revert</string>
+ <string name="keyEquivalent">r</string>
+ <ostype name="command">rvrt</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="128">
+ <boolean name="separator">TRUE</boolean>
+ </object>
+ <object class="IBCarbonMenuItem" id="135">
+ <string name="title">Page Setup…</string>
+ <string name="keyEquivalent">P</string>
+ <ostype name="command">page</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="136">
+ <string name="title">Print…</string>
+ <string name="keyEquivalent">p</string>
+ <ostype name="command">prnt</ostype>
+ </object>
+ </array>
+ </object>
+ </object>
+ <object class="IBCarbonMenuItem" id="152">
+ <string name="title">Edit</string>
+ <object name="submenu" class="IBCarbonMenu" id="147">
+ <string name="title">Edit</string>
+ <array count="10" name="items">
+ <object class="IBCarbonMenuItem" id="141">
+ <string name="title">Undo</string>
+ <string name="keyEquivalent">z</string>
+ <ostype name="command">undo</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="146">
+ <string name="title">Redo</string>
+ <string name="keyEquivalent">Z</string>
+ <ostype name="command">redo</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="142">
+ <boolean name="separator">TRUE</boolean>
+ </object>
+ <object class="IBCarbonMenuItem" id="143">
+ <string name="title">Cut</string>
+ <string name="keyEquivalent">x</string>
+ <ostype name="command">cut </ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="149">
+ <string name="title">Copy</string>
+ <string name="keyEquivalent">c</string>
+ <ostype name="command">copy</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="144">
+ <string name="title">Paste</string>
+ <string name="keyEquivalent">v</string>
+ <ostype name="command">past</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="151">
+ <string name="title">Delete</string>
+ <ostype name="command">clea</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="148">
+ <string name="title">Select All</string>
+ <string name="keyEquivalent">a</string>
+ <ostype name="command">sall</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="199">
+ <boolean name="separator">TRUE</boolean>
+ </object>
+ <object class="IBCarbonMenuItem" id="198">
+ <string name="title">Special Characters…</string>
+ <ostype name="command">chrp</ostype>
+ </object>
+ </array>
+ </object>
+ </object>
+ <object class="IBCarbonMenuItem" id="192">
+ <string name="title">Window</string>
+ <object name="submenu" class="IBCarbonMenu" id="195">
+ <string name="title">Window</string>
+ <array count="6" name="items">
+ <object class="IBCarbonMenuItem" id="197">
+ <string name="title">Zoom Window</string>
+ <ostype name="command">zoom</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="190">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Minimize Window</string>
+ <string name="keyEquivalent">m</string>
+ <ostype name="command">mini</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="191">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Minimize All Windows</string>
+ <string name="keyEquivalent">m</string>
+ <int name="keyEquivalentModifier">1572864</int>
+ <ostype name="command">mina</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="194">
+ <boolean name="separator">TRUE</boolean>
+ </object>
+ <object class="IBCarbonMenuItem" id="196">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Bring All to Front</string>
+ <ostype name="command">bfrt</ostype>
+ </object>
+ <object class="IBCarbonMenuItem" id="193">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Arrange in Front</string>
+ <int name="keyEquivalentModifier">1572864</int>
+ <ostype name="command">frnt</ostype>
+ </object>
+ </array>
+ <string name="name">_NSWindowsMenu</string>
+ </object>
+ </object>
+ </array>
+ <string name="name">_NSMainMenu</string>
+ </object>
+ <reference idRef="127"/>
+ <reference idRef="128"/>
+ <reference idRef="130"/>
+ <reference idRef="131"/>
+ <reference idRef="132"/>
+ <reference idRef="133"/>
+ <reference idRef="134"/>
+ <reference idRef="135"/>
+ <reference idRef="136"/>
+ <reference idRef="137"/>
+ <reference idRef="138"/>
+ <reference idRef="139"/>
+ <reference idRef="141"/>
+ <reference idRef="142"/>
+ <reference idRef="143"/>
+ <reference idRef="144"/>
+ <reference idRef="146"/>
+ <reference idRef="147"/>
+ <reference idRef="148"/>
+ <reference idRef="149"/>
+ <reference idRef="151"/>
+ <reference idRef="152"/>
+ <object class="IBCarbonWindow" id="166">
+ <string name="windowRect">204 300 564 780 </string>
+ <string name="title">Window</string>
+ <object name="rootControl" class="IBCarbonRootControl" id="167">
+ <string name="bounds">0 0 360 480 </string>
+ <string name="viewFrame">0 0 480 360 </string>
+ </object>
+ <boolean name="receiveUpdates">FALSE</boolean>
+ <boolean name="liveResize">TRUE</boolean>
+ <boolean name="compositing">TRUE</boolean>
+ </object>
+ <reference idRef="167"/>
+ <reference idRef="184"/>
+ <reference idRef="185"/>
+ <reference idRef="187"/>
+ <reference idRef="190"/>
+ <reference idRef="191"/>
+ <reference idRef="192"/>
+ <reference idRef="193"/>
+ <reference idRef="194"/>
+ <reference idRef="195"/>
+ <reference idRef="196"/>
+ <reference idRef="197"/>
+ <reference idRef="198"/>
+ <reference idRef="199"/>
+ </array>
+ <array count="38" name="allParents">
+ <reference idRef="1"/>
+ <reference idRef="29"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="127"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="131"/>
+ <reference idRef="147"/>
+ <reference idRef="147"/>
+ <reference idRef="147"/>
+ <reference idRef="147"/>
+ <reference idRef="147"/>
+ <reference idRef="152"/>
+ <reference idRef="147"/>
+ <reference idRef="147"/>
+ <reference idRef="147"/>
+ <reference idRef="29"/>
+ <reference idRef="1"/>
+ <reference idRef="166"/>
+ <reference idRef="185"/>
+ <reference idRef="29"/>
+ <reference idRef="184"/>
+ <reference idRef="195"/>
+ <reference idRef="195"/>
+ <reference idRef="29"/>
+ <reference idRef="195"/>
+ <reference idRef="195"/>
+ <reference idRef="192"/>
+ <reference idRef="195"/>
+ <reference idRef="195"/>
+ <reference idRef="147"/>
+ <reference idRef="147"/>
+ </array>
+ <dictionary count="3" name="nameTable">
+ <string>Files Owner</string>
+ <reference idRef="1"/>
+ <string>MainWindow</string>
+ <reference idRef="166"/>
+ <string>MenuBar</string>
+ <reference idRef="29"/>
+ </dictionary>
+ <unsigned_int name="nextObjectID">200</unsigned_int>
+</object>
diff --git a/packaging/macosx/ScriptExec/Info.plist b/packaging/macosx/ScriptExec/Info.plist
new file mode 100644
index 000000000..9cac37f85
--- /dev/null
+++ b/packaging/macosx/ScriptExec/Info.plist
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>*</string>
+ </array>
+ <key>CFBundleTypeName</key>
+ <string>All</string>
+ <key>CFBundleTypeOSTypes</key>
+ <array>
+ <string>****</string>
+ </array>
+ <key>CFBundleTypeRole</key>
+ <string>Viewer</string>
+ </dict>
+ </array>
+ <key>CFBundleExecutable</key>
+ <string>ScriptExec</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.apple.myCarbonNibApp</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.1</string>
+</dict>
+</plist>
diff --git a/packaging/macosx/ScriptExec/MenuBar.nib/classes.nib b/packaging/macosx/ScriptExec/MenuBar.nib/classes.nib
new file mode 100644
index 000000000..ea58db118
--- /dev/null
+++ b/packaging/macosx/ScriptExec/MenuBar.nib/classes.nib
@@ -0,0 +1,4 @@
+{
+IBClasses = ();
+IBVersion = 1;
+}
diff --git a/packaging/macosx/ScriptExec/MenuBar.nib/info.nib b/packaging/macosx/ScriptExec/MenuBar.nib/info.nib
new file mode 100644
index 000000000..c0f4643ef
--- /dev/null
+++ b/packaging/macosx/ScriptExec/MenuBar.nib/info.nib
@@ -0,0 +1,23 @@
+<?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>IBDocumentLocation</key>
+ <string>99 362 356 240 0 0 1280 832 </string>
+ <key>IBEditorPositions</key>
+ <dict>
+ <key>187</key>
+ <string>340 374 240 44 0 0 1280 832 </string>
+ </dict>
+ <key>IBFramework Version</key>
+ <string>349.0</string>
+ <key>IBOpenObjects</key>
+ <array>
+ <integer>187</integer>
+ </array>
+ <key>IBSystem Version</key>
+ <string>7F44</string>
+ <key>targetFramework</key>
+ <string>IBCarbonFramework</string>
+</dict>
+</plist>
diff --git a/packaging/macosx/ScriptExec/MenuBar.nib/objects.xib b/packaging/macosx/ScriptExec/MenuBar.nib/objects.xib
new file mode 100644
index 000000000..78f0a0a01
--- /dev/null
+++ b/packaging/macosx/ScriptExec/MenuBar.nib/objects.xib
@@ -0,0 +1,73 @@
+<?xml version="1.0" standalone="yes"?>
+<object class="NSIBObjectData">
+ <string name="targetFramework">IBCarbonFramework</string>
+ <object name="rootObject" class="NSCustomObject" id="1">
+ <string name="customClass">NSApplication</string>
+ </object>
+ <array count="4" name="allObjects">
+ <object class="IBCarbonMenu" id="187">
+ <string name="title">MenuBar</string>
+ <array count="1" name="items">
+ <object class="IBCarbonMenuItem" id="195">
+ <string name="title">ScriptExec</string>
+ <object name="submenu" class="IBCarbonMenu" id="193">
+ <string name="title">ScriptExec</string>
+ <string name="name">_NSAppleMenu</string>
+ </object>
+ </object>
+ </array>
+ <string name="name">_NSMainMenu</string>
+ </object>
+ <reference idRef="193"/>
+ <reference idRef="195"/>
+ <object class="IBCarbonMenuItem" id="204">
+ <string name="title">Window</string>
+ <object name="submenu" class="IBCarbonMenu">
+ <string name="title">Window</string>
+ <array count="5" name="items">
+ <object class="IBCarbonMenuItem">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Minimize Window</string>
+ <string name="keyEquivalent">m</string>
+ <ostype name="command">mini</ostype>
+ </object>
+ <object class="IBCarbonMenuItem">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Minimize All Windows</string>
+ <string name="keyEquivalent">m</string>
+ <int name="keyEquivalentModifier">1572864</int>
+ <ostype name="command">mini</ostype>
+ </object>
+ <object class="IBCarbonMenuItem">
+ <boolean name="separator">TRUE</boolean>
+ </object>
+ <object class="IBCarbonMenuItem">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Bring All to Front</string>
+ <ostype name="command">frnt</ostype>
+ </object>
+ <object class="IBCarbonMenuItem">
+ <boolean name="dynamic">TRUE</boolean>
+ <string name="title">Bring in Front</string>
+ <int name="keyEquivalentModifier">1572864</int>
+ <ostype name="command">frnt</ostype>
+ </object>
+ </array>
+ <string name="name">_NSWindowsMenu</string>
+ </object>
+ </object>
+ </array>
+ <array count="4" name="allParents">
+ <reference idRef="1"/>
+ <reference idRef="195"/>
+ <reference idRef="187"/>
+ <reference idRef="187"/>
+ </array>
+ <dictionary count="2" name="nameTable">
+ <string>File&apos;s Owner</string>
+ <reference idRef="1"/>
+ <string>MenuBar</string>
+ <reference idRef="187"/>
+ </dictionary>
+ <unsigned_int name="nextObjectID">206</unsigned_int>
+</object>
diff --git a/packaging/macosx/ScriptExec/ScriptExec.xcode/project.pbxproj b/packaging/macosx/ScriptExec/ScriptExec.xcode/project.pbxproj
new file mode 100644
index 000000000..bc081d5ef
--- /dev/null
+++ b/packaging/macosx/ScriptExec/ScriptExec.xcode/project.pbxproj
@@ -0,0 +1,451 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 39;
+ objects = {
+ 0249A66BFF388E3F11CA2CEA = {
+ isa = PBXFileReference;
+ lastKnownFileType = archive.ar;
+ name = "libstdc++.a";
+ path = "/usr/lib/libstdc++.a";
+ refType = 0;
+ sourceTree = "<absolute>";
+ };
+//020
+//021
+//022
+//023
+//024
+//080
+//081
+//082
+//083
+//084
+ 0867D6AAFE840B52C02AAC07 = {
+ children = (
+ 0867D6ABFE840B52C02AAC07,
+ );
+ isa = PBXVariantGroup;
+ name = InfoPlist.strings;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 0867D6ABFE840B52C02AAC07 = {
+ fileEncoding = 10;
+ isa = PBXFileReference;
+ lastKnownFileType = text.plist.strings;
+ name = English;
+ path = English.lproj/InfoPlist.strings;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+//080
+//081
+//082
+//083
+//084
+//190
+//191
+//192
+//193
+//194
+ 195DF8CFFE9D517E11CA2CBB = {
+ children = (
+ 8D0C4E970486CD37000505A6,
+ );
+ isa = PBXGroup;
+ name = Products;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+//190
+//191
+//192
+//193
+//194
+//200
+//201
+//202
+//203
+//204
+ 20286C28FDCF999611CA2CEA = {
+ buildSettings = {
+ };
+ buildStyles = (
+ 4A9504C5FFE6A39111CA0CBA,
+ 4A9504C6FFE6A39111CA0CBA,
+ );
+ hasScannedForEncodings = 1;
+ isa = PBXProject;
+ mainGroup = 20286C29FDCF999611CA2CEA;
+ projectDirPath = "";
+ targets = (
+ 8D0C4E890486CD37000505A6,
+ );
+ };
+ 20286C29FDCF999611CA2CEA = {
+ children = (
+ 20286C2AFDCF999611CA2CEA,
+ 20286C2CFDCF999611CA2CEA,
+ 20286C32FDCF999611CA2CEA,
+ 195DF8CFFE9D517E11CA2CBB,
+ );
+ isa = PBXGroup;
+ name = ScriptExec;
+ path = "";
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 20286C2AFDCF999611CA2CEA = {
+ children = (
+ 32DBCF6D0370B57F00C91783,
+ 20286C2BFDCF999611CA2CEA,
+ );
+ isa = PBXGroup;
+ name = Sources;
+ path = "";
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 20286C2BFDCF999611CA2CEA = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.c;
+ path = main.c;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 20286C2CFDCF999611CA2CEA = {
+ children = (
+ 664C29F0060ECDC4006EC560,
+ B8DCE042056DAC3500C390B0,
+ 8D0C4E960486CD37000505A6,
+ B8DCE048056DAC5000C390B0,
+ 0867D6AAFE840B52C02AAC07,
+ );
+ isa = PBXGroup;
+ name = Resources;
+ path = "";
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 20286C32FDCF999611CA2CEA = {
+ children = (
+ 20286C33FDCF999611CA2CEA,
+ 4A9504CAFFE6A41611CA0CBA,
+ 4A9504C8FFE6A3BC11CA0CBA,
+ 0249A66BFF388E3F11CA2CEA,
+ B8DCE04E056DACAE00C390B0,
+ );
+ isa = PBXGroup;
+ name = "External Frameworks and Libraries";
+ path = "";
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 20286C33FDCF999611CA2CEA = {
+ fallbackIsa = PBXFileReference;
+ isa = PBXFrameworkReference;
+ lastKnownFileType = wrapper.framework;
+ name = Carbon.framework;
+ path = /System/Library/Frameworks/Carbon.framework;
+ refType = 0;
+ sourceTree = "<absolute>";
+ };
+//200
+//201
+//202
+//203
+//204
+//320
+//321
+//322
+//323
+//324
+ 32DBCF6D0370B57F00C91783 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = ScriptExec_Prefix.pch;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+//320
+//321
+//322
+//323
+//324
+//4A0
+//4A1
+//4A2
+//4A3
+//4A4
+ 4A9504C5FFE6A39111CA0CBA = {
+ buildRules = (
+ );
+ buildSettings = {
+ COPY_PHASE_STRIP = NO;
+ DEBUGGING_SYMBOLS = YES;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ OPTIMIZATION_CFLAGS = "-O0";
+ ZERO_LINK = YES;
+ };
+ isa = PBXBuildStyle;
+ name = Development;
+ };
+ 4A9504C6FFE6A39111CA0CBA = {
+ buildRules = (
+ );
+ buildSettings = {
+ COPY_PHASE_STRIP = YES;
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_OPTIMIZATION_LEVEL = s;
+ ZERO_LINK = NO;
+ };
+ isa = PBXBuildStyle;
+ name = Deployment;
+ };
+ 4A9504C8FFE6A3BC11CA0CBA = {
+ fallbackIsa = PBXFileReference;
+ isa = PBXFrameworkReference;
+ lastKnownFileType = wrapper.framework;
+ name = ApplicationServices.framework;
+ path = /System/Library/Frameworks/ApplicationServices.framework;
+ refType = 0;
+ sourceTree = "<absolute>";
+ };
+ 4A9504CAFFE6A41611CA0CBA = {
+ fallbackIsa = PBXFileReference;
+ isa = PBXFrameworkReference;
+ lastKnownFileType = wrapper.framework;
+ name = CoreServices.framework;
+ path = /System/Library/Frameworks/CoreServices.framework;
+ refType = 0;
+ sourceTree = "<absolute>";
+ };
+//4A0
+//4A1
+//4A2
+//4A3
+//4A4
+//660
+//661
+//662
+//663
+//664
+ 664C29F0060ECDC4006EC560 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = text.script.sh;
+ path = openDoc;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 664C29F1060ECDC4006EC560 = {
+ fileRef = 664C29F0060ECDC4006EC560;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+//660
+//661
+//662
+//663
+//664
+//8D0
+//8D1
+//8D2
+//8D3
+//8D4
+ 8D0C4E890486CD37000505A6 = {
+ buildPhases = (
+ 8D0C4E8A0486CD37000505A6,
+ 8D0C4E8C0486CD37000505A6,
+ 8D0C4E8F0486CD37000505A6,
+ 8D0C4E910486CD37000505A6,
+ 8D0C4E940486CD37000505A6,
+ );
+ buildRules = (
+ );
+ buildSettings = {
+ FRAMEWORK_SEARCH_PATHS = "";
+ GCC_ENABLE_TRIGRAPHS = NO;
+ GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = ScriptExec_Prefix.pch;
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
+ GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO;
+ GCC_WARN_UNKNOWN_PRAGMAS = NO;
+ HEADER_SEARCH_PATHS = "";
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ LIBRARY_SEARCH_PATHS = "";
+ LIBRARY_STYLE = Static;
+ OTHER_CFLAGS = "";
+ OTHER_LDFLAGS = "";
+ OTHER_REZFLAGS = "";
+ PRODUCT_NAME = ScriptExec;
+ SECTORDER_FLAGS = "";
+ WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
+ WRAPPER_EXTENSION = app;
+ };
+ dependencies = (
+ );
+ isa = PBXNativeTarget;
+ name = ScriptExec;
+ productInstallPath = "$(HOME)/Applications";
+ productName = ScriptExec;
+ productReference = 8D0C4E970486CD37000505A6;
+ productType = "com.apple.product-type.application";
+ };
+ 8D0C4E8A0486CD37000505A6 = {
+ buildActionMask = 2147483647;
+ files = (
+ 8D0C4E8B0486CD37000505A6,
+ );
+ isa = PBXHeadersBuildPhase;
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8D0C4E8B0486CD37000505A6 = {
+ fileRef = 32DBCF6D0370B57F00C91783;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 8D0C4E8C0486CD37000505A6 = {
+ buildActionMask = 2147483647;
+ files = (
+ 8D0C4E8D0486CD37000505A6,
+ B8DCE045056DAC3500C390B0,
+ B8DCE049056DAC5000C390B0,
+ 664C29F1060ECDC4006EC560,
+ );
+ isa = PBXResourcesBuildPhase;
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8D0C4E8D0486CD37000505A6 = {
+ fileRef = 0867D6AAFE840B52C02AAC07;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 8D0C4E8F0486CD37000505A6 = {
+ buildActionMask = 2147483647;
+ files = (
+ 8D0C4E900486CD37000505A6,
+ );
+ isa = PBXSourcesBuildPhase;
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8D0C4E900486CD37000505A6 = {
+ fileRef = 20286C2BFDCF999611CA2CEA;
+ isa = PBXBuildFile;
+ settings = {
+ ATTRIBUTES = (
+ );
+ };
+ };
+ 8D0C4E910486CD37000505A6 = {
+ buildActionMask = 2147483647;
+ files = (
+ 8D0C4E920486CD37000505A6,
+ 8D0C4E930486CD37000505A6,
+ B8DCE04F056DACAE00C390B0,
+ );
+ isa = PBXFrameworksBuildPhase;
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8D0C4E920486CD37000505A6 = {
+ fileRef = 20286C33FDCF999611CA2CEA;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 8D0C4E930486CD37000505A6 = {
+ fileRef = 0249A66BFF388E3F11CA2CEA;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 8D0C4E940486CD37000505A6 = {
+ buildActionMask = 2147483647;
+ files = (
+ );
+ isa = PBXRezBuildPhase;
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 8D0C4E960486CD37000505A6 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = text.plist;
+ path = Info.plist;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 8D0C4E970486CD37000505A6 = {
+ explicitFileType = wrapper.application;
+ includeInIndex = 0;
+ isa = PBXFileReference;
+ path = ScriptExec.app;
+ refType = 3;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
+//8D0
+//8D1
+//8D2
+//8D3
+//8D4
+//B80
+//B81
+//B82
+//B83
+//B84
+ B8DCE042056DAC3500C390B0 = {
+ isa = PBXFileReference;
+ lastKnownFileType = wrapper.nib;
+ path = MenuBar.nib;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ B8DCE045056DAC3500C390B0 = {
+ fileRef = B8DCE042056DAC3500C390B0;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ B8DCE048056DAC5000C390B0 = {
+ fileEncoding = 30;
+ isa = PBXFileReference;
+ lastKnownFileType = text.script.sh;
+ path = script;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ B8DCE049056DAC5000C390B0 = {
+ fileRef = B8DCE048056DAC5000C390B0;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ B8DCE04E056DACAE00C390B0 = {
+ isa = PBXFileReference;
+ lastKnownFileType = wrapper.framework;
+ name = Security.framework;
+ path = /System/Library/Frameworks/Security.framework;
+ refType = 0;
+ sourceTree = "<absolute>";
+ };
+ B8DCE04F056DACAE00C390B0 = {
+ fileRef = B8DCE04E056DACAE00C390B0;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ };
+ rootObject = 20286C28FDCF999611CA2CEA;
+}
diff --git a/packaging/macosx/ScriptExec/ScriptExec.xcode/sveinbjornt.pbxuser b/packaging/macosx/ScriptExec/ScriptExec.xcode/sveinbjornt.pbxuser
new file mode 100644
index 000000000..96c879ab2
--- /dev/null
+++ b/packaging/macosx/ScriptExec/ScriptExec.xcode/sveinbjornt.pbxuser
@@ -0,0 +1,378 @@
+// !$*UTF8*$!
+{
+ 20286C28FDCF999611CA2CEA = {
+ activeBuildStyle = 4A9504C6FFE6A39111CA0CBA;
+ activeExecutable = B8DCE00B056DABA400C390B0;
+ activeTarget = 8D0C4E890486CD37000505A6;
+ addToTargets = (
+ 8D0C4E890486CD37000505A6,
+ );
+ breakpoints = (
+ );
+ codeSenseManager = B8DCE01A056DABA800C390B0;
+ executables = (
+ B8DCE00B056DABA400C390B0,
+ );
+ perUserDictionary = {
+ PBXConfiguration.PBXFileTableDataSource3.PBXErrorsWarningsDataSource = {
+ PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
+ PBXFileTableDataSourceColumnSortingKey = PBXErrorsWarningsDataSource_LocationID;
+ PBXFileTableDataSourceColumnWidthsKey = (
+ 20,
+ 480.8799,
+ 262.2085,
+ );
+ PBXFileTableDataSourceColumnsKey = (
+ PBXErrorsWarningsDataSource_TypeID,
+ PBXErrorsWarningsDataSource_MessageID,
+ PBXErrorsWarningsDataSource_LocationID,
+ );
+ };
+ PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
+ PBXFileTableDataSourceColumnSortingDirectionKey = 1;
+ PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
+ PBXFileTableDataSourceColumnWidthsKey = (
+ 20,
+ 508,
+ 20,
+ 93,
+ 43,
+ 43,
+ 20,
+ );
+ PBXFileTableDataSourceColumnsKey = (
+ PBXFileDataSource_FiletypeID,
+ PBXFileDataSource_Filename_ColumnID,
+ PBXFileDataSource_Built_ColumnID,
+ PBXFileDataSource_ObjectSize_ColumnID,
+ PBXFileDataSource_Errors_ColumnID,
+ PBXFileDataSource_Warnings_ColumnID,
+ PBXFileDataSource_Target_ColumnID,
+ );
+ };
+ PBXPerProjectTemplateStateSaveDate = 91075958;
+ PBXWorkspaceContents = (
+ {
+ PBXProjectWorkspaceModule_StateKey_Rev36 = {
+ PBXProjectWorkspaceModule_EditorOpen = true;
+ PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = {
+ Split0 = {
+ bookmark = B84D5462056DB5C5005CEF4C;
+ history = (
+ B8DCE149056DAE0000C390B0,
+ B84D545F056DB5C5005CEF4C,
+ B84D5460056DB5C5005CEF4C,
+ );
+ prevStack = (
+ B8DCE14B056DAE0000C390B0,
+ B8DCE14C056DAE0000C390B0,
+ B84D5461056DB5C5005CEF4C,
+ );
+ };
+ SplitCount = 1;
+ };
+ PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {790, 196}}";
+ PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 196}, {790, 741}}";
+ PBXProjectWorkspaceModule_OldSuperviewFrame = "{{208, 0}, {790, 937}}";
+ PBXProjectWorkspaceModule_SGTM = {
+ PBXBottomSmartGroupGIDs = (
+ 1C37FBAC04509CD000000102,
+ 1C37FAAC04509CD000000102,
+ 1C08E77C0454961000C914BD,
+ 1CC0EA4004350EF90044410B,
+ 1CC0EA4004350EF90041110B,
+ 1C37FABC05509CD000000102,
+ 1C37FABC05539CD112110102,
+ 1C37FABC04509CD000100104,
+ );
+ PBXTopSmartGroupGIDs = (
+ );
+ };
+ };
+ },
+ );
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXBuildResultsModule" = {
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugBreakpointsModule" = {
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugCLIModule" = {
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugSessionModule" = {
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXNavigatorGroup" = {
+ Split0 = {
+ bookmark = B8DCE15E056DB05A00C390B0;
+ history = (
+ B8DCE15D056DB05A00C390B0,
+ );
+ };
+ SplitCount = 1;
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = {
+ PBXProjectWorkspaceModule_StateKey_Rev36 = {
+ PBXProjectWorkspaceModule_EditorOpen = true;
+ PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = {
+ Split0 = {
+ bookmark = B8DCE154056DAE0200C390B0;
+ history = (
+ B8DCE149056DAE0000C390B0,
+ B8DCE14A056DAE0000C390B0,
+ );
+ prevStack = (
+ B8DCE14B056DAE0000C390B0,
+ B8DCE14C056DAE0000C390B0,
+ );
+ };
+ SplitCount = 1;
+ };
+ PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {790, 196}}";
+ PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 196}, {790, 741}}";
+ PBXProjectWorkspaceModule_OldSuperviewFrame = "{{208, 0}, {790, 937}}";
+ PBXProjectWorkspaceModule_SGTM = {
+ PBXBottomSmartGroupGIDs = (
+ 1C37FBAC04509CD000000102,
+ 1C37FAAC04509CD000000102,
+ 1C08E77C0454961000C914BD,
+ 1CC0EA4004350EF90044410B,
+ 1CC0EA4004350EF90041110B,
+ 1C37FABC05509CD000000102,
+ 1C37FABC05539CD112110102,
+ 1C37FABC04509CD000100104,
+ );
+ PBXTopSmartGroupGIDs = (
+ );
+ };
+ };
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXRunSessionModule" = {
+ };
+ PBXWorkspaceGeometries = (
+ {
+ Frame = "{{0, 0}, {998, 957}}";
+ PBXProjectWorkspaceModule_GeometryKey_Rev11 = {
+ PBXProjectWorkspaceModule_SGTM_Geometry = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ sizes = (
+ "{{0, 0}, {208, 937}}",
+ "{{208, 0}, {790, 937}}",
+ );
+ };
+ };
+ WindowFrame = "{{222, 112}, {998, 1019}}";
+ },
+ );
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXBuildResultsModule" = {
+ Frame = "{{0, 0}, {480, 216}}";
+ WindowFrame = "{{591, 638}, {480, 294}}";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugBreakpointsModule" = {
+ BreakpointsTreeTableConfiguration = (
+ enabledColumn,
+ 16,
+ breakpointColumn,
+ 282.583,
+ );
+ Frame = "{{0, 0}, {208, 494}}";
+ WindowFrame = "{{581, 524}, {208, 516}}";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugCLIModule" = {
+ Frame = "{{0, 0}, {400, 200}}";
+ WindowFrame = "{{114, 1150}, {400, 222}}";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugSessionModule" = {
+ DebugConsoleDrawerSize = "{100, 120}";
+ DebugConsoleVisible = None;
+ DebugConsoleWindowFrame = "{{200, 200}, {500, 300}}";
+ DebugSTDIOWindowFrame = "{{200, 200}, {500, 300}}";
+ Frame = "{{0, 0}, {745, 442}}";
+ WindowFrame = "{{459, 525}, {745, 520}}";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXNavigatorGroup" = {
+ Frame = "{{0, 0}, {978, 830}}";
+ WindowFrame = "{{544, 160}, {978, 908}}";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = {
+ Frame = "{{0, 0}, {998, 957}}";
+ PBXProjectWorkspaceModule_GeometryKey_Rev11 = {
+ PBXProjectWorkspaceModule_SGTM_Geometry = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ sizes = (
+ "{{0, 0}, {208, 937}}",
+ "{{208, 0}, {790, 937}}",
+ );
+ };
+ };
+ WindowFrame = "{{222, 112}, {998, 1019}}";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = {
+ Frame = "{{0, 0}, {745, 442}}";
+ WindowFrame = "{{518, 40}, {745, 464}}";
+ };
+ PBXWorkspaceStateSaveDate = 91075958;
+ };
+ perUserProjectItems = {
+ B84D545F056DB5C5005CEF4C = B84D545F056DB5C5005CEF4C;
+ B84D5460056DB5C5005CEF4C = B84D5460056DB5C5005CEF4C;
+ B84D5461056DB5C5005CEF4C = B84D5461056DB5C5005CEF4C;
+ B84D5462056DB5C5005CEF4C = B84D5462056DB5C5005CEF4C;
+ B8DCE149056DAE0000C390B0 = B8DCE149056DAE0000C390B0;
+ B8DCE14B056DAE0000C390B0 = B8DCE14B056DAE0000C390B0;
+ B8DCE14C056DAE0000C390B0 = B8DCE14C056DAE0000C390B0;
+ };
+ sourceControlManager = B8DCE019056DABA800C390B0;
+ userBuildSettings = {
+ };
+ };
+ 20286C2BFDCF999611CA2CEA = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {908, 15665}}";
+ sepNavSelRange = "{25288, 0}";
+ sepNavVisRect = "{{0, 12586}, {751, 709}}";
+ sepNavWindowFrame = "{{544, 160}, {978, 908}}";
+ };
+ };
+ 32DBCF6D0370B57F00C91783 = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {623, 567}}";
+ sepNavSelRange = "{0, 0}";
+ sepNavVisRect = "{{0, 0}, {623, 567}}";
+ };
+ };
+ 8D0C4E890486CD37000505A6 = {
+ activeExec = 0;
+ executables = (
+ B8DCE00B056DABA400C390B0,
+ );
+ };
+ 8D0C4E960486CD37000505A6 = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {711, 428}}";
+ sepNavSelRange = "{294, 0}";
+ sepNavVisRect = "{{0, 0}, {711, 428}}";
+ sepNavWindowFrame = "{{217, 489}, {750, 558}}";
+ };
+ };
+ B84D545F056DB5C5005CEF4C = {
+ fRef = 20286C2BFDCF999611CA2CEA;
+ isa = PBXTextBookmark;
+ name = "main.c: 918";
+ rLen = 0;
+ rLoc = 25288;
+ rType = 0;
+ vrLen = 1061;
+ vrLoc = 24915;
+ };
+ B84D5460056DB5C5005CEF4C = {
+ fRef = B8DCE036056DABFF00C390B0;
+ isa = PBXBookmark;
+ };
+ B84D5461056DB5C5005CEF4C = {
+ fRef = 20286C2BFDCF999611CA2CEA;
+ isa = PBXTextBookmark;
+ name = "main.c: 918";
+ rLen = 0;
+ rLoc = 25288;
+ rType = 0;
+ vrLen = 1061;
+ vrLoc = 24915;
+ };
+ B84D5462056DB5C5005CEF4C = {
+ fRef = B8DCE036056DABFF00C390B0;
+ isa = PBXTextBookmark;
+ name = "outputType: 1";
+ rLen = 0;
+ rLoc = 11;
+ rType = 0;
+ vrLen = 11;
+ vrLoc = 0;
+ };
+ B8DCE00B056DABA400C390B0 = {
+ activeArgIndex = 2147483647;
+ activeArgIndices = (
+ );
+ argumentStrings = (
+ );
+ configStateDict = {
+ };
+ debuggerPlugin = GDBDebugging;
+ dylibVariantSuffix = "";
+ enableDebugStr = 1;
+ environmentEntries = (
+ );
+ isa = PBXExecutable;
+ name = ScriptExec;
+ shlibInfoDictList = (
+ );
+ sourceDirectories = (
+ );
+ };
+ B8DCE019056DABA800C390B0 = {
+ isa = PBXSourceControlManager;
+ scmConfiguration = {
+ };
+ scmType = scm.cvs;
+ };
+ B8DCE01A056DABA800C390B0 = {
+ indexTemplatePath = "";
+ isa = PBXCodeSenseManager;
+ usesDefaults = 1;
+ wantsCodeCompletion = 0;
+ wantsCodeCompletionAutoPopup = 0;
+ wantsCodeCompletionAutoSuggestions = 0;
+ wantsCodeCompletionCaseSensitivity = 1;
+ wantsCodeCompletionOnlyMatchingItems = 1;
+ wantsCodeCompletionParametersIncluded = 1;
+ wantsCodeCompletionPlaceholdersInserted = 1;
+ wantsCodeCompletionTabCompletes = 1;
+ wantsIndex = 0;
+ };
+ B8DCE034056DABFF00C390B0 = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {751, 215}}";
+ sepNavSelRange = "{6, 0}";
+ sepNavVisRect = "{{0, 0}, {751, 215}}";
+ sepNavWindowFrame = "{{240, 468}, {750, 558}}";
+ };
+ };
+ B8DCE036056DABFF00C390B0 = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {751, 709}}";
+ sepNavSelRange = "{11, 0}";
+ sepNavVisRect = "{{0, 0}, {751, 709}}";
+ };
+ };
+ B8DCE149056DAE0000C390B0 = {
+ fRef = 32DBCF6D0370B57F00C91783;
+ isa = PBXTextBookmark;
+ name = "ScriptExec_Prefix.pch: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 128;
+ vrLoc = 0;
+ };
+ B8DCE14B056DAE0000C390B0 = {
+ fRef = 20286C2BFDCF999611CA2CEA;
+ isa = PBXTextBookmark;
+ name = "main.c: 124";
+ rLen = 0;
+ rLoc = 3733;
+ rType = 0;
+ vrLen = 1332;
+ vrLoc = 2912;
+ };
+ B8DCE14C056DAE0000C390B0 = {
+ fRef = 32DBCF6D0370B57F00C91783;
+ isa = PBXTextBookmark;
+ name = "ScriptExec_Prefix.pch: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 128;
+ vrLoc = 0;
+ };
+}
diff --git a/packaging/macosx/ScriptExec/ScriptExec.xcode/voisine.pbxuser b/packaging/macosx/ScriptExec/ScriptExec.xcode/voisine.pbxuser
new file mode 100644
index 000000000..278eceb21
--- /dev/null
+++ b/packaging/macosx/ScriptExec/ScriptExec.xcode/voisine.pbxuser
@@ -0,0 +1,729 @@
+// !$*UTF8*$!
+{
+ 0867D6ABFE840B52C02AAC07 = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {608, 595}}";
+ sepNavSelRange = "{0, 0}";
+ sepNavVisRect = "{{0, 0}, {573, 595}}";
+ };
+ };
+ 20286C28FDCF999611CA2CEA = {
+ activeBuildStyle = 4A9504C6FFE6A39111CA0CBA;
+ activeExecutable = 664C29D8060E765D006EC560;
+ activeTarget = 8D0C4E890486CD37000505A6;
+ addToTargets = (
+ 8D0C4E890486CD37000505A6,
+ );
+ codeSenseManager = 664C29E7060E7681006EC560;
+ executables = (
+ 664C29D8060E765D006EC560,
+ );
+ perUserDictionary = {
+ PBXConfiguration.PBXFileTableDataSource3.PBXErrorsWarningsDataSource = {
+ PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
+ PBXFileTableDataSourceColumnSortingKey = PBXErrorsWarningsDataSource_LocationID;
+ PBXFileTableDataSourceColumnWidthsKey = (
+ 20,
+ 365.8799,
+ 205.2085,
+ );
+ PBXFileTableDataSourceColumnsKey = (
+ PBXErrorsWarningsDataSource_TypeID,
+ PBXErrorsWarningsDataSource_MessageID,
+ PBXErrorsWarningsDataSource_LocationID,
+ );
+ };
+ PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
+ PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
+ PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
+ PBXFileTableDataSourceColumnWidthsKey = (
+ 20,
+ 361,
+ 20,
+ 68,
+ 43,
+ 43,
+ 20,
+ );
+ PBXFileTableDataSourceColumnsKey = (
+ PBXFileDataSource_FiletypeID,
+ PBXFileDataSource_Filename_ColumnID,
+ PBXFileDataSource_Built_ColumnID,
+ PBXFileDataSource_ObjectSize_ColumnID,
+ PBXFileDataSource_Errors_ColumnID,
+ PBXFileDataSource_Warnings_ColumnID,
+ PBXFileDataSource_Target_ColumnID,
+ );
+ };
+ PBXPerProjectTemplateStateSaveDate = 102147745;
+ PBXPrepackagedSmartGroups_v2 = (
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ activationKey = OldTargetSmartGroup;
+ clz = PBXTargetSmartGroup;
+ description = "Displays all targets of the project.";
+ globalID = 1C37FABC04509CD000000102;
+ name = Targets;
+ preferences = {
+ image = Targets;
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = PBXTargetSmartGroup2;
+ description = "Displays all targets of the project as well as nested build phases.";
+ globalID = 1C37FBAC04509CD000000102;
+ name = Targets;
+ preferences = {
+ image = Targets;
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = PBXExecutablesSmartGroup;
+ description = "Displays all executables of the project.";
+ globalID = 1C37FAAC04509CD000000102;
+ name = Executables;
+ preferences = {
+ image = Executable;
+ };
+ },
+ {
+ " PBXTransientLocationAtTop " = bottom;
+ absolutePathToBundle = "";
+ clz = PBXErrorsWarningsSmartGroup;
+ description = "Displays files with errors or warnings.";
+ globalID = 1C08E77C0454961000C914BD;
+ name = "Errors and Warnings";
+ preferences = {
+ fnmatch = "";
+ image = WarningsErrors;
+ recursive = 1;
+ regex = "";
+ root = "<PROJECT>";
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = PBXFilenameSmartGroup;
+ description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter.";
+ globalID = 1CC0EA4004350EF90044410B;
+ name = "Implementation Files";
+ preferences = {
+ canSave = 1;
+ fnmatch = "";
+ image = SmartFolder;
+ isLeaf = 0;
+ recursive = 1;
+ regex = "?*\\.[mcMC]";
+ root = "<PROJECT>";
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = PBXFilenameSmartGroup;
+ description = "This group displays Interface Builder NIB Files.";
+ globalID = 1CC0EA4004350EF90041110B;
+ name = "NIB Files";
+ preferences = {
+ canSave = 1;
+ fnmatch = "*.nib";
+ image = SmartFolder;
+ isLeaf = 0;
+ recursive = 1;
+ regex = "";
+ root = "<PROJECT>";
+ };
+ },
+ {
+ PBXTransientLocationAtTop = no;
+ absolutePathToBundle = "";
+ clz = PBXFindSmartGroup;
+ description = "Displays Find Results.";
+ globalID = 1C37FABC05509CD000000102;
+ name = "Find Results";
+ preferences = {
+ image = spyglass;
+ };
+ },
+ {
+ PBXTransientLocationAtTop = no;
+ absolutePathToBundle = "";
+ clz = PBXBookmarksSmartGroup;
+ description = "Displays Project Bookmarks.";
+ globalID = 1C37FABC05539CD112110102;
+ name = Bookmarks;
+ preferences = {
+ image = Bookmarks;
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = XCSCMSmartGroup;
+ description = "Displays files with interesting SCM status.";
+ globalID = E2644B35053B69B200211256;
+ name = SCM;
+ preferences = {
+ image = PBXRepository;
+ isLeaf = 0;
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = PBXSymbolsSmartGroup;
+ description = "Displays all symbols for the project.";
+ globalID = 1C37FABC04509CD000100104;
+ name = "Project Symbols";
+ preferences = {
+ image = ProjectSymbols;
+ isLeaf = 1;
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = PBXFilenameSmartGroup;
+ description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter.";
+ globalID = PBXTemplateMarker;
+ name = "Simple Filter SmartGroup";
+ preferences = {
+ canSave = 1;
+ fnmatch = "*.nib";
+ image = SmartFolder;
+ isLeaf = 0;
+ recursive = 1;
+ regex = "";
+ root = "<PROJECT>";
+ };
+ },
+ {
+ PBXTransientLocationAtTop = bottom;
+ absolutePathToBundle = "";
+ clz = PBXFilenameSmartGroup;
+ description = "Filters items in a given group (potentially recursively) based on matching the name with the regular expression of the filter.";
+ globalID = PBXTemplateMarker;
+ name = "Simple Regular Expression SmartGroup";
+ preferences = {
+ canSave = 1;
+ fnmatch = "";
+ image = SmartFolder;
+ isLeaf = 0;
+ recursive = 1;
+ regex = "?*\\.[mcMC]";
+ root = "<PROJECT>";
+ };
+ },
+ );
+ PBXWorkspaceContents = (
+ {
+ PBXProjectWorkspaceModule_StateKey_Rev39 = {
+ PBXProjectWorkspaceModule_DEGV_Geometry = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ isCollapsed = yes;
+ sizes = (
+ "{{0, 0}, {618, 0}}",
+ "{{0, 0}, {618, 627}}",
+ );
+ };
+ PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = {
+ BoundsStr = "{{0, 0}, {603, 195}}";
+ Rows = (
+ 0,
+ );
+ VisibleRectStr = "{{0, 0}, {0, 0}}";
+ };
+ PBXProjectWorkspaceModule_EditorOpen = true;
+ PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = {
+ PBXSplitModuleInNavigatorKey = {
+ Split0 = {
+ bookmark = 669900D70616A634004446AB;
+ history = (
+ 66C09CE20612C8F000E767E6,
+ 66C09CE30612C8F000E767E6,
+ 66C09CE40612C8F000E767E6,
+ 669900D40616A634004446AB,
+ 669900D50616A634004446AB,
+ );
+ prevStack = (
+ 66C09CE60612C8F000E767E6,
+ 66C09CE70612C8F000E767E6,
+ 66C09CE80612C8F000E767E6,
+ 66C09CE90612C8F000E767E6,
+ 669900D60616A634004446AB,
+ );
+ };
+ SplitCount = 1;
+ };
+ };
+ PBXProjectWorkspaceModule_GeometryKey_Rev15 = {
+ PBXProjectWorkspaceModule_SGTM_Geometry = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ sizes = (
+ "{{0, 0}, {182, 627}}",
+ "{{182, 0}, {618, 627}}",
+ );
+ };
+ };
+ PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {618, 0}}";
+ PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {618, 627}}";
+ PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {618, 627}}";
+ PBXProjectWorkspaceModule_SGTM = {
+ PBXBottomSmartGroupGIDs = (
+ 1C37FBAC04509CD000000102,
+ 1C37FAAC04509CD000000102,
+ 1C08E77C0454961000C914BD,
+ 1CC0EA4004350EF90044410B,
+ 1CC0EA4004350EF90041110B,
+ 1C37FABC05509CD000000102,
+ 1C37FABC05539CD112110102,
+ E2644B35053B69B200211256,
+ 1C37FABC04509CD000100104,
+ );
+ PBXSmartGroupTreeModuleColumnData = {
+ PBXSmartGroupTreeModuleColumnWidthsKey = (
+ 165,
+ );
+ PBXSmartGroupTreeModuleColumnsKey_v4 = (
+ MainColumn,
+ );
+ };
+ PBXSmartGroupTreeModuleOutlineStateKey_v7 = {
+ PBXSmartGroupTreeModuleOutlineStateExpansionKey = (
+ 20286C29FDCF999611CA2CEA,
+ 20286C2AFDCF999611CA2CEA,
+ 20286C2CFDCF999611CA2CEA,
+ 0867D6AAFE840B52C02AAC07,
+ );
+ PBXSmartGroupTreeModuleOutlineStateSelectionKey = (
+ (
+ 0,
+ ),
+ );
+ PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 609}}";
+ };
+ PBXTopSmartGroupGIDs = (
+ );
+ };
+ };
+ },
+ );
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXBuildResultsModule" = {
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugCLIModule" = {
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXDebugSessionModule" = {
+ Debugger = {
+ HorizontalSplitView = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ isCollapsed = yes;
+ sizes = (
+ "{{0, 0}, {283, 209}}",
+ "{{283, 0}, {462, 209}}",
+ );
+ };
+ VerticalSplitView = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ isCollapsed = yes;
+ sizes = (
+ "{{0, 0}, {745, 209}}",
+ "{{0, 209}, {745, 213}}",
+ );
+ };
+ };
+ LauncherConfigVersion = 8;
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXNavigatorGroup" = {
+ PBXSplitModuleInNavigatorKey = {
+ SplitCount = 1;
+ };
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = {
+ PBXProjectWorkspaceModule_StateKey_Rev39 = {
+ PBXProjectWorkspaceModule_DEGV_Geometry = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ isCollapsed = yes;
+ sizes = (
+ "{{0, 0}, {618, 0}}",
+ "{{0, 0}, {618, 627}}",
+ );
+ };
+ PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = {
+ BoundsStr = "{{0, 0}, {603, 15}}";
+ Rows = (
+ 0,
+ );
+ VisibleRectStr = "{{0, 0}, {0, 0}}";
+ };
+ PBXProjectWorkspaceModule_EditorOpen = true;
+ PBXProjectWorkspaceModule_EmbeddedNavigatorGroup = {
+ PBXSplitModuleInNavigatorKey = {
+ Split0 = {
+ bookmark = 66C09CFB061365AB00E767E6;
+ history = (
+ 66C09CE20612C8F000E767E6,
+ 66C09CE30612C8F000E767E6,
+ 66C09CE40612C8F000E767E6,
+ 66C09CFA061365AB00E767E6,
+ );
+ prevStack = (
+ 66C09CE60612C8F000E767E6,
+ 66C09CE70612C8F000E767E6,
+ 66C09CE80612C8F000E767E6,
+ 66C09CE90612C8F000E767E6,
+ 66C09CEA0612C8F000E767E6,
+ 66C09CEB0612C8F000E767E6,
+ );
+ };
+ SplitCount = 1;
+ };
+ };
+ PBXProjectWorkspaceModule_GeometryKey_Rev15 = {
+ PBXProjectWorkspaceModule_SGTM_Geometry = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ sizes = (
+ "{{0, 0}, {182, 627}}",
+ "{{182, 0}, {618, 627}}",
+ );
+ };
+ };
+ PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {618, 0}}";
+ PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 0}, {618, 627}}";
+ PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {618, 627}}";
+ PBXProjectWorkspaceModule_SGTM = {
+ PBXBottomSmartGroupGIDs = (
+ 1C37FBAC04509CD000000102,
+ 1C37FAAC04509CD000000102,
+ 1C08E77C0454961000C914BD,
+ 1CC0EA4004350EF90044410B,
+ 1CC0EA4004350EF90041110B,
+ 1C37FABC05509CD000000102,
+ 1C37FABC05539CD112110102,
+ E2644B35053B69B200211256,
+ 1C37FABC04509CD000100104,
+ );
+ PBXSmartGroupTreeModuleColumnData = {
+ PBXSmartGroupTreeModuleColumnWidthsKey = (
+ 165,
+ );
+ PBXSmartGroupTreeModuleColumnsKey_v4 = (
+ MainColumn,
+ );
+ };
+ PBXSmartGroupTreeModuleOutlineStateKey_v7 = {
+ PBXSmartGroupTreeModuleOutlineStateExpansionKey = (
+ 20286C29FDCF999611CA2CEA,
+ 20286C2AFDCF999611CA2CEA,
+ 20286C2CFDCF999611CA2CEA,
+ 0867D6AAFE840B52C02AAC07,
+ 1C08E77C0454961000C914BD,
+ );
+ PBXSmartGroupTreeModuleOutlineStateSelectionKey = (
+ (
+ 17,
+ ),
+ );
+ PBXSmartGroupTreeModuleOutlineStateVisibleRectKey = "{{0, 0}, {165, 609}}";
+ };
+ PBXTopSmartGroupGIDs = (
+ );
+ };
+ };
+ };
+ "PBXWorkspaceContents:PBXConfiguration.PBXModule.PBXRunSessionModule" = {
+ LauncherConfigVersion = 3;
+ Runner = {
+ HorizontalSplitView = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ isCollapsed = yes;
+ sizes = (
+ "{{0, 0}, {491, 167}}",
+ "{{0, 176}, {491, 267}}",
+ );
+ };
+ VerticalSplitView = {
+ _collapsingFrameDimension = 0;
+ _indexOfCollapsedView = 0;
+ _percentageOfCollapsedView = 0;
+ isCollapsed = yes;
+ sizes = (
+ "{{0, 0}, {405, 443}}",
+ "{{414, 0}, {514, 443}}",
+ );
+ };
+ };
+ };
+ PBXWorkspaceGeometries = (
+ {
+ Frame = "{{0, 0}, {800, 627}}";
+ PBXProjectWorkspaceModule_GeometryKey_Rev15 = {
+ };
+ RubberWindowFrame = "54 124 800 669 0 0 1280 832 ";
+ },
+ );
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXBuildResultsModule" = {
+ Frame = "{{0, 0}, {480, 217}}";
+ PBXModuleWindowStatusBarHidden = YES;
+ RubberWindowFrame = "738 441 480 238 0 0 1280 832 ";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugCLIModule" = {
+ Frame = "{{0, 0}, {400, 201}}";
+ PBXModuleWindowStatusBarHidden = YES;
+ RubberWindowFrame = "50 804 400 222 0 0 1280 832 ";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXDebugSessionModule" = {
+ DebugConsoleDrawerSize = "{100, 120}";
+ DebugConsoleVisible = None;
+ DebugConsoleWindowFrame = "{{200, 200}, {500, 300}}";
+ DebugSTDIOWindowFrame = "{{200, 200}, {500, 300}}";
+ Frame = "{{0, 0}, {745, 422}}";
+ RubberWindowFrame = "267 358 745 464 0 0 1280 832 ";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXNavigatorGroup" = {
+ Frame = "{{0, 0}, {750, 481}}";
+ PBXModuleWindowStatusBarHidden = YES;
+ RubberWindowFrame = "15 325 750 502 0 0 1280 832 ";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXProjectWorkspaceModule" = {
+ Frame = "{{0, 0}, {800, 627}}";
+ PBXProjectWorkspaceModule_GeometryKey_Rev15 = {
+ PBXProjectWorkspaceModule_RunWindowVisible = true;
+ };
+ RubberWindowFrame = "54 124 800 669 0 0 1280 832 ";
+ };
+ "PBXWorkspaceGeometries:PBXConfiguration.PBXModule.PBXRunSessionModule" = {
+ Frame = "{{0, 0}, {870, 445}}";
+ PBXModuleWindowStatusBarHidden = YES;
+ RubberWindowFrame = "267 356 870 466 0 0 1280 832 ";
+ };
+ PBXWorkspaceStateSaveDate = 102147745;
+ };
+ perUserProjectItems = {
+ 669900D40616A634004446AB = 669900D40616A634004446AB;
+ 669900D50616A634004446AB = 669900D50616A634004446AB;
+ 669900D60616A634004446AB = 669900D60616A634004446AB;
+ 669900D70616A634004446AB = 669900D70616A634004446AB;
+ 66C09CE20612C8F000E767E6 = 66C09CE20612C8F000E767E6;
+ 66C09CE30612C8F000E767E6 = 66C09CE30612C8F000E767E6;
+ 66C09CE40612C8F000E767E6 = 66C09CE40612C8F000E767E6;
+ 66C09CE60612C8F000E767E6 = 66C09CE60612C8F000E767E6;
+ 66C09CE70612C8F000E767E6 = 66C09CE70612C8F000E767E6;
+ 66C09CE80612C8F000E767E6 = 66C09CE80612C8F000E767E6;
+ 66C09CE90612C8F000E767E6 = 66C09CE90612C8F000E767E6;
+ };
+ sourceControlManager = 664C29E6060E7681006EC560;
+ userBuildSettings = {
+ };
+ };
+ 20286C2BFDCF999611CA2CEA = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {603, 6929}}";
+ sepNavSelRange = "{6021, 0}";
+ sepNavVisRect = "{{0, 2527}, {603, 595}}";
+ sepNavWindowFrame = "{{15, 269}, {750, 558}}";
+ };
+ };
+ 664C29D8060E765D006EC560 = {
+ activeArgIndex = 2147483647;
+ activeArgIndices = (
+ );
+ argumentStrings = (
+ );
+ configStateDict = {
+ };
+ debuggerPlugin = GDBDebugging;
+ dylibVariantSuffix = "";
+ enableDebugStr = 1;
+ environmentEntries = (
+ );
+ isa = PBXExecutable;
+ name = ScriptExec;
+ shlibInfoDictList = (
+ );
+ sourceDirectories = (
+ );
+ };
+ 664C29E6060E7681006EC560 = {
+ isa = PBXSourceControlManager;
+ scmConfiguration = {
+ };
+ scmType = scm.cvs;
+ };
+ 664C29E7060E7681006EC560 = {
+ indexTemplatePath = "";
+ isa = PBXCodeSenseManager;
+ usesDefaults = 1;
+ wantsCodeCompletion = 1;
+ wantsCodeCompletionAutoPopup = 0;
+ wantsCodeCompletionAutoSuggestions = 0;
+ wantsCodeCompletionCaseSensitivity = 1;
+ wantsCodeCompletionOnlyMatchingItems = 1;
+ wantsCodeCompletionParametersIncluded = 1;
+ wantsCodeCompletionPlaceholdersInserted = 1;
+ wantsCodeCompletionTabCompletes = 1;
+ wantsIndex = 1;
+ };
+ 669900D40616A634004446AB = {
+ fRef = 20286C2BFDCF999611CA2CEA;
+ isa = PBXTextBookmark;
+ name = "main.c: 191";
+ rLen = 0;
+ rLoc = 6021;
+ rType = 0;
+ vrLen = 1128;
+ vrLoc = 5389;
+ };
+ 669900D50616A634004446AB = {
+ fRef = 669900D90616A634004446AB;
+ isa = PBXTextBookmark;
+ rLen = 0;
+ rLoc = 2147483647;
+ rType = 0;
+ };
+ 669900D60616A634004446AB = {
+ fRef = 20286C2BFDCF999611CA2CEA;
+ isa = PBXTextBookmark;
+ name = "main.c: 191";
+ rLen = 0;
+ rLoc = 6021;
+ rType = 0;
+ vrLen = 1128;
+ vrLoc = 5389;
+ };
+ 669900D70616A634004446AB = {
+ fRef = 669900D80616A634004446AB;
+ isa = PBXTextBookmark;
+ name = "(null): 459";
+ rLen = 0;
+ rLoc = 14343;
+ rType = 0;
+ vrLen = 1147;
+ vrLoc = 13217;
+ };
+ 669900D80616A634004446AB = {
+ isa = PBXFileReference;
+ lastKnownFileType = file;
+ name = main.c;
+ path = /Users/voisine/Desktop/ScriptExec/main.c;
+ refType = 0;
+ sourceTree = "<absolute>";
+ };
+ 669900D90616A634004446AB = {
+ isa = PBXFileReference;
+ lastKnownFileType = file;
+ name = main.c;
+ path = /Users/voisine/Desktop/ScriptExec/main.c;
+ refType = 0;
+ sourceTree = "<absolute>";
+ };
+ 66C09CE20612C8F000E767E6 = {
+ fRef = 8D0C4E960486CD37000505A6;
+ isa = PBXTextBookmark;
+ name = "Info.plist: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 984;
+ vrLoc = 0;
+ };
+ 66C09CE30612C8F000E767E6 = {
+ fRef = 0867D6ABFE840B52C02AAC07;
+ isa = PBXTextBookmark;
+ name = "English: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 259;
+ vrLoc = 0;
+ };
+ 66C09CE40612C8F000E767E6 = {
+ fRef = B8DCE048056DAC5000C390B0;
+ isa = PBXTextBookmark;
+ name = "script: 31";
+ rLen = 0;
+ rLoc = 20;
+ rType = 0;
+ vrLen = 20;
+ vrLoc = 0;
+ };
+ 66C09CE60612C8F000E767E6 = {
+ fRef = 20286C2BFDCF999611CA2CEA;
+ isa = PBXTextBookmark;
+ name = "main.c: 163";
+ rLen = 0;
+ rLoc = 5767;
+ rType = 0;
+ vrLen = 858;
+ vrLoc = 4669;
+ };
+ 66C09CE70612C8F000E767E6 = {
+ fRef = 8D0C4E960486CD37000505A6;
+ isa = PBXTextBookmark;
+ name = "Info.plist: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 984;
+ vrLoc = 0;
+ };
+ 66C09CE80612C8F000E767E6 = {
+ fRef = 0867D6ABFE840B52C02AAC07;
+ isa = PBXTextBookmark;
+ name = "English: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 259;
+ vrLoc = 0;
+ };
+ 66C09CE90612C8F000E767E6 = {
+ fRef = B8DCE048056DAC5000C390B0;
+ isa = PBXTextBookmark;
+ name = "script: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 20;
+ vrLoc = 0;
+ };
+ 8D0C4E890486CD37000505A6 = {
+ activeExec = 0;
+ executables = (
+ 664C29D8060E765D006EC560,
+ );
+ };
+ 8D0C4E960486CD37000505A6 = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {573, 599}}";
+ sepNavSelRange = "{0, 0}";
+ sepNavVisRect = "{{0, 0}, {573, 595}}";
+ };
+ };
+ B8DCE048056DAC5000C390B0 = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {573, 595}}";
+ sepNavSelRange = "{797, 0}";
+ sepNavVisRect = "{{0, 0}, {573, 595}}";
+ };
+ };
+}
diff --git a/packaging/macosx/ScriptExec/ScriptExec_Prefix.pch b/packaging/macosx/ScriptExec/ScriptExec_Prefix.pch
new file mode 100644
index 000000000..16d7ede3d
--- /dev/null
+++ b/packaging/macosx/ScriptExec/ScriptExec_Prefix.pch
@@ -0,0 +1,5 @@
+//
+// Prefix header for all source files of the 'ScriptExec' target in the 'ScriptExec' project.
+//
+
+#include <Carbon/Carbon.h>
diff --git a/packaging/macosx/ScriptExec/main.c b/packaging/macosx/ScriptExec/main.c
new file mode 100644
index 000000000..89b07ddd0
--- /dev/null
+++ b/packaging/macosx/ScriptExec/main.c
@@ -0,0 +1,624 @@
+/*
+ Platypus - create MacOS X application bundles that execute scripts
+ This is the executable that goes into Platypus apps
+ Copyright (C) 2003 Sveinbjorn Thordarson <sveinbt@hi.is>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ main.c - main program file
+
+*/
+
+///////////////////////////////////////
+// Includes
+///////////////////////////////////////
+#pragma mark Includes
+
+// Apple stuff
+#include <Carbon/Carbon.h>
+#include <CoreFoundation/CoreFoundation.h>
+#include <Security/Authorization.h>
+#include <Security/AuthorizationTags.h>
+
+// Unix stuff
+#include <string.h>
+#include <unistd.h>
+#include <sys/wait.h>
+#include <pthread.h>
+
+///////////////////////////////////////
+// Definitions
+///////////////////////////////////////
+#pragma mark Definitions
+
+// name length limits
+#define kMaxPathLength 1024
+
+// names of files bundled with app
+#define kScriptFileName "script"
+#define kOpenDocFileName "openDoc"
+
+// custom carbon events
+#define kEventClassRedFatalAlert 911
+#define kEventKindX11Failed 911
+#define kEventKindFCCacheFailed 912
+
+//maximum arguments the script accepts
+#define kMaxArgumentsToScript 252
+
+///////////////////////////////////////
+// Prototypes
+///////////////////////////////////////
+#pragma mark Prototypes
+
+static void *Execute(void *arg);
+static void *OpenDoc(void *arg);
+static OSErr ExecuteScript(char *script, pid_t *pid);
+
+static void GetParameters(void);
+static char* GetScript(void);
+static char* GetOpenDoc(void);
+
+OSErr LoadMenuBar(char *appName);
+
+static OSStatus FSMakePath(FSSpec file, char *path, long maxPathSize);
+static void RedFatalAlert(Str255 errorString, Str255 expStr);
+static short DoesFileExist(char *path);
+static OSStatus FixFCCache(void);
+
+static OSErr AppQuitAEHandler(const AppleEvent *theAppleEvent,
+ AppleEvent *reply, long refCon);
+static OSErr AppOpenDocAEHandler(const AppleEvent *theAppleEvent,
+ AppleEvent *reply, long refCon);
+static OSErr AppOpenAppAEHandler(const AppleEvent *theAppleEvent,
+ AppleEvent *reply, long refCon);
+static OSStatus X11FailedHandler(EventHandlerCallRef theHandlerCall,
+ EventRef theEvent, void *userData);
+static OSStatus FCCacheFailedHandler(EventHandlerCallRef theHandlerCall,
+ EventRef theEvent, void *userData);
+///////////////////////////////////////
+// Globals
+///////////////////////////////////////
+#pragma mark Globals
+
+// process id of forked process
+pid_t pid = 0;
+
+// thread id of threads that start scripts
+pthread_t odtid = 0, tid = 0;
+
+// indicator of whether the script has completed executing
+short taskDone = true;
+
+// execution parameters
+char scriptPath[kMaxPathLength];
+char openDocPath[kMaxPathLength];
+
+//arguments to the script
+char *arguments[kMaxArgumentsToScript+3];
+char *fileArgs[kMaxArgumentsToScript];
+short numArgs = 0;
+
+extern char **environ;
+
+#pragma mark -
+
+///////////////////////////////////////
+// Program entrance point
+///////////////////////////////////////
+int main(int argc, char* argv[])
+{
+ OSErr err = noErr;
+ EventTypeSpec X11events = { kEventClassRedFatalAlert, kEventKindX11Failed };
+ EventTypeSpec FCCacheEvents = { kEventClassRedFatalAlert, kEventKindFCCacheFailed };
+
+ InitCursor();
+
+ //install Apple Event handlers
+ err += AEInstallEventHandler(kCoreEventClass, kAEQuitApplication,
+ NewAEEventHandlerUPP(AppQuitAEHandler),
+ 0, false);
+ err += AEInstallEventHandler(kCoreEventClass, kAEOpenDocuments,
+ NewAEEventHandlerUPP(AppOpenDocAEHandler),
+ 0, false);
+ err += AEInstallEventHandler(kCoreEventClass, kAEOpenApplication,
+ NewAEEventHandlerUPP(AppOpenAppAEHandler),
+ 0, false);
+ err += InstallEventHandler(GetApplicationEventTarget(),
+ NewEventHandlerUPP(X11FailedHandler), 1,
+ &X11events, NULL, NULL);
+ err += InstallEventHandler(GetApplicationEventTarget(),
+ NewEventHandlerUPP(FCCacheFailedHandler), 1,
+ &FCCacheEvents, NULL, NULL);
+
+ if (err) RedFatalAlert("\pInitialization Error",
+ "\pError initing Apple Event handlers.");
+
+ //create the menu bar
+ if (err = LoadMenuBar(NULL)) RedFatalAlert("\pInitialization Error",
+ "\pError loading MenuBar.nib.");
+
+ GetParameters(); //load data from files containing exec settings
+
+ RunApplicationEventLoop(); //Run the event loop
+ return 0;
+}
+
+#pragma mark -
+
+
+//////////////////////////////////
+// Handler for when X11 fails to start
+//////////////////////////////////
+static OSStatus FCCacheFailedHandler(EventHandlerCallRef theHandlerCall,
+ EventRef theEvent, void *userData)
+{
+
+ pthread_join(tid, NULL);
+ if (odtid) pthread_join(odtid, NULL);
+
+ SInt16 itemHit;
+
+ AlertStdAlertParamRec params;
+ params.movable = true;
+ params.helpButton = false;
+ params.filterProc = NULL;
+ params.defaultText = "\pRun fc-cache";
+ params.cancelText = "\pIgnore";
+ params.otherText = NULL;
+ params.defaultButton = kAlertStdAlertOKButton;
+ params.cancelButton = kAlertStdAlertCancelButton;
+ params.position = kWindowDefaultPosition;
+
+ StandardAlert(kAlertStopAlert, "\pFont caches may need to be updated",
+ "\pThere is a problem on OS X 10.4.x where X11 installation does not always generate the necessary fontconfig caches. This can be corrected by running /usr/X11R6/bin/fc-cache as root.\n\nThis may take some time. Please do not close Inkscape.",
+ &params, &itemHit);
+
+ if (itemHit == kAlertStdAlertOKButton)
+ {
+ OSStatus err = FixFCCache();
+
+ if (err == errAuthorizationSuccess)
+ {
+ params.defaultText = (void *) kAlertDefaultOKText;
+ params.cancelText = NULL;
+
+ StandardAlert(kAlertNoteAlert, "\pFont caches have been updated",
+ "\pPlease re-run Inkscape.", &params, &itemHit);
+ system("test -d $HOME/.inkscape || mkdir $HOME/.inkscape; touch $HOME/.inkscape/.fccache");
+ }
+ }
+ else
+ {
+ params.defaultText = (void *) kAlertDefaultOKText;
+ params.cancelText = NULL;
+
+ StandardAlert(kAlertNoteAlert, "\pFont caches have not been updated",
+ "\pThey can be updated manually by running the following:\n sudo /usr/X11R6/bin/fc-cache\nOnce you have dealt with this, please re-run Inkscape.", &params, &itemHit);
+ system("test -d $HOME/.inkscape || mkdir $HOME/.inkscape; touch $HOME/.inkscape/.fccache");
+ }
+
+ ExitToShell();
+
+ return noErr;
+}
+
+
+/////////////////////////////////////
+// Code to run fc-cache on first run
+/////////////////////////////////////
+static OSStatus FixFCCache (void)
+{
+ char* args[1];
+
+ // Run fc-cache
+ AuthorizationItem authItems[] =
+ {
+ {
+ kAuthorizationRightExecute,
+ 23,
+ "/usr/X11R6/bin/fc-cache",
+ 0
+ }
+ };
+ AuthorizationItemSet authItemSet =
+ {
+ 1,
+ authItems
+ };
+ AuthorizationRef authRef = NULL;
+ OSStatus err = AuthorizationCreate (NULL, &authItemSet,
+ kAuthorizationFlagInteractionAllowed | kAuthorizationFlagExtendRights, &authRef);
+
+ if (err == errAuthorizationSuccess)
+ {
+ //the arguments parameter to AuthorizationExecuteWithPrivileges is
+ //a NULL terminated array of C string pointers.
+ args[0]= NULL;
+
+ AuthorizationExecuteWithPrivileges (authRef, "/usr/X11R6/bin/fc-cache",
+ kAuthorizationFlagDefaults, args, NULL);
+ }
+ AuthorizationFree(authRef, kAuthorizationFlagDestroyRights);
+
+ return err;
+}
+
+///////////////////////////////////
+// Execution thread starts here
+///////////////////////////////////
+static void *Execute (void *arg)
+{
+ EventRef event;
+
+ taskDone = false;
+
+ OSErr err = ExecuteScript(scriptPath, &pid);
+ if (err == (OSErr)11) {
+ CreateEvent(NULL, kEventClassRedFatalAlert, kEventKindX11Failed, 0,
+ kEventAttributeNone, &event);
+ PostEventToQueue(GetMainEventQueue(), event, kEventPriorityStandard);
+ }
+ else if (err == (OSErr)12) {
+ CreateEvent(NULL, kEventClassRedFatalAlert, kEventKindFCCacheFailed, 0,
+ kEventAttributeNone, &event);
+ PostEventToQueue(GetMainEventQueue(), event, kEventPriorityStandard);
+ }
+ else ExitToShell();
+ return 0;
+}
+
+///////////////////////////////////
+// Open additional documents thread starts here
+///////////////////////////////////
+static void *OpenDoc (void *arg)
+{
+ ExecuteScript(openDocPath, NULL);
+ return 0;
+}
+
+///////////////////////////////////////
+// Run a script via the system command
+///////////////////////////////////////
+static OSErr ExecuteScript (char *script, pid_t *pid)
+{
+ pid_t wpid = 0, p = 0;
+ int status, i;
+
+ if (! pid) pid = &p;
+
+ // Generate the array of argument strings before we do any executing
+ arguments[0] = script;
+ for (i = 0; i < numArgs; i++) arguments[i + 1] = fileArgs[i];
+ arguments[i + 1] = NULL;
+
+ *pid = fork(); //open fork
+
+ if (*pid == (pid_t)-1) exit(13); //error
+ else if (*pid == 0) { //child process started
+ execve(arguments[0], arguments, environ);
+ exit(13); //if we reach this point, there's an error
+ }
+
+ wpid = waitpid(*pid, &status, 0); //wait while child process finishes
+
+ if (wpid == (pid_t)-1) return wpid;
+ return (OSErr)WEXITSTATUS(status);
+}
+
+#pragma mark -
+
+///////////////////////////////////////
+// This function loads all the neccesary settings
+// from config files in the Resources folder
+///////////////////////////////////////
+static void GetParameters (void)
+{
+ char *str;
+ if (! (str = (char *)GetScript())) //get path to script to be executed
+ RedFatalAlert("\pInitialization Error",
+ "\pError getting script from application bundle.");
+ strcpy((char *)&scriptPath, str);
+
+ if (! (str = (char *)GetOpenDoc())) //get path to openDoc
+ RedFatalAlert("\pInitialization Error",
+ "\pError getting openDoc from application bundle.");
+ strcpy((char *)&openDocPath, str);
+}
+
+///////////////////////////////////////
+// Get path to the script in Resources folder
+///////////////////////////////////////
+static char* GetScript (void)
+{
+ CFStringRef fileName;
+ CFBundleRef appBundle;
+ CFURLRef scriptFileURL;
+ FSRef fileRef;
+ FSSpec fileSpec;
+ char *path;
+
+ //get CF URL for script
+ if (! (appBundle = CFBundleGetMainBundle())) return NULL;
+ if (! (fileName = CFStringCreateWithCString(NULL, kScriptFileName,
+ kCFStringEncodingASCII)))
+ return NULL;
+ if (! (scriptFileURL = CFBundleCopyResourceURL(appBundle, fileName, NULL,
+ NULL))) return NULL;
+
+ //Get file reference from Core Foundation URL
+ if (! CFURLGetFSRef(scriptFileURL, &fileRef)) return NULL;
+
+ //dispose of the CF variables
+ CFRelease(scriptFileURL);
+ CFRelease(fileName);
+
+ //convert FSRef to FSSpec
+ if (FSGetCatalogInfo(&fileRef, kFSCatInfoNone, NULL, NULL, &fileSpec,
+ NULL)) return NULL;
+
+ //create path string
+ if (! (path = malloc(kMaxPathLength))) return NULL;
+ if (FSMakePath(fileSpec, path, kMaxPathLength)) return NULL;
+ if (! DoesFileExist(path)) return NULL;
+
+ return path;
+}
+
+///////////////////////////////////////
+// Gets the path to openDoc in Resources folder
+///////////////////////////////////////
+static char* GetOpenDoc (void)
+{
+ CFStringRef fileName;
+ CFBundleRef appBundle;
+ CFURLRef openDocFileURL;
+ FSRef fileRef;
+ FSSpec fileSpec;
+ char *path;
+
+ //get CF URL for openDoc
+ if (! (appBundle = CFBundleGetMainBundle())) return NULL;
+ if (! (fileName = CFStringCreateWithCString(NULL, kOpenDocFileName,
+ kCFStringEncodingASCII)))
+ return NULL;
+ if (! (openDocFileURL = CFBundleCopyResourceURL(appBundle, fileName, NULL,
+ NULL))) return NULL;
+
+ //Get file reference from Core Foundation URL
+ if (! CFURLGetFSRef( openDocFileURL, &fileRef )) return NULL;
+
+ //dispose of the CF variables
+ CFRelease(openDocFileURL);
+ CFRelease(fileName);
+
+ //convert FSRef to FSSpec
+ if (FSGetCatalogInfo(&fileRef, kFSCatInfoNone, NULL, NULL, &fileSpec,
+ NULL)) return NULL;
+
+ //create path string
+ if (! (path = malloc(kMaxPathLength))) return NULL;
+ if (FSMakePath(fileSpec, path, kMaxPathLength)) return NULL;
+ if (! DoesFileExist(path)) return NULL;
+
+ return path;
+}
+
+#pragma mark -
+
+/////////////////////////////////////
+// Load menu bar from nib
+/////////////////////////////////////
+OSErr LoadMenuBar (char *appName)
+{
+ OSErr err;
+ IBNibRef nibRef;
+
+ if (err = CreateNibReference(CFSTR("MenuBar"), &nibRef)) return err;
+ if (err = SetMenuBarFromNib(nibRef, CFSTR("MenuBar"))) return err;
+ DisposeNibReference(nibRef);
+
+ return noErr;
+}
+
+#pragma mark -
+
+///////////////////////////////////////
+// Generate path string from FSSpec record
+///////////////////////////////////////
+static OSStatus FSMakePath(FSSpec file, char *path, long maxPathSize)
+{
+ OSErr err = noErr;
+ FSRef fileRef;
+
+ //create file reference from file spec
+ if (err = FSpMakeFSRef(&file, &fileRef)) return err;
+
+ // and then convert the FSRef to a path
+ return FSRefMakePath(&fileRef, path, maxPathSize);
+}
+
+////////////////////////////////////////
+// Standard red error alert, then exit application
+////////////////////////////////////////
+static void RedFatalAlert (Str255 errorString, Str255 expStr)
+{
+ StandardAlert(kAlertStopAlert, errorString, expStr, NULL, NULL);
+ ExitToShell();
+}
+
+///////////////////////////////////////
+// Determines whether file exists at path or not
+///////////////////////////////////////
+static short DoesFileExist (char *path)
+{
+ if (access(path, F_OK) == -1) return false;
+ return true;
+}
+
+#pragma mark -
+
+///////////////////////////////////////
+// Apple Event handler for Quit i.e. from
+// the dock or Application menu item
+///////////////////////////////////////
+static OSErr AppQuitAEHandler(const AppleEvent *theAppleEvent,
+ AppleEvent *reply, long refCon)
+{
+ #pragma unused (reply, refCon, theAppleEvent)
+
+ while (numArgs > 0) free(fileArgs[numArgs--]);
+
+ if (! taskDone && pid) { //kill the script process brutally
+ kill(pid, 9);
+ printf("Platypus App: PID %d killed brutally\n", pid);
+ }
+
+ pthread_cancel(tid);
+ if (odtid) pthread_cancel(odtid);
+
+ ExitToShell();
+
+ return noErr;
+}
+
+/////////////////////////////////////
+// Handler for docs dragged on app icon
+/////////////////////////////////////
+static OSErr AppOpenDocAEHandler(const AppleEvent *theAppleEvent,
+ AppleEvent *reply, long refCon)
+{
+ #pragma unused (reply, refCon)
+
+ OSErr err = noErr;
+ AEDescList fileSpecList;
+ AEKeyword keyword;
+ DescType type;
+
+ short i;
+ long count, actualSize;
+
+ FSSpec fileSpec;
+ char path[kMaxPathLength];
+
+ while (numArgs > 0) free(fileArgs[numArgs--]);
+
+ //Read the AppleEvent
+ err = AEGetParamDesc(theAppleEvent, keyDirectObject, typeAEList,
+ &fileSpecList);
+
+ err = AECountItems(&fileSpecList, &count); //Count number of files
+
+ for (i = 1; i <= count; i++) { //iteratively process each file
+ //get fsspec from apple event
+ if (! (err = AEGetNthPtr(&fileSpecList, i, typeFSS, &keyword, &type,
+ (Ptr)&fileSpec, sizeof(FSSpec), &actualSize)))
+ {
+ //get path from file spec
+ if ((err = FSMakePath(fileSpec, (unsigned char *)&path,
+ kMaxPathLength))) return err;
+
+ if (numArgs == kMaxArgumentsToScript) break;
+
+ if (! (fileArgs[numArgs] = malloc(kMaxPathLength))) return true;
+
+ strcpy(fileArgs[numArgs++], (char *)&path);
+ }
+ else return err;
+ }
+
+ if (! taskDone) pthread_create(&odtid, NULL, OpenDoc, NULL);
+ else pthread_create(&tid, NULL, Execute, NULL);
+
+ return err;
+}
+
+///////////////////////////////
+// Handler for clicking on app icon
+///////////////////////////////
+static OSErr AppOpenAppAEHandler(const AppleEvent *theAppleEvent,
+ AppleEvent *reply, long refCon)
+{
+ #pragma unused (reply, refCon, theAppleEvent)
+
+ // the app has been opened without any items dragged on to it
+ pthread_create(&tid, NULL, Execute, NULL);
+
+ return noErr;
+}
+
+
+static void OpenURL(Str255 url)
+{
+ // Use Internet Config to hand the URL to the appropriate application, as
+ // set by the user in the Internet Preferences pane.
+ ICInstance icInstance;
+ // Applications creator code:
+ OSType signature = 'Inks';
+ OSStatus error = ICStart( &icInstance, signature );
+ if ( error == noErr )
+ {
+ ConstStr255Param hint = 0x0;
+ const char* data = url;
+ long length = strlen(url);
+ long start = 0;
+ long end = length;
+ // Don't bother testing return value (error); launched application will
+ // report problems.
+ ICLaunchURL( icInstance, hint, data, length, &start, &end );
+ ICStop( icInstance );
+ }
+}
+
+
+//////////////////////////////////
+// Handler for when X11 fails to start
+//////////////////////////////////
+static OSStatus X11FailedHandler(EventHandlerCallRef theHandlerCall,
+ EventRef theEvent, void *userData)
+{
+ #pragma unused(theHanderCall, theEvent, userData)
+
+ pthread_join(tid, NULL);
+ if (odtid) pthread_join(odtid, NULL);
+
+ SInt16 itemHit;
+ const char *getX11 = "\pGet X11 for Panther";
+
+ AlertStdAlertParamRec params;
+ params.movable = true;
+ params.helpButton = false;
+ params.filterProc = NULL;
+ params.defaultText = (StringPtr) kAlertDefaultOKText;
+ params.cancelText = getX11;
+ params.otherText = NULL;
+ params.defaultButton = kAlertStdAlertOKButton;
+ params.cancelButton = kAlertStdAlertCancelButton;
+ params.position = kWindowDefaultPosition;
+
+ StandardAlert(kAlertStopAlert, "\pFailed to start X11",
+ "\pInkscape.app requires Apple's X11, which is freely downloadable from Apple's website for Panther (10.3.x) users and available as an optional install from the installation DVD for Tiger (10.4.x) users.\n\nPlease install X11 and restart Inkscape.",
+ &params, &itemHit);
+
+ if (itemHit == kAlertStdAlertCancelButton)
+ {
+ OpenURL("http://www.apple.com/downloads/macosx/apple/x11formacosx.html");
+ }
+
+ ExitToShell();
+
+
+ return noErr;
+}
diff --git a/packaging/macosx/ScriptExec/openDoc b/packaging/macosx/ScriptExec/openDoc
new file mode 100755
index 000000000..2242173e7
--- /dev/null
+++ b/packaging/macosx/ScriptExec/openDoc
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+
+echo $1; \ No newline at end of file
diff --git a/packaging/macosx/ScriptExec/script b/packaging/macosx/ScriptExec/script
new file mode 100755
index 000000000..2242173e7
--- /dev/null
+++ b/packaging/macosx/ScriptExec/script
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+
+echo $1; \ No newline at end of file
diff --git a/packaging/macosx/ScriptExec/version.plist b/packaging/macosx/ScriptExec/version.plist
new file mode 100644
index 000000000..a29320186
--- /dev/null
+++ b/packaging/macosx/ScriptExec/version.plist
@@ -0,0 +1,16 @@
+<?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>BuildVersion</key>
+ <string>17</string>
+ <key>CFBundleShortVersionString</key>
+ <string>0.1</string>
+ <key>CFBundleVersion</key>
+ <string>0.1</string>
+ <key>ProjectName</key>
+ <string>NibPBTemplates</string>
+ <key>SourceVersion</key>
+ <string>1150000</string>
+</dict>
+</plist>