Skip to content

Instantly share code, notes, and snippets.

Last active May 26, 2018 07:35
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Launch Calc migrationTool plugin
// demoClass.m
// testExampleBundle
// Created by Chris Ross on 4/17/18.
// Copyright © 2018 Void. All rights reserved.
// Need to add references to the SystemMigration and SystemMigrationUtils private frameworks.
// You may need to add header files from both as well using class-dump.
#import <Foundation/Foundation.h>
#import <objc/objc.h>
#import "SMConfMigratorPlugin.h"
@interface CustomTestPlugin : SMConfMigratorPlugin
@implementation CustomTestPlugin
return 10;
NSTask *Task = [[NSTask alloc] init];
[Task setLaunchPath:@"/bin/bash"];
NSArray *args = [NSArray arrayWithObjects:@"-l",
@"open /Applications/", //Assuming git is the launch path you want to run
[Task setArguments:args];
[Task launch];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment