├── .github └── FUNDING.yml ├── .gitignore ├── FinderGo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ ├── FinderGo.xcscheme │ └── FinderSyncExtension.xcscheme ├── FinderGo ├── AppDelegate.swift ├── AppWorker.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── icon_128@1x.png │ │ ├── icon_128@2x.png │ │ ├── icon_16@1x.png │ │ ├── icon_16@2x.png │ │ ├── icon_256@1x.png │ │ ├── icon_256@2x.png │ │ ├── icon_32@1x.png │ │ ├── icon_32@2x.png │ │ ├── icon_512@1x.png │ │ └── icon_512@2x.png │ ├── Contents.json │ └── barIcon.imageset │ │ ├── Bitmap@1x.png │ │ ├── Bitmap@2x.png │ │ ├── Bitmap@3x.png │ │ └── Contents.json ├── Base.lproj │ └── Main.storyboard ├── Info.plist ├── Scripts │ └── finderCurrentPath.scpt └── ViewController.swift ├── FinderGoTests ├── FinderGoTests.swift └── Info.plist ├── FinderGoUITests ├── FinderGoUITests.swift └── Info.plist ├── FinderSyncExtension ├── ExtensionWorker.swift ├── FinderSync.swift ├── FinderSyncExtension.entitlements ├── Info.plist └── Scripts │ ├── hyper.scpt │ ├── iterm.scpt │ └── terminal.scpt ├── Images ├── Icon.png ├── extension.png ├── go1.gif ├── screenshot2.png └── toolbar.png ├── LICENSE.md ├── README.md └── install.sh /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: onmyway133 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | .AppleDouble 4 | .LSOverride 5 | Icon 6 | ._* 7 | .Spotlight-V100 8 | .Trashes 9 | 10 | # Xcode 11 | # 12 | build/ 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata 22 | *.xccheckout 23 | *.moved-aside 24 | DerivedData 25 | *.hmap 26 | *.ipa 27 | *.xcuserstate 28 | 29 | # CocoaPods 30 | #Pods 31 | 32 | # Carthage 33 | Carthage 34 | 35 | # SPM 36 | .build/ 37 | -------------------------------------------------------------------------------- /FinderGo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D20C77611E7898B20055E5FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D20DCECD1E7751EF00A74C33 /* Assets.xcassets */; }; 11 | D20DCECA1E7751EF00A74C33 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D20DCEC91E7751EF00A74C33 /* AppDelegate.swift */; }; 12 | D20DCECC1E7751EF00A74C33 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D20DCECB1E7751EF00A74C33 /* ViewController.swift */; }; 13 | D20DCECE1E7751EF00A74C33 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D20DCECD1E7751EF00A74C33 /* Assets.xcassets */; }; 14 | D20DCED11E7751EF00A74C33 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D20DCECF1E7751EF00A74C33 /* Main.storyboard */; }; 15 | D20DCEDC1E7751EF00A74C33 /* FinderGoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D20DCEDB1E7751EF00A74C33 /* FinderGoTests.swift */; }; 16 | D20DCEE71E7751EF00A74C33 /* FinderGoUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D20DCEE61E7751EF00A74C33 /* FinderGoUITests.swift */; }; 17 | D20DCEFD1E77520400A74C33 /* FinderSync.swift in Sources */ = {isa = PBXBuildFile; fileRef = D20DCEFC1E77520400A74C33 /* FinderSync.swift */; }; 18 | D20DCF011E77520400A74C33 /* FinderSyncExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = D20DCEF81E77520400A74C33 /* FinderSyncExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 19 | D2792E7B1E79F7C5001BD3DA /* AppWorker.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2792E7A1E79F7C5001BD3DA /* AppWorker.swift */; }; 20 | D2792E821E79FC71001BD3DA /* ScriptingBridge.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2792E811E79FC71001BD3DA /* ScriptingBridge.framework */; }; 21 | D2792E8E1E79FE64001BD3DA /* finderCurrentPath.scpt in Resources */ = {isa = PBXBuildFile; fileRef = D2792E8D1E79FE64001BD3DA /* finderCurrentPath.scpt */; }; 22 | D2C1DF0E1E7D1B4100A0AFF0 /* hyper.scpt in Resources */ = {isa = PBXBuildFile; fileRef = D2C1DF0B1E7D1B4100A0AFF0 /* hyper.scpt */; }; 23 | D2C1DF0F1E7D1B4100A0AFF0 /* iterm.scpt in Resources */ = {isa = PBXBuildFile; fileRef = D2C1DF0C1E7D1B4100A0AFF0 /* iterm.scpt */; }; 24 | D2C1DF101E7D1B4100A0AFF0 /* terminal.scpt in Resources */ = {isa = PBXBuildFile; fileRef = D2C1DF0D1E7D1B4100A0AFF0 /* terminal.scpt */; }; 25 | D2C1DF121E7D1B6300A0AFF0 /* ExtensionWorker.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2C1DF111E7D1B6300A0AFF0 /* ExtensionWorker.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | D20DCED81E7751EF00A74C33 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = D20DCEBE1E7751EF00A74C33 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = D20DCEC51E7751EF00A74C33; 34 | remoteInfo = FinderGo; 35 | }; 36 | D20DCEE31E7751EF00A74C33 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = D20DCEBE1E7751EF00A74C33 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = D20DCEC51E7751EF00A74C33; 41 | remoteInfo = FinderGo; 42 | }; 43 | D20DCEFF1E77520400A74C33 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = D20DCEBE1E7751EF00A74C33 /* Project object */; 46 | proxyType = 1; 47 | remoteGlobalIDString = D20DCEF71E77520400A74C33; 48 | remoteInfo = FinderSyncExtension; 49 | }; 50 | /* End PBXContainerItemProxy section */ 51 | 52 | /* Begin PBXCopyFilesBuildPhase section */ 53 | D20DCF051E77520400A74C33 /* Embed App Extensions */ = { 54 | isa = PBXCopyFilesBuildPhase; 55 | buildActionMask = 2147483647; 56 | dstPath = ""; 57 | dstSubfolderSpec = 13; 58 | files = ( 59 | D20DCF011E77520400A74C33 /* FinderSyncExtension.appex in Embed App Extensions */, 60 | ); 61 | name = "Embed App Extensions"; 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXCopyFilesBuildPhase section */ 65 | 66 | /* Begin PBXFileReference section */ 67 | D20DCEC61E7751EF00A74C33 /* FinderGo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FinderGo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | D20DCEC91E7751EF00A74C33 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 69 | D20DCECB1E7751EF00A74C33 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 70 | D20DCECD1E7751EF00A74C33 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 71 | D20DCED01E7751EF00A74C33 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 72 | D20DCED21E7751EF00A74C33 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | D20DCED71E7751EF00A74C33 /* FinderGoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FinderGoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | D20DCEDB1E7751EF00A74C33 /* FinderGoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FinderGoTests.swift; sourceTree = ""; }; 75 | D20DCEDD1E7751EF00A74C33 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 76 | D20DCEE21E7751EF00A74C33 /* FinderGoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FinderGoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 77 | D20DCEE61E7751EF00A74C33 /* FinderGoUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FinderGoUITests.swift; sourceTree = ""; }; 78 | D20DCEE81E7751EF00A74C33 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 79 | D20DCEF81E77520400A74C33 /* FinderSyncExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = FinderSyncExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 80 | D20DCEFB1E77520400A74C33 /* FinderSyncExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = FinderSyncExtension.entitlements; sourceTree = ""; }; 81 | D20DCEFC1E77520400A74C33 /* FinderSync.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FinderSync.swift; sourceTree = ""; }; 82 | D20DCEFE1E77520400A74C33 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 83 | D2792E7A1E79F7C5001BD3DA /* AppWorker.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppWorker.swift; sourceTree = ""; }; 84 | D2792E811E79FC71001BD3DA /* ScriptingBridge.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ScriptingBridge.framework; path = System/Library/Frameworks/ScriptingBridge.framework; sourceTree = SDKROOT; }; 85 | D2792E8D1E79FE64001BD3DA /* finderCurrentPath.scpt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = finderCurrentPath.scpt; sourceTree = ""; }; 86 | D2C1DF0B1E7D1B4100A0AFF0 /* hyper.scpt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = hyper.scpt; sourceTree = ""; }; 87 | D2C1DF0C1E7D1B4100A0AFF0 /* iterm.scpt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = iterm.scpt; sourceTree = ""; }; 88 | D2C1DF0D1E7D1B4100A0AFF0 /* terminal.scpt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = terminal.scpt; sourceTree = ""; }; 89 | D2C1DF111E7D1B6300A0AFF0 /* ExtensionWorker.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExtensionWorker.swift; sourceTree = ""; }; 90 | /* End PBXFileReference section */ 91 | 92 | /* Begin PBXFrameworksBuildPhase section */ 93 | D20DCEC31E7751EF00A74C33 /* Frameworks */ = { 94 | isa = PBXFrameworksBuildPhase; 95 | buildActionMask = 2147483647; 96 | files = ( 97 | D2792E821E79FC71001BD3DA /* ScriptingBridge.framework in Frameworks */, 98 | ); 99 | runOnlyForDeploymentPostprocessing = 0; 100 | }; 101 | D20DCED41E7751EF00A74C33 /* Frameworks */ = { 102 | isa = PBXFrameworksBuildPhase; 103 | buildActionMask = 2147483647; 104 | files = ( 105 | ); 106 | runOnlyForDeploymentPostprocessing = 0; 107 | }; 108 | D20DCEDF1E7751EF00A74C33 /* Frameworks */ = { 109 | isa = PBXFrameworksBuildPhase; 110 | buildActionMask = 2147483647; 111 | files = ( 112 | ); 113 | runOnlyForDeploymentPostprocessing = 0; 114 | }; 115 | D20DCEF51E77520400A74C33 /* Frameworks */ = { 116 | isa = PBXFrameworksBuildPhase; 117 | buildActionMask = 2147483647; 118 | files = ( 119 | ); 120 | runOnlyForDeploymentPostprocessing = 0; 121 | }; 122 | /* End PBXFrameworksBuildPhase section */ 123 | 124 | /* Begin PBXGroup section */ 125 | D20DCEBD1E7751EF00A74C33 = { 126 | isa = PBXGroup; 127 | children = ( 128 | D20DCEC81E7751EF00A74C33 /* FinderGo */, 129 | D20DCEDA1E7751EF00A74C33 /* FinderGoTests */, 130 | D20DCEE51E7751EF00A74C33 /* FinderGoUITests */, 131 | D20DCEF91E77520400A74C33 /* FinderSyncExtension */, 132 | D20DCEC71E7751EF00A74C33 /* Products */, 133 | D2792E801E79FC70001BD3DA /* Frameworks */, 134 | ); 135 | sourceTree = ""; 136 | }; 137 | D20DCEC71E7751EF00A74C33 /* Products */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | D20DCEC61E7751EF00A74C33 /* FinderGo.app */, 141 | D20DCED71E7751EF00A74C33 /* FinderGoTests.xctest */, 142 | D20DCEE21E7751EF00A74C33 /* FinderGoUITests.xctest */, 143 | D20DCEF81E77520400A74C33 /* FinderSyncExtension.appex */, 144 | ); 145 | name = Products; 146 | sourceTree = ""; 147 | }; 148 | D20DCEC81E7751EF00A74C33 /* FinderGo */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | D2792E831E79FE3B001BD3DA /* Scripts */, 152 | D20DCEC91E7751EF00A74C33 /* AppDelegate.swift */, 153 | D20DCECB1E7751EF00A74C33 /* ViewController.swift */, 154 | D20DCECD1E7751EF00A74C33 /* Assets.xcassets */, 155 | D20DCECF1E7751EF00A74C33 /* Main.storyboard */, 156 | D20DCED21E7751EF00A74C33 /* Info.plist */, 157 | D2792E7A1E79F7C5001BD3DA /* AppWorker.swift */, 158 | ); 159 | path = FinderGo; 160 | sourceTree = ""; 161 | }; 162 | D20DCEDA1E7751EF00A74C33 /* FinderGoTests */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | D20DCEDB1E7751EF00A74C33 /* FinderGoTests.swift */, 166 | D20DCEDD1E7751EF00A74C33 /* Info.plist */, 167 | ); 168 | path = FinderGoTests; 169 | sourceTree = ""; 170 | }; 171 | D20DCEE51E7751EF00A74C33 /* FinderGoUITests */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | D20DCEE61E7751EF00A74C33 /* FinderGoUITests.swift */, 175 | D20DCEE81E7751EF00A74C33 /* Info.plist */, 176 | ); 177 | path = FinderGoUITests; 178 | sourceTree = ""; 179 | }; 180 | D20DCEF91E77520400A74C33 /* FinderSyncExtension */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | D2C1DF0A1E7D1B4100A0AFF0 /* Scripts */, 184 | D20DCEFC1E77520400A74C33 /* FinderSync.swift */, 185 | D20DCEFE1E77520400A74C33 /* Info.plist */, 186 | D20DCEFA1E77520400A74C33 /* Supporting Files */, 187 | D2C1DF111E7D1B6300A0AFF0 /* ExtensionWorker.swift */, 188 | ); 189 | path = FinderSyncExtension; 190 | sourceTree = ""; 191 | }; 192 | D20DCEFA1E77520400A74C33 /* Supporting Files */ = { 193 | isa = PBXGroup; 194 | children = ( 195 | D20DCEFB1E77520400A74C33 /* FinderSyncExtension.entitlements */, 196 | ); 197 | name = "Supporting Files"; 198 | sourceTree = ""; 199 | }; 200 | D2792E801E79FC70001BD3DA /* Frameworks */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | D2792E811E79FC71001BD3DA /* ScriptingBridge.framework */, 204 | ); 205 | name = Frameworks; 206 | sourceTree = ""; 207 | }; 208 | D2792E831E79FE3B001BD3DA /* Scripts */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | D2792E8D1E79FE64001BD3DA /* finderCurrentPath.scpt */, 212 | ); 213 | path = Scripts; 214 | sourceTree = ""; 215 | }; 216 | D2C1DF0A1E7D1B4100A0AFF0 /* Scripts */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | D2C1DF0B1E7D1B4100A0AFF0 /* hyper.scpt */, 220 | D2C1DF0C1E7D1B4100A0AFF0 /* iterm.scpt */, 221 | D2C1DF0D1E7D1B4100A0AFF0 /* terminal.scpt */, 222 | ); 223 | path = Scripts; 224 | sourceTree = ""; 225 | }; 226 | /* End PBXGroup section */ 227 | 228 | /* Begin PBXNativeTarget section */ 229 | D20DCEC51E7751EF00A74C33 /* FinderGo */ = { 230 | isa = PBXNativeTarget; 231 | buildConfigurationList = D20DCEEB1E7751EF00A74C33 /* Build configuration list for PBXNativeTarget "FinderGo" */; 232 | buildPhases = ( 233 | D20DCEC21E7751EF00A74C33 /* Sources */, 234 | D20DCEC31E7751EF00A74C33 /* Frameworks */, 235 | D20DCEC41E7751EF00A74C33 /* Resources */, 236 | D20DCF051E77520400A74C33 /* Embed App Extensions */, 237 | ); 238 | buildRules = ( 239 | ); 240 | dependencies = ( 241 | D20DCF001E77520400A74C33 /* PBXTargetDependency */, 242 | ); 243 | name = FinderGo; 244 | productName = FinderGo; 245 | productReference = D20DCEC61E7751EF00A74C33 /* FinderGo.app */; 246 | productType = "com.apple.product-type.application"; 247 | }; 248 | D20DCED61E7751EF00A74C33 /* FinderGoTests */ = { 249 | isa = PBXNativeTarget; 250 | buildConfigurationList = D20DCEEE1E7751EF00A74C33 /* Build configuration list for PBXNativeTarget "FinderGoTests" */; 251 | buildPhases = ( 252 | D20DCED31E7751EF00A74C33 /* Sources */, 253 | D20DCED41E7751EF00A74C33 /* Frameworks */, 254 | D20DCED51E7751EF00A74C33 /* Resources */, 255 | ); 256 | buildRules = ( 257 | ); 258 | dependencies = ( 259 | D20DCED91E7751EF00A74C33 /* PBXTargetDependency */, 260 | ); 261 | name = FinderGoTests; 262 | productName = FinderGoTests; 263 | productReference = D20DCED71E7751EF00A74C33 /* FinderGoTests.xctest */; 264 | productType = "com.apple.product-type.bundle.unit-test"; 265 | }; 266 | D20DCEE11E7751EF00A74C33 /* FinderGoUITests */ = { 267 | isa = PBXNativeTarget; 268 | buildConfigurationList = D20DCEF11E7751EF00A74C33 /* Build configuration list for PBXNativeTarget "FinderGoUITests" */; 269 | buildPhases = ( 270 | D20DCEDE1E7751EF00A74C33 /* Sources */, 271 | D20DCEDF1E7751EF00A74C33 /* Frameworks */, 272 | D20DCEE01E7751EF00A74C33 /* Resources */, 273 | ); 274 | buildRules = ( 275 | ); 276 | dependencies = ( 277 | D20DCEE41E7751EF00A74C33 /* PBXTargetDependency */, 278 | ); 279 | name = FinderGoUITests; 280 | productName = FinderGoUITests; 281 | productReference = D20DCEE21E7751EF00A74C33 /* FinderGoUITests.xctest */; 282 | productType = "com.apple.product-type.bundle.ui-testing"; 283 | }; 284 | D20DCEF71E77520400A74C33 /* FinderSyncExtension */ = { 285 | isa = PBXNativeTarget; 286 | buildConfigurationList = D20DCF021E77520400A74C33 /* Build configuration list for PBXNativeTarget "FinderSyncExtension" */; 287 | buildPhases = ( 288 | D20DCEF41E77520400A74C33 /* Sources */, 289 | D20DCEF51E77520400A74C33 /* Frameworks */, 290 | D20DCEF61E77520400A74C33 /* Resources */, 291 | ); 292 | buildRules = ( 293 | ); 294 | dependencies = ( 295 | ); 296 | name = FinderSyncExtension; 297 | productName = FinderSyncExtension; 298 | productReference = D20DCEF81E77520400A74C33 /* FinderSyncExtension.appex */; 299 | productType = "com.apple.product-type.app-extension"; 300 | }; 301 | /* End PBXNativeTarget section */ 302 | 303 | /* Begin PBXProject section */ 304 | D20DCEBE1E7751EF00A74C33 /* Project object */ = { 305 | isa = PBXProject; 306 | attributes = { 307 | LastSwiftUpdateCheck = 0820; 308 | LastUpgradeCheck = 1000; 309 | ORGANIZATIONNAME = Fantageek; 310 | TargetAttributes = { 311 | D20DCEC51E7751EF00A74C33 = { 312 | CreatedOnToolsVersion = 8.2.1; 313 | DevelopmentTeam = T78DK947F2; 314 | ProvisioningStyle = Automatic; 315 | }; 316 | D20DCED61E7751EF00A74C33 = { 317 | CreatedOnToolsVersion = 8.2.1; 318 | ProvisioningStyle = Automatic; 319 | TestTargetID = D20DCEC51E7751EF00A74C33; 320 | }; 321 | D20DCEE11E7751EF00A74C33 = { 322 | CreatedOnToolsVersion = 8.2.1; 323 | ProvisioningStyle = Automatic; 324 | TestTargetID = D20DCEC51E7751EF00A74C33; 325 | }; 326 | D20DCEF71E77520400A74C33 = { 327 | CreatedOnToolsVersion = 8.2.1; 328 | DevelopmentTeam = T78DK947F2; 329 | ProvisioningStyle = Automatic; 330 | }; 331 | }; 332 | }; 333 | buildConfigurationList = D20DCEC11E7751EF00A74C33 /* Build configuration list for PBXProject "FinderGo" */; 334 | compatibilityVersion = "Xcode 3.2"; 335 | developmentRegion = English; 336 | hasScannedForEncodings = 0; 337 | knownRegions = ( 338 | en, 339 | Base, 340 | ); 341 | mainGroup = D20DCEBD1E7751EF00A74C33; 342 | productRefGroup = D20DCEC71E7751EF00A74C33 /* Products */; 343 | projectDirPath = ""; 344 | projectRoot = ""; 345 | targets = ( 346 | D20DCEC51E7751EF00A74C33 /* FinderGo */, 347 | D20DCED61E7751EF00A74C33 /* FinderGoTests */, 348 | D20DCEE11E7751EF00A74C33 /* FinderGoUITests */, 349 | D20DCEF71E77520400A74C33 /* FinderSyncExtension */, 350 | ); 351 | }; 352 | /* End PBXProject section */ 353 | 354 | /* Begin PBXResourcesBuildPhase section */ 355 | D20DCEC41E7751EF00A74C33 /* Resources */ = { 356 | isa = PBXResourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | D2792E8E1E79FE64001BD3DA /* finderCurrentPath.scpt in Resources */, 360 | D20DCECE1E7751EF00A74C33 /* Assets.xcassets in Resources */, 361 | D20DCED11E7751EF00A74C33 /* Main.storyboard in Resources */, 362 | ); 363 | runOnlyForDeploymentPostprocessing = 0; 364 | }; 365 | D20DCED51E7751EF00A74C33 /* Resources */ = { 366 | isa = PBXResourcesBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | ); 370 | runOnlyForDeploymentPostprocessing = 0; 371 | }; 372 | D20DCEE01E7751EF00A74C33 /* Resources */ = { 373 | isa = PBXResourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | }; 379 | D20DCEF61E77520400A74C33 /* Resources */ = { 380 | isa = PBXResourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | D20C77611E7898B20055E5FF /* Assets.xcassets in Resources */, 384 | D2C1DF0E1E7D1B4100A0AFF0 /* hyper.scpt in Resources */, 385 | D2C1DF101E7D1B4100A0AFF0 /* terminal.scpt in Resources */, 386 | D2C1DF0F1E7D1B4100A0AFF0 /* iterm.scpt in Resources */, 387 | ); 388 | runOnlyForDeploymentPostprocessing = 0; 389 | }; 390 | /* End PBXResourcesBuildPhase section */ 391 | 392 | /* Begin PBXSourcesBuildPhase section */ 393 | D20DCEC21E7751EF00A74C33 /* Sources */ = { 394 | isa = PBXSourcesBuildPhase; 395 | buildActionMask = 2147483647; 396 | files = ( 397 | D20DCECC1E7751EF00A74C33 /* ViewController.swift in Sources */, 398 | D20DCECA1E7751EF00A74C33 /* AppDelegate.swift in Sources */, 399 | D2792E7B1E79F7C5001BD3DA /* AppWorker.swift in Sources */, 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | }; 403 | D20DCED31E7751EF00A74C33 /* Sources */ = { 404 | isa = PBXSourcesBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | D20DCEDC1E7751EF00A74C33 /* FinderGoTests.swift in Sources */, 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | D20DCEDE1E7751EF00A74C33 /* Sources */ = { 412 | isa = PBXSourcesBuildPhase; 413 | buildActionMask = 2147483647; 414 | files = ( 415 | D20DCEE71E7751EF00A74C33 /* FinderGoUITests.swift in Sources */, 416 | ); 417 | runOnlyForDeploymentPostprocessing = 0; 418 | }; 419 | D20DCEF41E77520400A74C33 /* Sources */ = { 420 | isa = PBXSourcesBuildPhase; 421 | buildActionMask = 2147483647; 422 | files = ( 423 | D20DCEFD1E77520400A74C33 /* FinderSync.swift in Sources */, 424 | D2C1DF121E7D1B6300A0AFF0 /* ExtensionWorker.swift in Sources */, 425 | ); 426 | runOnlyForDeploymentPostprocessing = 0; 427 | }; 428 | /* End PBXSourcesBuildPhase section */ 429 | 430 | /* Begin PBXTargetDependency section */ 431 | D20DCED91E7751EF00A74C33 /* PBXTargetDependency */ = { 432 | isa = PBXTargetDependency; 433 | target = D20DCEC51E7751EF00A74C33 /* FinderGo */; 434 | targetProxy = D20DCED81E7751EF00A74C33 /* PBXContainerItemProxy */; 435 | }; 436 | D20DCEE41E7751EF00A74C33 /* PBXTargetDependency */ = { 437 | isa = PBXTargetDependency; 438 | target = D20DCEC51E7751EF00A74C33 /* FinderGo */; 439 | targetProxy = D20DCEE31E7751EF00A74C33 /* PBXContainerItemProxy */; 440 | }; 441 | D20DCF001E77520400A74C33 /* PBXTargetDependency */ = { 442 | isa = PBXTargetDependency; 443 | target = D20DCEF71E77520400A74C33 /* FinderSyncExtension */; 444 | targetProxy = D20DCEFF1E77520400A74C33 /* PBXContainerItemProxy */; 445 | }; 446 | /* End PBXTargetDependency section */ 447 | 448 | /* Begin PBXVariantGroup section */ 449 | D20DCECF1E7751EF00A74C33 /* Main.storyboard */ = { 450 | isa = PBXVariantGroup; 451 | children = ( 452 | D20DCED01E7751EF00A74C33 /* Base */, 453 | ); 454 | name = Main.storyboard; 455 | sourceTree = ""; 456 | }; 457 | /* End PBXVariantGroup section */ 458 | 459 | /* Begin XCBuildConfiguration section */ 460 | D20DCEE91E7751EF00A74C33 /* Debug */ = { 461 | isa = XCBuildConfiguration; 462 | buildSettings = { 463 | ALWAYS_SEARCH_USER_PATHS = NO; 464 | CLANG_ANALYZER_NONNULL = YES; 465 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 466 | CLANG_CXX_LIBRARY = "libc++"; 467 | CLANG_ENABLE_MODULES = YES; 468 | CLANG_ENABLE_OBJC_ARC = YES; 469 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 470 | CLANG_WARN_BOOL_CONVERSION = YES; 471 | CLANG_WARN_COMMA = YES; 472 | CLANG_WARN_CONSTANT_CONVERSION = YES; 473 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 474 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 475 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 476 | CLANG_WARN_EMPTY_BODY = YES; 477 | CLANG_WARN_ENUM_CONVERSION = YES; 478 | CLANG_WARN_INFINITE_RECURSION = YES; 479 | CLANG_WARN_INT_CONVERSION = YES; 480 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 481 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 482 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 483 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 484 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 485 | CLANG_WARN_STRICT_PROTOTYPES = YES; 486 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 487 | CLANG_WARN_UNREACHABLE_CODE = YES; 488 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 489 | CODE_SIGN_IDENTITY = "-"; 490 | COPY_PHASE_STRIP = NO; 491 | DEBUG_INFORMATION_FORMAT = dwarf; 492 | ENABLE_STRICT_OBJC_MSGSEND = YES; 493 | ENABLE_TESTABILITY = YES; 494 | GCC_C_LANGUAGE_STANDARD = gnu99; 495 | GCC_DYNAMIC_NO_PIC = NO; 496 | GCC_NO_COMMON_BLOCKS = YES; 497 | GCC_OPTIMIZATION_LEVEL = 0; 498 | GCC_PREPROCESSOR_DEFINITIONS = ( 499 | "DEBUG=1", 500 | "$(inherited)", 501 | ); 502 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 503 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 504 | GCC_WARN_UNDECLARED_SELECTOR = YES; 505 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 506 | GCC_WARN_UNUSED_FUNCTION = YES; 507 | GCC_WARN_UNUSED_VARIABLE = YES; 508 | MACOSX_DEPLOYMENT_TARGET = 10.12; 509 | MTL_ENABLE_DEBUG_INFO = YES; 510 | ONLY_ACTIVE_ARCH = YES; 511 | SDKROOT = macosx; 512 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 513 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 514 | SWIFT_VERSION = 4.2; 515 | }; 516 | name = Debug; 517 | }; 518 | D20DCEEA1E7751EF00A74C33 /* Release */ = { 519 | isa = XCBuildConfiguration; 520 | buildSettings = { 521 | ALWAYS_SEARCH_USER_PATHS = NO; 522 | CLANG_ANALYZER_NONNULL = YES; 523 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 524 | CLANG_CXX_LIBRARY = "libc++"; 525 | CLANG_ENABLE_MODULES = YES; 526 | CLANG_ENABLE_OBJC_ARC = YES; 527 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 528 | CLANG_WARN_BOOL_CONVERSION = YES; 529 | CLANG_WARN_COMMA = YES; 530 | CLANG_WARN_CONSTANT_CONVERSION = YES; 531 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 532 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 533 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 534 | CLANG_WARN_EMPTY_BODY = YES; 535 | CLANG_WARN_ENUM_CONVERSION = YES; 536 | CLANG_WARN_INFINITE_RECURSION = YES; 537 | CLANG_WARN_INT_CONVERSION = YES; 538 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 539 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 540 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 541 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 542 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 543 | CLANG_WARN_STRICT_PROTOTYPES = YES; 544 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 545 | CLANG_WARN_UNREACHABLE_CODE = YES; 546 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 547 | CODE_SIGN_IDENTITY = "-"; 548 | COPY_PHASE_STRIP = NO; 549 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 550 | ENABLE_NS_ASSERTIONS = NO; 551 | ENABLE_STRICT_OBJC_MSGSEND = YES; 552 | GCC_C_LANGUAGE_STANDARD = gnu99; 553 | GCC_NO_COMMON_BLOCKS = YES; 554 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 555 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 556 | GCC_WARN_UNDECLARED_SELECTOR = YES; 557 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 558 | GCC_WARN_UNUSED_FUNCTION = YES; 559 | GCC_WARN_UNUSED_VARIABLE = YES; 560 | MACOSX_DEPLOYMENT_TARGET = 10.12; 561 | MTL_ENABLE_DEBUG_INFO = NO; 562 | SDKROOT = macosx; 563 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 564 | SWIFT_VERSION = 4.2; 565 | }; 566 | name = Release; 567 | }; 568 | D20DCEEC1E7751EF00A74C33 /* Debug */ = { 569 | isa = XCBuildConfiguration; 570 | buildSettings = { 571 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 572 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 573 | COMBINE_HIDPI_IMAGES = YES; 574 | DEVELOPMENT_TEAM = T78DK947F2; 575 | INFOPLIST_FILE = FinderGo/Info.plist; 576 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 577 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo; 578 | PRODUCT_NAME = "$(TARGET_NAME)"; 579 | }; 580 | name = Debug; 581 | }; 582 | D20DCEED1E7751EF00A74C33 /* Release */ = { 583 | isa = XCBuildConfiguration; 584 | buildSettings = { 585 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 586 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 587 | COMBINE_HIDPI_IMAGES = YES; 588 | DEVELOPMENT_TEAM = T78DK947F2; 589 | INFOPLIST_FILE = FinderGo/Info.plist; 590 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 591 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo; 592 | PRODUCT_NAME = "$(TARGET_NAME)"; 593 | }; 594 | name = Release; 595 | }; 596 | D20DCEEF1E7751EF00A74C33 /* Debug */ = { 597 | isa = XCBuildConfiguration; 598 | buildSettings = { 599 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 600 | BUNDLE_LOADER = "$(TEST_HOST)"; 601 | COMBINE_HIDPI_IMAGES = YES; 602 | INFOPLIST_FILE = FinderGoTests/Info.plist; 603 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 604 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoTests; 605 | PRODUCT_NAME = "$(TARGET_NAME)"; 606 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FinderGo.app/Contents/MacOS/FinderGo"; 607 | }; 608 | name = Debug; 609 | }; 610 | D20DCEF01E7751EF00A74C33 /* Release */ = { 611 | isa = XCBuildConfiguration; 612 | buildSettings = { 613 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 614 | BUNDLE_LOADER = "$(TEST_HOST)"; 615 | COMBINE_HIDPI_IMAGES = YES; 616 | INFOPLIST_FILE = FinderGoTests/Info.plist; 617 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 618 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoTests; 619 | PRODUCT_NAME = "$(TARGET_NAME)"; 620 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FinderGo.app/Contents/MacOS/FinderGo"; 621 | }; 622 | name = Release; 623 | }; 624 | D20DCEF21E7751EF00A74C33 /* Debug */ = { 625 | isa = XCBuildConfiguration; 626 | buildSettings = { 627 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 628 | COMBINE_HIDPI_IMAGES = YES; 629 | INFOPLIST_FILE = FinderGoUITests/Info.plist; 630 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 631 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoUITests; 632 | PRODUCT_NAME = "$(TARGET_NAME)"; 633 | TEST_TARGET_NAME = FinderGo; 634 | }; 635 | name = Debug; 636 | }; 637 | D20DCEF31E7751EF00A74C33 /* Release */ = { 638 | isa = XCBuildConfiguration; 639 | buildSettings = { 640 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 641 | COMBINE_HIDPI_IMAGES = YES; 642 | INFOPLIST_FILE = FinderGoUITests/Info.plist; 643 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 644 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGoUITests; 645 | PRODUCT_NAME = "$(TARGET_NAME)"; 646 | TEST_TARGET_NAME = FinderGo; 647 | }; 648 | name = Release; 649 | }; 650 | D20DCF031E77520400A74C33 /* Debug */ = { 651 | isa = XCBuildConfiguration; 652 | buildSettings = { 653 | CODE_SIGN_ENTITLEMENTS = FinderSyncExtension/FinderSyncExtension.entitlements; 654 | COMBINE_HIDPI_IMAGES = YES; 655 | DEVELOPMENT_TEAM = T78DK947F2; 656 | INFOPLIST_FILE = FinderSyncExtension/Info.plist; 657 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 658 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo.FinderSyncExtension; 659 | PRODUCT_NAME = "$(TARGET_NAME)"; 660 | SKIP_INSTALL = YES; 661 | }; 662 | name = Debug; 663 | }; 664 | D20DCF041E77520400A74C33 /* Release */ = { 665 | isa = XCBuildConfiguration; 666 | buildSettings = { 667 | CODE_SIGN_ENTITLEMENTS = FinderSyncExtension/FinderSyncExtension.entitlements; 668 | COMBINE_HIDPI_IMAGES = YES; 669 | DEVELOPMENT_TEAM = T78DK947F2; 670 | INFOPLIST_FILE = FinderSyncExtension/Info.plist; 671 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"; 672 | PRODUCT_BUNDLE_IDENTIFIER = com.onmyway133.FinderGo.FinderSyncExtension; 673 | PRODUCT_NAME = "$(TARGET_NAME)"; 674 | SKIP_INSTALL = YES; 675 | }; 676 | name = Release; 677 | }; 678 | /* End XCBuildConfiguration section */ 679 | 680 | /* Begin XCConfigurationList section */ 681 | D20DCEC11E7751EF00A74C33 /* Build configuration list for PBXProject "FinderGo" */ = { 682 | isa = XCConfigurationList; 683 | buildConfigurations = ( 684 | D20DCEE91E7751EF00A74C33 /* Debug */, 685 | D20DCEEA1E7751EF00A74C33 /* Release */, 686 | ); 687 | defaultConfigurationIsVisible = 0; 688 | defaultConfigurationName = Release; 689 | }; 690 | D20DCEEB1E7751EF00A74C33 /* Build configuration list for PBXNativeTarget "FinderGo" */ = { 691 | isa = XCConfigurationList; 692 | buildConfigurations = ( 693 | D20DCEEC1E7751EF00A74C33 /* Debug */, 694 | D20DCEED1E7751EF00A74C33 /* Release */, 695 | ); 696 | defaultConfigurationIsVisible = 0; 697 | defaultConfigurationName = Release; 698 | }; 699 | D20DCEEE1E7751EF00A74C33 /* Build configuration list for PBXNativeTarget "FinderGoTests" */ = { 700 | isa = XCConfigurationList; 701 | buildConfigurations = ( 702 | D20DCEEF1E7751EF00A74C33 /* Debug */, 703 | D20DCEF01E7751EF00A74C33 /* Release */, 704 | ); 705 | defaultConfigurationIsVisible = 0; 706 | defaultConfigurationName = Release; 707 | }; 708 | D20DCEF11E7751EF00A74C33 /* Build configuration list for PBXNativeTarget "FinderGoUITests" */ = { 709 | isa = XCConfigurationList; 710 | buildConfigurations = ( 711 | D20DCEF21E7751EF00A74C33 /* Debug */, 712 | D20DCEF31E7751EF00A74C33 /* Release */, 713 | ); 714 | defaultConfigurationIsVisible = 0; 715 | defaultConfigurationName = Release; 716 | }; 717 | D20DCF021E77520400A74C33 /* Build configuration list for PBXNativeTarget "FinderSyncExtension" */ = { 718 | isa = XCConfigurationList; 719 | buildConfigurations = ( 720 | D20DCF031E77520400A74C33 /* Debug */, 721 | D20DCF041E77520400A74C33 /* Release */, 722 | ); 723 | defaultConfigurationIsVisible = 0; 724 | defaultConfigurationName = Release; 725 | }; 726 | /* End XCConfigurationList section */ 727 | }; 728 | rootObject = D20DCEBE1E7751EF00A74C33 /* Project object */; 729 | } 730 | -------------------------------------------------------------------------------- /FinderGo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /FinderGo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /FinderGo.xcodeproj/xcshareddata/xcschemes/FinderGo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /FinderGo.xcodeproj/xcshareddata/xcschemes/FinderSyncExtension.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 6 | 9 | 10 | 16 | 22 | 23 | 24 | 30 | 36 | 37 | 38 | 39 | 40 | 45 | 46 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 70 | 74 | 75 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /FinderGo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // FinderGo 4 | // 5 | // Created by Khoa Pham on 13/03/2017. 6 | // Copyright © 2017 Fantageek. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | @NSApplicationMain 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | 14 | func applicationDidFinishLaunching(_ aNotification: Notification) { 15 | // Insert code here to initialize your application 16 | } 17 | 18 | func applicationWillTerminate(_ aNotification: Notification) { 19 | // Insert code here to tear down your application 20 | } 21 | 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /FinderGo/AppWorker.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppWorker.swift 3 | // FinderGo 4 | // 5 | // Created by Khoa Pham on 15/03/2017. 6 | // Copyright © 2017 Fantageek. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | struct AppWorker { 12 | 13 | func finderCurrentPath() -> String? { 14 | guard let scriptUrl = Bundle.main.url(forResource: "finderCurrentPath", withExtension: "scpt"), 15 | let string = try? String(contentsOf: scriptUrl) else { 16 | return nil 17 | } 18 | 19 | let script = NSAppleScript(source: string) 20 | return script?.executeAndReturnError(nil).stringValue 21 | } 22 | 23 | func findTerminal() -> String { 24 | return UserDefaults.standard.string(forKey: "terminal") ?? "iTerm" 25 | } 26 | 27 | func run() { 28 | guard let path = finderCurrentPath() else { 29 | return 30 | } 31 | 32 | let process = Process() 33 | let terminal = findTerminal() 34 | process.launchPath = "/usr/bin/open" 35 | process.arguments = ["-a", terminal, "\(path)"] 36 | 37 | process.launch() 38 | process.waitUntilExit() 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "icon_16@1x.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "icon_16@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "icon_32@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "icon_32@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "icon_128@1x.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "icon_128@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "icon_256@1x.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "icon_256@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "icon_512@1x.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "icon_512@2x.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_128@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_128@1x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_128@2x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_16@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_16@1x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_16@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_16@2x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_256@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_256@1x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_256@2x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_32@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_32@1x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_32@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_32@2x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_512@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_512@1x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/AppIcon.appiconset/icon_512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/AppIcon.appiconset/icon_512@2x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/barIcon.imageset/Bitmap@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/barIcon.imageset/Bitmap@1x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/barIcon.imageset/Bitmap@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/barIcon.imageset/Bitmap@2x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/barIcon.imageset/Bitmap@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/FinderGo/Assets.xcassets/barIcon.imageset/Bitmap@3x.png -------------------------------------------------------------------------------- /FinderGo/Assets.xcassets/barIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Bitmap@1x.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Bitmap@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Bitmap@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /FinderGo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | Default 511 | 512 | 513 | 514 | 515 | 516 | 517 | Left to Right 518 | 519 | 520 | 521 | 522 | 523 | 524 | Right to Left 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | Default 536 | 537 | 538 | 539 | 540 | 541 | 542 | Left to Right 543 | 544 | 545 | 546 | 547 | 548 | 549 | Right to Left 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | -------------------------------------------------------------------------------- /FinderGo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.4 21 | CFBundleVersion 22 | 1 23 | LSApplicationCategoryType 24 | public.app-category.productivity 25 | LSBackgroundOnly 26 | 27 | LSMinimumSystemVersion 28 | $(MACOSX_DEPLOYMENT_TARGET) 29 | LSUIElement 30 | 31 | NSAppleEventsUsageDescription 32 | Get current Finder path 33 | NSHumanReadableCopyright 34 | Copyright © 2017 Fantageek. All rights reserved. 35 | NSMainStoryboardFile 36 | Main 37 | NSPrincipalClass 38 | NSApplication 39 | 40 | 41 | -------------------------------------------------------------------------------- /FinderGo/Scripts/finderCurrentPath.scpt: -------------------------------------------------------------------------------- 1 | tell application "Finder" 2 | set cwd to POSIX path of ((target of front Finder window) as text) 3 | return cwd 4 | end tell 5 | -------------------------------------------------------------------------------- /FinderGo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // FinderGo 4 | // 5 | // Created by Khoa Pham on 13/03/2017. 6 | // Copyright © 2017 Fantageek. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class ViewController: NSViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | 16 | let worker = AppWorker() 17 | worker.run() 18 | 19 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.01) { 20 | NSApplication.shared.terminate(self) 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /FinderGoTests/FinderGoTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FinderGoTests.swift 3 | // FinderGoTests 4 | // 5 | // Created by Khoa Pham on 13/03/2017. 6 | // Copyright © 2017 Fantageek. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import FinderGo 11 | 12 | class FinderGoTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /FinderGoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.2.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /FinderGoUITests/FinderGoUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FinderGoUITests.swift 3 | // FinderGoUITests 4 | // 5 | // Created by Khoa Pham on 13/03/2017. 6 | // Copyright © 2017 Fantageek. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class FinderGoUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /FinderGoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.2.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /FinderSyncExtension/ExtensionWorker.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ExtensionWorker.swift 3 | // FinderGo 4 | // 5 | // Created by Khoa Pham on 18/03/2017. 6 | // Copyright © 2017 Fantageek. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | struct ExtensionWorker { 12 | 13 | let fileName: String 14 | let path: String 15 | 16 | init(path: String, fileName: String) { 17 | self.path = path 18 | self.fileName = fileName 19 | } 20 | 21 | var bundle: String { 22 | return Bundle(for: FinderSync.self).bundleIdentifier! 23 | } 24 | 25 | var scriptPath: URL? { 26 | return try? FileManager.default.url(for: .applicationScriptsDirectory, in: .userDomainMask, appropriateFor: nil, create: true) 27 | } 28 | 29 | func fileScriptPath(fileName: String) -> URL? { 30 | return scriptPath? 31 | .appendingPathComponent(fileName) 32 | .appendingPathExtension("scpt") 33 | } 34 | 35 | func run() { 36 | guard let filePath = fileScriptPath(fileName: fileName) else { 37 | return 38 | } 39 | 40 | guard FileManager.default.fileExists(atPath: filePath.path) else { 41 | openPanel() 42 | return 43 | } 44 | 45 | guard let script = try? NSUserAppleScriptTask(url: filePath) else { 46 | return 47 | } 48 | 49 | script.execute(completionHandler: nil) 50 | } 51 | 52 | func openPanel() { 53 | let panel = NSOpenPanel() 54 | panel.directoryURL = scriptPath 55 | panel.canChooseDirectories = true 56 | panel.canChooseFiles = false 57 | panel.prompt = "Select Script Folder" 58 | panel.message = "Please select the User > Library > Application Scripts > \(bundle) folder" 59 | 60 | panel.begin { result in 61 | guard result.rawValue == NSFileHandlingPanelOKButton, 62 | panel.url == self.scriptPath else { 63 | 64 | self.alert(message: "Script folder was not selected") 65 | return 66 | } 67 | 68 | let result = self.copy() 69 | if result { 70 | self.alert(message: "Done") 71 | } else { 72 | self.alert(message: "Fail") 73 | } 74 | } 75 | } 76 | 77 | func alert(message: String) { 78 | let alert = NSAlert() 79 | alert.messageText = "🐢 Finder Go" 80 | alert.informativeText = message 81 | alert.addButton(withTitle: "OK") 82 | 83 | alert.runModal() 84 | } 85 | 86 | func copy() -> Bool { 87 | let fileNames = ["terminal", "iterm", "hyper"] 88 | 89 | for fileName in fileNames { 90 | guard let path = Bundle(for: FinderSync.self).url(forResource: fileName, withExtension: "scpt"), 91 | let destinationPath = fileScriptPath(fileName: fileName) else { 92 | 93 | return false 94 | } 95 | 96 | do { 97 | try FileManager.default.copyItem(at: path, to: destinationPath) 98 | } catch { 99 | return false 100 | } 101 | } 102 | 103 | return true 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /FinderSyncExtension/FinderSync.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FinderSync.swift 3 | // FinderSyncExtension 4 | // 5 | // Created by Khoa Pham on 13/03/2017. 6 | // Copyright © 2017 Fantageek. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import FinderSync 11 | 12 | class FinderSync: FIFinderSync, NSMenuDelegate { 13 | 14 | override init() { 15 | super.init() 16 | 17 | NSLog("FinderSync() launched from %@", Bundle.main.bundlePath as NSString) 18 | } 19 | 20 | // MARK: - Primary Finder Sync protocol methods 21 | 22 | override func beginObservingDirectory(at url: URL) { 23 | // The user is now seeing the container's contents. 24 | // If they see it in more than one view at a time, we're only told once. 25 | NSLog("beginObservingDirectoryAtURL: %@", url.path as NSString) 26 | } 27 | 28 | 29 | override func endObservingDirectory(at url: URL) { 30 | // The user is no longer seeing the container's contents. 31 | NSLog("endObservingDirectoryAtURL: %@", url.path as NSString) 32 | } 33 | 34 | override func requestBadgeIdentifier(for url: URL) { 35 | NSLog("requestBadgeIdentifierForURL: %@", url.path as NSString) 36 | } 37 | 38 | // MARK: - Menu and toolbar item support 39 | 40 | override var toolbarItemName: String { 41 | return "FinderGo" 42 | } 43 | 44 | override var toolbarItemToolTip: String { 45 | return "FinderGo: Click the toolbar item for a menu." 46 | } 47 | 48 | override var toolbarItemImage: NSImage { 49 | return NSImage(named: "barIcon")! 50 | } 51 | 52 | override func menu(for menuKind: FIMenuKind) -> NSMenu { 53 | let menu = NSMenu(title: "") 54 | menu.delegate = self 55 | 56 | menu.addItem(withTitle: "iTerm", action: #selector(openiTerm(_:)), keyEquivalent: "") 57 | menu.addItem(withTitle: "Terminal", action: #selector(openTerminal(_:)), keyEquivalent: "") 58 | menu.addItem(withTitle: "Hyper", action: #selector(openHyper(_:)), keyEquivalent: "") 59 | 60 | return menu 61 | } 62 | 63 | // MARK: - NSMenuDelegate 64 | 65 | func menuWillOpen(_ menu: NSMenu) { 66 | guard let targetedUrl = FIFinderSyncController.default().targetedURL() else { 67 | return 68 | } 69 | 70 | let board = NSPasteboard.general 71 | board.setString(targetedUrl.path, forType: NSPasteboard.PasteboardType.string) 72 | } 73 | 74 | // MARK: - Action 75 | 76 | @IBAction func openiTerm(_ sender: AnyObject?) { 77 | run(fileName: "iterm") 78 | } 79 | 80 | @IBAction func openTerminal(_ sender: AnyObject?) { 81 | run(fileName: "terminal") 82 | } 83 | 84 | @IBAction func openHyper(_ sender: AnyObject?) { 85 | run(fileName: "hyper") 86 | } 87 | 88 | // MARK: - Script 89 | 90 | func run(fileName: String) { 91 | guard let targetedUrl = FIFinderSyncController.default().targetedURL() else { 92 | return 93 | } 94 | 95 | let worker = ExtensionWorker(path: targetedUrl.path, fileName: fileName) 96 | worker.run() 97 | } 98 | } 99 | 100 | -------------------------------------------------------------------------------- /FinderSyncExtension/FinderSyncExtension.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-write 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /FinderSyncExtension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | FinderGo 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 1.4 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | LSUIElement 26 | 27 | NSAppleEventsUsageDescription 28 | Get current Finder path 29 | NSExtension 30 | 31 | NSExtensionAttributes 32 | 33 | NSExtensionPointIdentifier 34 | com.apple.FinderSync 35 | NSExtensionPrincipalClass 36 | $(PRODUCT_MODULE_NAME).FinderSync 37 | 38 | NSHumanReadableCopyright 39 | Copyright © 2017 Fantageek. All rights reserved. 40 | NSPrincipalClass 41 | NSApplication 42 | 43 | 44 | -------------------------------------------------------------------------------- /FinderSyncExtension/Scripts/hyper.scpt: -------------------------------------------------------------------------------- 1 | tell application "Finder" 2 | set cwd to POSIX path of ((target of front Finder window) as text) 3 | do shell script "open -a Hyper " & quoted form of cwd 4 | end tell 5 | -------------------------------------------------------------------------------- /FinderSyncExtension/Scripts/iterm.scpt: -------------------------------------------------------------------------------- 1 | tell application "Finder" 2 | set cwd to POSIX path of ((target of front Finder window) as text) 3 | do shell script "open -a iTerm " & quoted form of cwd 4 | end tell 5 | -------------------------------------------------------------------------------- /FinderSyncExtension/Scripts/terminal.scpt: -------------------------------------------------------------------------------- 1 | tell application "Finder" 2 | set cwd to POSIX path of ((target of front Finder window) as text) 3 | do shell script "open -a Terminal " & quoted form of cwd 4 | end tell 5 | -------------------------------------------------------------------------------- /Images/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/Images/Icon.png -------------------------------------------------------------------------------- /Images/extension.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/Images/extension.png -------------------------------------------------------------------------------- /Images/go1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/Images/go1.gif -------------------------------------------------------------------------------- /Images/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/Images/screenshot2.png -------------------------------------------------------------------------------- /Images/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/FinderGo/b4bc1f1661642b140f25c8639c95b4a466470320/Images/toolbar.png -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Licensed under the **MIT** license 2 | 3 | > Copyright (c) 2015 Khoa Pham 4 | > 5 | > Permission is hereby granted, free of charge, to any person obtaining 6 | > a copy of this software and associated documentation files (the 7 | > "Software"), to deal in the Software without restriction, including 8 | > without limitation the rights to use, copy, modify, merge, publish, 9 | > distribute, sublicense, and/or sell copies of the Software, and to 10 | > permit persons to whom the Software is furnished to do so, subject to 11 | > the following conditions: 12 | > 13 | > The above copyright notice and this permission notice shall be 14 | > included in all copies or substantial portions of the Software. 15 | > 16 | > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | > CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 𝗙𝗶𝗻𝗱𝗲𝗿 𝗚𝗼 2 | 3 | Checkout https://indiegoodies.com/ 4 | 5 |
6 | 7 |
8 |
9 |
10 | 11 | ## Description 12 | 13 | - A macOS app and Finder Sync Extension to open Terminal, iTerm, Hyper from Finder 14 | - Support macOS 10.12 15 | 16 | ## How to install 17 | 18 | - Get the binary from https://github.com/onmyway133/FinderGo/releases 19 | 20 | ## How to use 21 | 22 | ![](Images/go1.gif) 23 | 24 | ### As a macOS application 25 | 26 | - Support `iTerm` for now 27 | 28 | #### How to use 29 | - Right click on app to open, because this is not from AppStore 30 | - Cmd+Drag app icon into Finder toolbar 31 | 32 | #### How to change default terminal 33 | 34 | Run either of these to change your default terminal that FinderGo uses 35 | 36 | ``` 37 | defaults write com.onmyway133.FinderGo terminal Terminal 38 | defaults write com.onmyway133.FinderGo terminal iTerm 39 | defaults write com.onmyway133.FinderGo terminal Hyper 40 | ``` 41 | 42 | #### How to change icon 43 | 44 | - Follow https://github.com/onmyway133/FinderGo/issues/7 45 | 46 | 47 | ### As a Finder Sync Extension 48 | 49 | - [x] Go to Terminal 50 | - [x] Go to iTerm 51 | - [x] Go to Hyper 52 | 53 |
54 | 55 |
56 |
57 |
58 | 59 | #### How to use 60 | 61 | - Because of sandbox, we need to copy scripts from `FinderSyncExtension/Scripts` in project to `/Library/Application Scripts/com.onmyway133.FinderGo.FinderSyncExtension` by running 62 | 63 | ```sh 64 | curl -fsSL https://raw.githubusercontent.com/onmyway133/FinderGo/master/install.sh | sh 65 | ``` 66 | 67 | - Check for `System Preferences` -> `Extensions` -> `Finder` to enable `FinderGo` if it is not enabled yet 68 | 69 | ![](Images/extension.png) 70 | 71 | - Right click on Finder toolbar -> `Customize Toolbar`, then Cmd+Drag `FinderGo` onto toolbar 72 | 73 | ![](Images/toolbar.png) 74 | 75 | ## Credit 76 | 77 | - Icon http://emojione.com/ 78 | 79 | ## Author 80 | 81 | Khoa Pham, onmyway133@gmail.com 82 | 83 | ## License 84 | 85 | **FinderGo** is available under the MIT license. See the [LICENSE](https://github.com/onmyway133/FinderGo/blob/master/LICENSE.md) file for more info. 86 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -euo pipefail 4 | 5 | iTerm=iterm.scpt 6 | terminal=terminal.scpt 7 | hyper=hyper.scpt 8 | 9 | DOWNLOAD_ITERM_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${iTerm} 10 | DOWNLOAD_TERMINAL_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${terminal} 11 | DOWNLOAD_HYPER_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${hyper} 12 | 13 | SCRIPT_DIR="${HOME}/Library/Application Scripts/com.onmyway133.FinderGo.FinderSyncExtension" 14 | 15 | mkdir -p "${SCRIPT_DIR}" 16 | curl $DOWNLOAD_ITERM_URI -o "${SCRIPT_DIR}/${iTerm}" 17 | curl $DOWNLOAD_TERMINAL_URI -o "${SCRIPT_DIR}/${terminal}" 18 | curl $DOWNLOAD_HYPER_URI -o "${SCRIPT_DIR}/${hyper}" 19 | --------------------------------------------------------------------------------