Skip to content

Commit

Permalink
Implemented AppleScript support for getting current selection, added …
Browse files Browse the repository at this point in the history
…Automator converter action to convert from Cocoalicious tags to strings.
  • Loading branch information
ldandersen committed Sep 10, 2005
1 parent dd8af65 commit 80b7baf
Show file tree
Hide file tree
Showing 14 changed files with 520 additions and 65 deletions.
2 changes: 2 additions & 0 deletions Application/AppController.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import "DCAPITagFormatter.h"
#import "NSString+SFHFUtils.h"
#import "NSDictionary+SFHFUtils.h"
#import "NSArray+IndexSetAdditions.h"
#import "NSAppleScript+HandlerCalls.h"
#import "SFHFKeychainUtils.h"
#import "SFHFTableView.h"
Expand Down Expand Up @@ -134,6 +135,7 @@
- (void) setPostsWithArray: (NSArray *) newPosts;
- (NSMutableDictionary *) posts;
- (NSArray *) postsArray;
- (NSArray *) selectedPostsArray;
- (NSArray *) urlsArray;
- (void) setFilteredPosts: (NSArray *) newFilteredPosts;
- (NSArray *) filteredPosts;
Expand Down
4 changes: 4 additions & 0 deletions Application/AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ - (NSArray *) postsArray {
return [[self posts] allValues];
}

- (NSArray *) selectedPostsArray {
return [[self filteredPosts] subarrayWithIndexes: [postList selectedRowIndexes]];
}

