aboutsummaryrefslogtreecommitdiffstats
path: root/SharedSupport/Default Bundles/CopyAsJSON.spBundle
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-19 12:35:17 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-19 12:35:17 +0000
commit6e2a43045f6f98c4fabf5a3358c2bdfdda2d6688 (patch)
treeb31cff90e22cb9e0a9d5f4adee0d45cdd4ede273 /SharedSupport/Default Bundles/CopyAsJSON.spBundle
parent3f813a65b0d41b4a1771349f27a2d0ccafb740f5 (diff)
downloadsequelpro-6e2a43045f6f98c4fabf5a3358c2bdfdda2d6688.tar.gz
sequelpro-6e2a43045f6f98c4fabf5a3358c2bdfdda2d6688.tar.bz2
sequelpro-6e2a43045f6f98c4fabf5a3358c2bdfdda2d6688.zip
• fixed issue while updating Default Bundles for key equivalent
• improved JSON Bundle commands - got rid of trailing whitespaces inside data and as JSON object - added error handling for serialization a JSON object to suppress inserting of "null"
Diffstat (limited to 'SharedSupport/Default Bundles/CopyAsJSON.spBundle')
-rw-r--r--SharedSupport/Default Bundles/CopyAsJSON.spBundle/command.plist7
1 files changed, 5 insertions, 2 deletions
diff --git a/SharedSupport/Default Bundles/CopyAsJSON.spBundle/command.plist b/SharedSupport/Default Bundles/CopyAsJSON.spBundle/command.plist
index 86bf998a..f4f1ecd9 100644
--- a/SharedSupport/Default Bundles/CopyAsJSON.spBundle/command.plist
+++ b/SharedSupport/Default Bundles/CopyAsJSON.spBundle/command.plist
@@ -64,8 +64,11 @@ while($rowData) {
print "null";
}
elsif($meta[$i]-&gt;[1] eq "integer" || $meta[$i]-&gt;[1] eq "float") {
- print "$cellData";
+ chomp($cellData);
+ $d = $cellData+0;
+ print "$d";
} else {
+ chomp($cellData);
print "\"$cellData\"";
}
@@ -91,7 +94,7 @@ while($rowData) {
print "\n";
}
-print "\t]\n}\n";
+print "\t]\n}";
' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy</string>
<key>contact</key>