├── .gitignore ├── LICENSE ├── README.md ├── appcast.xml ├── assets ├── banner.png ├── export-200.gif └── sketchrunner.png └── wetransfer.sketchplugin └── Contents ├── Resources └── icon.png └── Sketch ├── WTSketch.framework ├── Headers ├── Modules ├── Resources ├── Versions │ ├── A │ │ ├── Headers │ │ │ ├── Sketch.h │ │ │ ├── WTSketch.h │ │ │ └── WTSketchClient.h │ │ ├── Modules │ │ │ └── module.modulemap │ │ ├── Resources │ │ │ ├── Info.plist │ │ │ └── WTOnboardingController.nib │ │ └── WTSketch │ └── Current └── WTSketch ├── WeTransfer Sketch.app └── Contents │ ├── Frameworks │ ├── WeTransfer.framework │ │ ├── Resources │ │ ├── Versions │ │ │ ├── A │ │ │ │ ├── Resources │ │ │ │ │ └── Info.plist │ │ │ │ ├── WeTransfer │ │ │ │ └── _CodeSignature │ │ │ │ │ └── CodeResources │ │ │ └── Current │ │ └── WeTransfer │ ├── libswiftAppKit.dylib │ ├── libswiftCore.dylib │ ├── libswiftCoreData.dylib │ ├── libswiftCoreFoundation.dylib │ ├── libswiftCoreGraphics.dylib │ ├── libswiftCoreImage.dylib │ ├── libswiftDarwin.dylib │ ├── libswiftDispatch.dylib │ ├── libswiftFoundation.dylib │ ├── libswiftIOKit.dylib │ ├── libswiftMetal.dylib │ ├── libswiftObjectiveC.dylib │ ├── libswiftQuartzCore.dylib │ ├── libswiftXPC.dylib │ └── libswiftos.dylib │ ├── Info.plist │ ├── MacOS │ └── WeTransfer Sketch │ ├── PkgInfo │ ├── Resources │ ├── AppIcon.icns │ ├── Assets.car │ ├── Base.lproj │ │ └── Main.storyboardc │ │ │ ├── Info.plist │ │ │ ├── MainMenu.nib │ │ │ ├── NSWindowController-B8D-0N-5wS.nib │ │ │ └── XfG-lQ-9wD-view-m2S-Jp-Qdl.nib │ └── Cartfile │ └── _CodeSignature │ └── CodeResources ├── manifest.json └── upload.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots/**/*.png 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | .DS_Store 65 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 WeTransfer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Archived: This project is no longer maintained and might not work anymore on the latest version of Sketch. 2 | 3 | # Turn artboards into a WeTransfer Link 4 | **The simplest way to send Sketch files around the world.
Simply hit `⌘+L` to share artboards or pages with a WeTransfer link.** 5 | 6 | ![Banner](assets/banner.png) 7 | 8 | --- 9 | 10 | ### Instructions: 11 | Ready to share your big ideas? [Install](#installation) the WeTransfer plugin and choose from the following: 12 | 13 | ##### Shortcut 14 | - Select the artboards or pages you want to share 15 | - Hit `⌘+L` 16 | - Copy the link share it with anyone 17 | 18 | ##### Menu bar 19 | - Select the artboards or pages you want to share 20 | - Go to “Plugins” in the menu bar 21 | - Select “WeTransfer” → “Share Selection” 22 | - Copy the link and share it with anyone 23 | 24 | ![Preview Gif](assets/export-200.gif) 25 | 26 | --- 27 | 28 | ### Installation 29 | #### Install with Sketch Runner 30 | With [Sketch Runner](http://www.sketchrunner.com), just go to the `install` command and search for `WeTransfer`. 31 | 32 | ![Sketch Runner Screenshot](assets/sketchrunner.png) 33 | 34 | #### Manual installation 35 | - Download the [latest release](../../releases) of the WeTransfer plugin 36 | - Double-click the zip file “wetransfer.sketchplugin.zip” 37 | - Open up “wetransfer.sketchplugin” 38 | - Start sharing! 39 | 40 | --- 41 | 42 | ### Contact: 43 | Feel free to send an email to developers@wetransfer.com with any questions, comments or feedback 44 | -------------------------------------------------------------------------------- /appcast.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WeTransfer 5 | https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/master/appcast.xml", 6 | Share artboards and pages via WeTransfer 7 | en 8 | 9 | Version 1 10 | 11 | 13 |
  • First release
  • 14 | 15 | ]]> 16 |
    17 | 18 |
    19 | 20 | Version 2 21 | 22 | 24 |
  • Support Sketch Running
  • 25 |
  • Improved appearance in menu
  • 26 |
  • Added pizazz to README 🌈 ✨
  • 27 | 28 | ]]> 29 |
    30 | 31 |
    32 | 33 | Version 3 34 | 35 | 37 |
  • Minor bugfixes
  • 38 | 39 | ]]> 40 |
    41 | 42 |
    43 |
    44 |
    -------------------------------------------------------------------------------- /assets/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/assets/banner.png -------------------------------------------------------------------------------- /assets/export-200.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/assets/export-200.gif -------------------------------------------------------------------------------- /assets/sketchrunner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/assets/sketchrunner.png -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Resources/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Resources/icon.png -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Modules: -------------------------------------------------------------------------------- 1 | Versions/Current/Modules -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/Headers/Sketch.h: -------------------------------------------------------------------------------- 1 | // 2 | // Sketch.h 3 | // WTSketch 4 | // 5 | // Created by Tom Lokhorst on 2017-08-28. 6 | // Copyright © 2017 Q42. All rights reserved. 7 | // 8 | 9 | #ifndef Sketch_h 10 | #define Sketch_h 11 | 12 | #endif /* Sketch_h */ 13 | 14 | @import Cocoa; 15 | 16 | @interface BCOutlineViewDataController 17 | @property(retain, nonatomic) NSArray *cachedNodesChildren; 18 | - (BOOL)isNodeSelected:(id)node; 19 | @end 20 | 21 | @interface BCPageListViewController: NSObject 22 | @property(retain, nonatomic) BCOutlineViewDataController *dataController; 23 | @end 24 | 25 | @interface BCSideBarViewController: NSObject 26 | @property(retain, nonatomic) BCPageListViewController *pageListViewController; 27 | @end 28 | 29 | #pragma mark - 30 | #pragma mark MSLayer 31 | 32 | 33 | @interface MSLayer: NSObject 34 | @property(copy, nonatomic) NSString *objectID; 35 | @property(copy, nonatomic) NSString *name; 36 | @property(readonly, nonatomic) NSString *displayName; 37 | @property(readonly, nonatomic) BOOL isSelected; 38 | 39 | - (void)removeFromParent; 40 | - (id)allSymbolInstancesInChildren; 41 | @end 42 | 43 | #pragma mark - 44 | #pragma mark MSLayerArray 45 | 46 | @interface MSLayerArray: NSObject 47 | @property(copy, nonatomic) NSArray *layers; 48 | @end 49 | 50 | #pragma mark - 51 | #pragma mark MSLayerGroup 52 | 53 | @interface MSLayerGroup: MSLayer 54 | @property(readonly, nonatomic) NSArray *layers; 55 | @end 56 | 57 | #pragma mark - 58 | #pragma mark MSPage 59 | 60 | @interface MSPage: MSLayerGroup 61 | @property(readonly, nonatomic) NSArray *symbols; 62 | @end 63 | 64 | #pragma mark - 65 | #pragma mark MSDocument 66 | 67 | @interface MSDocument: NSDocument 68 | 69 | @property(copy, nonatomic) MSLayerArray *selectedLayers; 70 | @property(retain, nonatomic) NSMutableDictionary *mutableUIMetadata; 71 | @property(retain, nonatomic) BCSideBarViewController *sidebarController; 72 | @property(retain, nonatomic) NSWindow *documentWindow; 73 | - (void)showMessage:(NSString *)message; 74 | - (NSArray *)pages; 75 | - (void)removePage:(MSPage *)page; 76 | 77 | @end 78 | 79 | #pragma mark - 80 | #pragma mark MSSymbolInstance 81 | 82 | @interface MSSymbolInstance: MSLayer 83 | - (MSLayer *)symbolMaster; 84 | @end 85 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/Headers/WTSketch.h: -------------------------------------------------------------------------------- 1 | // 2 | // WTSketch.h 3 | // WTSketch 4 | // 5 | // Created by Tom Lokhorst on 2017-08-28. 6 | // Copyright © 2017 Q42. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for WTSketch. 12 | FOUNDATION_EXPORT double WTSketchVersionNumber; 13 | 14 | //! Project version string for WTSketch. 15 | FOUNDATION_EXPORT const unsigned char WTSketchVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | #import 20 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/Headers/WTSketchClient.h: -------------------------------------------------------------------------------- 1 | // 2 | // WTSketchClient.h 3 | // WTSketch 4 | // 5 | // Created by Sander de Vos on 29/08/2017. 6 | // Copyright © 2017 Q42. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class MSDocument, MSContext; 12 | 13 | @interface WTSketchClient : NSObject 14 | 15 | + (void)uploadSelection:(MSDocument *)document pluginRoot:(NSString *)pluginRoot; 16 | + (void)showOnboardingIfNeeded; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module WTSketch { 2 | umbrella header "WTSketch.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17E202 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | WTSketch 11 | CFBundleIdentifier 12 | com.wetransfer.WTSketch 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | WTSketch 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 1 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 9F1027a 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 17E189 35 | DTSDKName 36 | macosx10.13 37 | DTXcode 38 | 0940 39 | DTXcodeBuild 40 | 9F1027a 41 | NSHumanReadableCopyright 42 | Copyright © 2018 WeTransfer. All rights reserved. 43 | 44 | 45 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/Resources/WTOnboardingController.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/Resources/WTOnboardingController.nib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/WTSketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/A/WTSketch -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WTSketch.framework/WTSketch: -------------------------------------------------------------------------------- 1 | Versions/Current/WTSketch -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/WeTransfer.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/WeTransfer.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17G65 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | WeTransfer 11 | CFBundleIdentifier 12 | com.wetransfer.WeTransfer-Swift-SDK 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | WeTransfer 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 1 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 9F2000 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 17E189 35 | DTSDKName 36 | macosx10.13 37 | DTXcode 38 | 0941 39 | DTXcodeBuild 40 | 9F2000 41 | UIDeviceFamily 42 | 43 | 1 44 | 2 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/WeTransfer.framework/Versions/A/WeTransfer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/WeTransfer.framework/Versions/A/WeTransfer -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/WeTransfer.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | NljXbnD9kr2zqxDjTHfQMe1RSwg= 10 | 11 | 12 | files2 13 | 14 | Resources/Info.plist 15 | 16 | hash 17 | 18 | NljXbnD9kr2zqxDjTHfQMe1RSwg= 19 | 20 | hash2 21 | 22 | KBxS/F1vTfhdaBQmdBF6MDk4BRuN7xjIaZO6GGGDwQs= 23 | 24 | 25 | 26 | rules 27 | 28 | ^Resources/ 29 | 30 | ^Resources/.*\.lproj/ 31 | 32 | optional 33 | 34 | weight 35 | 1000 36 | 37 | ^Resources/.*\.lproj/locversion.plist$ 38 | 39 | omit 40 | 41 | weight 42 | 1100 43 | 44 | ^Resources/Base\.lproj/ 45 | 46 | weight 47 | 1010 48 | 49 | ^version.plist$ 50 | 51 | 52 | rules2 53 | 54 | .*\.dSYM($|/) 55 | 56 | weight 57 | 11 58 | 59 | ^(.*/)?\.DS_Store$ 60 | 61 | omit 62 | 63 | weight 64 | 2000 65 | 66 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 67 | 68 | nested 69 | 70 | weight 71 | 10 72 | 73 | ^.* 74 | 75 | ^Info\.plist$ 76 | 77 | omit 78 | 79 | weight 80 | 20 81 | 82 | ^PkgInfo$ 83 | 84 | omit 85 | 86 | weight 87 | 20 88 | 89 | ^Resources/ 90 | 91 | weight 92 | 20 93 | 94 | ^Resources/.*\.lproj/ 95 | 96 | optional 97 | 98 | weight 99 | 1000 100 | 101 | ^Resources/.*\.lproj/locversion.plist$ 102 | 103 | omit 104 | 105 | weight 106 | 1100 107 | 108 | ^Resources/Base\.lproj/ 109 | 110 | weight 111 | 1010 112 | 113 | ^[^/]+$ 114 | 115 | nested 116 | 117 | weight 118 | 10 119 | 120 | ^embedded\.provisionprofile$ 121 | 122 | weight 123 | 20 124 | 125 | ^version\.plist$ 126 | 127 | weight 128 | 20 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/WeTransfer.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/WeTransfer.framework/WeTransfer: -------------------------------------------------------------------------------- 1 | Versions/Current/WeTransfer -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftAppKit.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftAppKit.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCore.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCore.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreData.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreData.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreFoundation.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreFoundation.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreGraphics.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreGraphics.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreImage.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftCoreImage.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftDarwin.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftDarwin.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftDispatch.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftDispatch.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftFoundation.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftFoundation.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftIOKit.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftIOKit.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftMetal.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftMetal.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftObjectiveC.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftObjectiveC.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftQuartzCore.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftQuartzCore.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftXPC.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftXPC.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftos.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Frameworks/libswiftos.dylib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17G65 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | WeTransfer Sketch 11 | CFBundleIconFile 12 | AppIcon 13 | CFBundleIconName 14 | AppIcon 15 | CFBundleIdentifier 16 | com.wetransfer.sketch-plugin 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | WeTransfer Sketch 21 | CFBundlePackageType 22 | APPL 23 | CFBundleShortVersionString 24 | 1.0.1 25 | CFBundleSupportedPlatforms 26 | 27 | MacOSX 28 | 29 | CFBundleVersion 30 | 3 31 | DTCompiler 32 | com.apple.compilers.llvm.clang.1_0 33 | DTPlatformBuild 34 | 9F2000 35 | DTPlatformVersion 36 | GM 37 | DTSDKBuild 38 | 17E189 39 | DTSDKName 40 | macosx10.13 41 | DTXcode 42 | 0941 43 | DTXcodeBuild 44 | 9F2000 45 | LSMinimumSystemVersion 46 | 10.11 47 | LSUIElement 48 | 49 | NSHumanReadableCopyright 50 | Copyright © 2018 WeTransfer. All rights reserved. 51 | NSMainStoryboardFile 52 | Main 53 | NSPrincipalClass 54 | NSApplication 55 | 56 | 57 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/MacOS/WeTransfer Sketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/MacOS/WeTransfer Sketch -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/AppIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/AppIcon.icns -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Assets.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Assets.car -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/Info.plist -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/MainMenu.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/MainMenu.nib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/2be21126b218f800ce0a3aeb5f4f6c86716ddf43/wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/Resources/Cartfile: -------------------------------------------------------------------------------- 1 | github "WeTransfer/WeTransfer-Swift-SDK" 2 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/WeTransfer Sketch.app/Contents/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/AppIcon.icns 8 | 9 | bMefIbNfa7BsvNidiQG/yeZpEE4= 10 | 11 | Resources/Assets.car 12 | 13 | pduQeZNs+V6t2dskPpFKhdLtRIY= 14 | 15 | Resources/Base.lproj/Main.storyboardc/Info.plist 16 | 17 | Xg0u0zvlyKvsgE3jSokiGgjcepk= 18 | 19 | Resources/Base.lproj/Main.storyboardc/MainMenu.nib 20 | 21 | jLbxw1vrwhvSB5kie79dwvFyeE4= 22 | 23 | Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib 24 | 25 | BsSermNIDOf5oCfj6SGzsIV+P7A= 26 | 27 | Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib 28 | 29 | TfMPXBFYSGWFcJGjdnqMvs3L8qU= 30 | 31 | Resources/Cartfile 32 | 33 | kFNgLglTjPMYAhYTkFpALjbit9A= 34 | 35 | 36 | files2 37 | 38 | Frameworks/WeTransfer.framework 39 | 40 | cdhash 41 | 42 | 2A+ud4qEV+0IPrD/V1zQsim/zyg= 43 | 44 | requirement 45 | cdhash H"934e885e06863c374acfdc9cbf88e000e2b67fea" or cdhash H"d80fae778a8457ed083eb0ff575cd0b229bfcf28" 46 | 47 | Frameworks/libswiftAppKit.dylib 48 | 49 | cdhash 50 | 51 | DBjPEGnRqxqEC1m9bJufhOu+CKQ= 52 | 53 | requirement 54 | cdhash H"c7be808836ecb622c13c1760e0fce71089350f17" or cdhash H"0c18cf1069d1ab1a840b59bd6c9b9f84ebbe08a4" 55 | 56 | Frameworks/libswiftCore.dylib 57 | 58 | cdhash 59 | 60 | apSrio+I+G7R74jEiOh/JTmrQaE= 61 | 62 | requirement 63 | cdhash H"c266af82a780e8ade7f704f2dea37d61bbcc6757" or cdhash H"6a94ab8a8f88f86ed1ef88c488e87f2539ab41a1" 64 | 65 | Frameworks/libswiftCoreData.dylib 66 | 67 | cdhash 68 | 69 | hfagPqzC5LPZ5LONyaZfNBaUm3c= 70 | 71 | requirement 72 | cdhash H"39b71d246336dda563dd75a507a09e3002b26d21" or cdhash H"85f6a03eacc2e4b3d9e4b38dc9a65f3416949b77" 73 | 74 | Frameworks/libswiftCoreFoundation.dylib 75 | 76 | cdhash 77 | 78 | sgcDTaTM8G6kwsnLUT/MOhuGaHA= 79 | 80 | requirement 81 | cdhash H"8106f04e785b5690e0589fff3d39b55ed8fe85ae" or cdhash H"b207034da4ccf06ea4c2c9cb513fcc3a1b866870" 82 | 83 | Frameworks/libswiftCoreGraphics.dylib 84 | 85 | cdhash 86 | 87 | W3HLTPykamAABwCdjkQGA6Xr/2Y= 88 | 89 | requirement 90 | cdhash H"de030ab9fc160daf2a8c00e555b513e1138ac249" or cdhash H"5b71cb4cfca46a600007009d8e440603a5ebff66" 91 | 92 | Frameworks/libswiftCoreImage.dylib 93 | 94 | cdhash 95 | 96 | NEH/A8aCX775pnNJcc1vuu8Vsho= 97 | 98 | requirement 99 | cdhash H"3cb79c893767bfd60991d5abc5b4cf9c06a69b50" or cdhash H"3441ff03c6825fbef9a6734971cd6fbaef15b21a" 100 | 101 | Frameworks/libswiftDarwin.dylib 102 | 103 | cdhash 104 | 105 | qb9FovJjxdV++UIhE/aNB4pYgcI= 106 | 107 | requirement 108 | cdhash H"75f89f542f1d2318b34b9a91bfec8a83b8055d9f" or cdhash H"a9bf45a2f263c5d57ef9422113f68d078a5881c2" 109 | 110 | Frameworks/libswiftDispatch.dylib 111 | 112 | cdhash 113 | 114 | Y4EE8/yRsS0hJ9kmvnwOu7Bj0ZY= 115 | 116 | requirement 117 | cdhash H"31f6c586b511bb7989fce51477b2452788f41dfd" or cdhash H"638104f3fc91b12d2127d926be7c0ebbb063d196" 118 | 119 | Frameworks/libswiftFoundation.dylib 120 | 121 | cdhash 122 | 123 | oJlV7LmAASBQRef8ioOmQmCzwzE= 124 | 125 | requirement 126 | cdhash H"0dd15f2eb670fe5f4a254a4d95caec5f4d9d627b" or cdhash H"a09955ecb98001205045e7fc8a83a64260b3c331" 127 | 128 | Frameworks/libswiftIOKit.dylib 129 | 130 | cdhash 131 | 132 | B/bgTK/Al6YTAm6+yvw5zVKnDa4= 133 | 134 | requirement 135 | cdhash H"11c22d4daca1f5417363b34a6d10808d30ff2792" or cdhash H"07f6e04cafc097a613026ebecafc39cd52a70dae" 136 | 137 | Frameworks/libswiftMetal.dylib 138 | 139 | cdhash 140 | 141 | gbxFzncafw7IvckAsKUJ1yd44WI= 142 | 143 | requirement 144 | cdhash H"69c6edc1f12230daf0fb38b51f37d5142d3547a3" or cdhash H"81bc45ce771a7f0ec8bdc900b0a509d72778e162" 145 | 146 | Frameworks/libswiftObjectiveC.dylib 147 | 148 | cdhash 149 | 150 | 3li0eC8GNd1QVNsx3K35siWI49Y= 151 | 152 | requirement 153 | cdhash H"9ce035908d49cfff0c4b77df586ff08428de3909" or cdhash H"de58b4782f0635dd5054db31dcadf9b22588e3d6" 154 | 155 | Frameworks/libswiftQuartzCore.dylib 156 | 157 | cdhash 158 | 159 | wW2K4U2glXQWbUriUFCRK527fg0= 160 | 161 | requirement 162 | cdhash H"bbee3034886cf03219fd0d16a16826be5f9ece2b" or cdhash H"c16d8ae14da09574166d4ae25050912b9dbb7e0d" 163 | 164 | Frameworks/libswiftXPC.dylib 165 | 166 | cdhash 167 | 168 | 8jB4rG+k8Ho3dDTje/fBsqi1QmA= 169 | 170 | requirement 171 | cdhash H"cb4e3967e6821957951079f9bf280755f4e1f1e8" or cdhash H"f23078ac6fa4f07a377434e37bf7c1b2a8b54260" 172 | 173 | Frameworks/libswiftos.dylib 174 | 175 | cdhash 176 | 177 | vw20ixCc1wZTSd0aBciflTzy9Tk= 178 | 179 | requirement 180 | cdhash H"fe9840a920f83e7b1262ee1177bb7dffc7bc7801" or cdhash H"bf0db48b109cd7065349dd1a05c89f953cf2f539" 181 | 182 | Resources/AppIcon.icns 183 | 184 | hash 185 | 186 | bMefIbNfa7BsvNidiQG/yeZpEE4= 187 | 188 | hash2 189 | 190 | 8X8i3VXx8vUHzvdEd/LrAHotQnDuis2cNmE7SulIN2s= 191 | 192 | 193 | Resources/Assets.car 194 | 195 | hash 196 | 197 | pduQeZNs+V6t2dskPpFKhdLtRIY= 198 | 199 | hash2 200 | 201 | r8P7nfNuKusvqDPciaNjahoJrq0yKESza7mzqmHAEcU= 202 | 203 | 204 | Resources/Base.lproj/Main.storyboardc/Info.plist 205 | 206 | hash 207 | 208 | Xg0u0zvlyKvsgE3jSokiGgjcepk= 209 | 210 | hash2 211 | 212 | /oOp2chSC/Lt2I1MUHRkFPqYbWxOQD6Q8ewf8JiBZnU= 213 | 214 | 215 | Resources/Base.lproj/Main.storyboardc/MainMenu.nib 216 | 217 | hash 218 | 219 | jLbxw1vrwhvSB5kie79dwvFyeE4= 220 | 221 | hash2 222 | 223 | /o3h+umHGeFvin7fLnIvFm1ePHkktaov/8UMmMoe6dQ= 224 | 225 | 226 | Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib 227 | 228 | hash 229 | 230 | BsSermNIDOf5oCfj6SGzsIV+P7A= 231 | 232 | hash2 233 | 234 | peUPO4+KnwNg1Hi79GApuY4krO0TjsqenBC1red08Lg= 235 | 236 | 237 | Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib 238 | 239 | hash 240 | 241 | TfMPXBFYSGWFcJGjdnqMvs3L8qU= 242 | 243 | hash2 244 | 245 | Q7U0Ue/tLMteamK6NJYReBeyDNx1apD9DZ8Q2BBBB8c= 246 | 247 | 248 | Resources/Cartfile 249 | 250 | hash 251 | 252 | kFNgLglTjPMYAhYTkFpALjbit9A= 253 | 254 | hash2 255 | 256 | Tb+1YnLIWU5aqicOev8ObZsS5dHlCiqvzzJxt7EeJmY= 257 | 258 | 259 | 260 | rules 261 | 262 | ^Resources/ 263 | 264 | ^Resources/.*\.lproj/ 265 | 266 | optional 267 | 268 | weight 269 | 1000 270 | 271 | ^Resources/.*\.lproj/locversion.plist$ 272 | 273 | omit 274 | 275 | weight 276 | 1100 277 | 278 | ^Resources/Base\.lproj/ 279 | 280 | weight 281 | 1010 282 | 283 | ^version.plist$ 284 | 285 | 286 | rules2 287 | 288 | .*\.dSYM($|/) 289 | 290 | weight 291 | 11 292 | 293 | ^(.*/)?\.DS_Store$ 294 | 295 | omit 296 | 297 | weight 298 | 2000 299 | 300 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 301 | 302 | nested 303 | 304 | weight 305 | 10 306 | 307 | ^.* 308 | 309 | ^Info\.plist$ 310 | 311 | omit 312 | 313 | weight 314 | 20 315 | 316 | ^PkgInfo$ 317 | 318 | omit 319 | 320 | weight 321 | 20 322 | 323 | ^Resources/ 324 | 325 | weight 326 | 20 327 | 328 | ^Resources/.*\.lproj/ 329 | 330 | optional 331 | 332 | weight 333 | 1000 334 | 335 | ^Resources/.*\.lproj/locversion.plist$ 336 | 337 | omit 338 | 339 | weight 340 | 1100 341 | 342 | ^Resources/Base\.lproj/ 343 | 344 | weight 345 | 1010 346 | 347 | ^[^/]+$ 348 | 349 | nested 350 | 351 | weight 352 | 10 353 | 354 | ^embedded\.provisionprofile$ 355 | 356 | weight 357 | 20 358 | 359 | ^version\.plist$ 360 | 361 | weight 362 | 20 363 | 364 | 365 | 366 | 367 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WeTransfer", 3 | "description": "Share artboards and pages via WeTransfer", 4 | "author": "WeTransfer", 5 | "version": "3", 6 | "identifier": "com.wetransfer.wetransfer-sketch", 7 | "compatibleVersion": "42", 8 | "bundleVersion": 3, 9 | "icon": "icon.png", 10 | "appcast": "https://raw.githubusercontent.com/WeTransfer/Sketch-Plugin/master/appcast.xml", 11 | "commands": [ 12 | { 13 | "name": "Share Selection", 14 | "identifier": "upload_selection", 15 | "description": "Transfer selected artboards and/or pages via WeTransfer", 16 | "icon": "icon.png", 17 | "shortcut": "cmd l", 18 | "script": "upload.js", 19 | "handler": "uploadSelection" 20 | } 21 | ], 22 | "menu": { 23 | "title": "WeTransfer", 24 | "items": [ 25 | "upload_selection" 26 | ] 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /wetransfer.sketchplugin/Contents/Sketch/upload.js: -------------------------------------------------------------------------------- 1 | function uploadSelection(context) { 2 | var scriptPath = context.scriptPath; 3 | var pluginRoot = [scriptPath stringByDeletingLastPathComponent]; 4 | 5 | initFramework(context, "WTSketch"); 6 | WTSketchClient.uploadSelection_pluginRoot(context.document, pluginRoot) 7 | } 8 | 9 | function initFramework(context, frameworkName) { 10 | var scriptPath = context.scriptPath; 11 | var pluginRoot = [scriptPath stringByDeletingLastPathComponent]; 12 | 13 | var mocha = [Mocha sharedRuntime]; 14 | if (NSClassFromString(frameworkName) == null) { 15 | if (![mocha loadFrameworkWithName:frameworkName inDirectory:pluginRoot]) { 16 | log('An error ocurred while loading the ' + frameworkName + ' Framework.'); 17 | return; 18 | } 19 | } 20 | log('Loaded ' + frameworkName + ' Framework') 21 | } --------------------------------------------------------------------------------