Reputation: 523
I am trying to create a Finder Sync Extension,in yosemite to show badge in files and folder.
I am on the move, but i have no idea how to turn off extension(remove from extensions list in preferences) when my containing application terminate. Any help is appreciated.
Upvotes: 0
Views: 555
Reputation: 336
code to remove from extensions list in preferences
pluginkit -r "/Applications/App-name/Contents/Plugins/extension-name.appex"
Upvotes: 2
Reputation: 859
Try it..
Reload Directory in Finder
// Reload Finder (change the word directory to file if updating file)
NSAppleScript * update = [[NSAppleScript alloc] initWithSource:[NSString stringWithFormat:@"tell application \"Finder\" to update POSIX directory \"%@\"",path]];
[update executeAndReturnError:nil];
Code to Enable Extension (bundle ID)
system("pluginkit -e use -i com.xyz.finderExt")
Code to Disable Extension (bundle ID)
system("pluginkit -e ignore -i com.xyz.finderExt")
Upvotes: 3