- (NSArray *) urlsArray {
return [[self posts] allKeys];
}
Expand Down
31 changes: 13 additions & 18 deletions Delicious Client.xcodeproj/buzz.mode1
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@
<key>Layout</key>
<array>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBottomSmartGroupGIDs</key>
Expand Down Expand Up @@ -281,7 +283,7 @@
<real>225</real>
</array>
<key>RubberWindowFrame</key>
<string>62 202 949 592 0 0 1280 832 </string>
<string>60 202 949 592 0 0 1280 832 </string>
</dict>
<key>Module</key>
<string>PBXSmartGroupTreeModule</string>
Expand Down Expand Up @@ -318,16 +320,14 @@
<key>Frame</key>
<string>{{0, 0}, {702, 0}}</string>
<key>RubberWindowFrame</key>
<string>62 202 949 592 0 0 1280 832 </string>
<string>60 202 949 592 0 0 1280 832 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
<string>0pt</string>
</dict>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
Expand All @@ -340,7 +340,7 @@
<key>Frame</key>
<string>{{0, 5}, {702, 546}}</string>
<key>RubberWindowFrame</key>
<string>62 202 949 592 0 0 1280 832 </string>
<string>60 202 949 592 0 0 1280 832 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
Expand All @@ -364,9 +364,9 @@
</array>
<key>TableOfContents</key>
<array>
<string>6BFBE6F208D2C1C700C76075</string>
<string>6B804EBC08D381F4009B9F90</string>
<string>1CE0B1FE06471DED0097A5F4</string>
<string>6BFBE6F308D2C1C700C76075</string>
<string>6B804EBD08D381F4009B9F90</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
Expand Down Expand Up @@ -500,13 +500,10 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
<string>1C530D57069F1CE1000CFCEE</string>
<string>1C0AD2B3069F1EA900FABCE6</string>
<string>6BFBD192082EEB42009D11EB</string>
<string>/Users/buzz/Code/Cocoa/cocoalicious/Delicious Client.xcodeproj</string>
</array>
<key>WindowString</key>
<string>62 202 949 592 0 0 1280 832 </string>
<string>60 202 949 592 0 0 1280 832 </string>
<key>WindowTools</key>
<array>
<dict>
Expand All @@ -522,8 +519,6 @@
<key>Dock</key>
<array>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
Expand All @@ -546,10 +541,10 @@
<string>184pt</string>
</dict>
<dict>
<key>BecomeActive</key>
<true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBuildLogShowsTranscriptDefaultKey</key>
<string>{{0, 152}, {853, 142}}</string>
<key>PBXProjectModuleGUID</key>
<string>XCMainBuildResultsModuleGUID</string>
<key>PBXProjectModuleLabel</key>
Expand Down Expand Up @@ -587,7 +582,7 @@
<key>TableOfContents</key>
<array>
<string>6BFBD192082EEB42009D11EB</string>
<string>6BFBE6E208D2C11000C76075</string>
<string>6B491D3608D3621C00B6E3C4</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
Expand Down Expand Up @@ -947,9 +942,9 @@
<key>TableOfContents</key>
<array>
<string>1C0AD2B3069F1EA900FABCE6</string>
<string>6BFBE6E608D2C11000C76075</string>
<string>6B491D1608D3600000B6E3C4</string>
<string>1CD0528B0623707200166675</string>
<string>6BFBE6E708D2C11000C76075</string>
<string>6B491D1708D3600000B6E3C4</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.run</string>
Expand Down
90 changes: 63 additions & 27 deletions Delicious Client.xcodeproj/buzz.pbxuser
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
activeExecutable = 6BAB081D06D2FF6A0058BAC1 /* Cocoal.icio.us */;
activeTarget = 8D1107260486CEB800E47090 /* Cocoal.icio.us */;
addToTargets = (
6B47BF5A086345A400636CB2 /* Cocoalicious Definition */,
6B491C9208D35E1700B6E3C4 /* Convert Tags to Strings */,
);
breakpoints = (
);
Expand Down Expand Up @@ -145,7 +145,7 @@
PBXFileDataSource_Warnings_ColumnID,
);
};
PBXPerProjectTemplateStateSaveDate = 148029432;
PBXPerProjectTemplateStateSaveDate = 148079034;
PBXPrepackagedSmartGroups_v2 = (
{
PBXTransientLocationAtTop = bottom;
Expand Down Expand Up @@ -1017,7 +1017,7 @@
PBXModuleWindowStatusBarHidden = YES;
RubberWindowFrame = "465 168 745 467 0 0 1280 832 ";
};
PBXWorkspaceStateSaveDate = 148029432;
PBXWorkspaceStateSaveDate = 148079034;
};
sourceControlManager = 6BF88AE705C4D57100D7EDBB /* Source Control */;
userBuildSettings = {
Expand Down Expand Up @@ -1252,27 +1252,27 @@
6B47BF0908633DF600636CB2 /* main.applescript */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {705, 429}}";
sepNavSelRange = "{0, 0}";
sepNavSelRange = "{243, 33}";
sepNavVisRect = "{{0, 0}, {705, 429}}";
sepNavWindowFrame = "{{15, 269}, {750, 558}}";
sepNavWindowFrame = "{{349, 132}, {750, 558}}";
};
};
6B47BF0C08633E0400636CB2 /* Info.plist */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {919, 966}}";
sepNavSelRange = "{0, 0}";
sepNavVisRect = "{{0, 440}, {919, 526}}";
sepNavWindowFrame = "{{38, 151}, {964, 655}}";
sepNavSelRange = "{941, 0}";
sepNavVisRect = "{{0, 0}, {919, 526}}";
sepNavWindowFrame = "{{259, 155}, {964, 655}}";
};
};
6B47BF5A086345A400636CB2 /* Cocoalicious Definition */ = {
activeExec = 0;
};
6B47BF5D086345C500636CB2 /* definition.plist */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {705, 3038}}";
sepNavSelRange = "{4293, 8}";
sepNavVisRect = "{{0, 2226}, {705, 429}}";
sepNavIntBoundsRect = "{{0, 0}, {705, 3052}}";
sepNavSelRange = "{2587, 30}";
sepNavVisRect = "{{0, 674}, {705, 429}}";
sepNavWindowFrame = "{{449, 155}, {750, 558}}";
};
};
Expand Down Expand Up @@ -1300,6 +1300,41 @@
sepNavWindowFrame = "{{61, 130}, {964, 655}}";
};
};
6B491C9208D35E1700B6E3C4 /* Convert Tags to Strings */ = {
activeExec = 0;
};
6B491CA008D35E5600B6E3C4 /* Info.plist */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1159, 966}}";
sepNavSelRange = "{289, 0}";
sepNavVisRect = "{{0, 0}, {1159, 583}}";
sepNavWindowFrame = "{{15, 115}, {1204, 712}}";
};
};
6B491CA208D35E7500B6E3C4 /* main.applescript */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1159, 583}}";
sepNavSelRange = "{375, 0}";
sepNavVisRect = "{{0, 0}, {1159, 583}}";
sepNavWindowFrame = "{{15, 115}, {1204, 712}}";
};
};
6B557A0008D34E74004D4A2A /* NSArray+IndexSetAdditions.h */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {806, 182}}";
sepNavSelRange = "{280, 4}";
sepNavVisRect = "{{0, 30}, {806, 152}}";
sepNavWindowFrame = "{{18, 97}, {1204, 712}}";
};
};
6B557A0108D34E74004D4A2A /* NSArray+IndexSetAdditions.m */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1159, 583}}";
sepNavSelRange = "{686, 0}";
sepNavVisRect = "{{0, 0}, {1159, 583}}";
sepNavWindowFrame = "{{15, 115}, {1204, 712}}";
};
};
6B5A44BC06D1CFB6007C405C /* DCAPITagFormatter.h */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {711, 404}}";
Expand Down Expand Up @@ -1493,17 +1528,17 @@
};
6BD8187E075AFB740088A2CF /* AppController-AppleScriptExtensions.m */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {782, 1274}}";
sepNavSelRange = "{1472, 0}";
sepNavVisRect = "{{0, 715}, {705, 429}}";
sepNavWindowFrame = "{{176, 122}, {750, 558}}";
sepNavIntBoundsRect = "{{0, 0}, {782, 1652}}";
sepNavSelRange = "{520, 0}";
sepNavVisRect = "{{0, 984}, {705, 429}}";
sepNavWindowFrame = "{{371, 126}, {750, 558}}";
};
};
6BD8187F075AFB740088A2CF /* Cocoalicious.sdef */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {711, 882}}";
sepNavSelRange = "{0, 0}";
sepNavVisRect = "{{0, 0}, {711, 404}}";
sepNavIntBoundsRect = "{{0, 0}, {1159, 882}}";
sepNavSelRange = "{743, 20}";
sepNavVisRect = "{{0, 0}, {1159, 639}}";
sepNavWindowFrame = "{{84, 206}, {750, 558}}";
};
};
Expand All @@ -1516,9 +1551,10 @@
};
6BD818EB075AFCE50088A2CF /* DCAPIPost-AppleScriptExtensions.m */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {711, 489}}";
sepNavSelRange = "{0, 0}";
sepNavVisRect = "{{0, 0}, {711, 404}}";
sepNavIntBoundsRect = "{{0, 0}, {1304, 583}}";
sepNavSelRange = "{932, 0}";
sepNavVisRect = "{{0, 0}, {1159, 583}}";
sepNavWindowFrame = "{{61, 73}, {1204, 712}}";
};
};
6BD818EC075AFCE50088A2CF /* DCAPITag-AppleScriptExtensions.h */ = {
Expand Down Expand Up @@ -1561,17 +1597,17 @@
};
6BF88AE305C4D56000D7EDBB /* AppController.h */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {818, 2548}}";
sepNavSelRange = "{241, 0}";
sepNavVisRect = "{{0, 0}, {711, 429}}";
sepNavIntBoundsRect = "{{0, 0}, {818, 2576}}";
sepNavSelRange = "{4124, 0}";
sepNavVisRect = "{{0, 1709}, {705, 429}}";
sepNavWindowFrame = "{{209, 239}, {750, 558}}";
};
};
6BF88AE405C4D56000D7EDBB /* AppController.m */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1736, 23912}}";
sepNavSelRange = "{34508, 114}";
sepNavVisRect = "{{0, 13609}, {806, 152}}";
sepNavIntBoundsRect = "{{0, 0}, {1736, 23926}}";
sepNavSelRange = "{34588, 114}";
sepNavVisRect = "{{0, 13623}, {806, 152}}";
sepNavWindowFrame = "{{442, 274}, {750, 558}}";
};
};
Expand Down
Loading

0 comments on commit 80b7baf

Please sign in to comment.