pluginkit

[OneDrive]OneDrive をリセットできませんでした

エラーメッセージ
OneDrive をリセットできませんでした
システム コンポーネントにより OneDrive の起動が妨げられています。Mac を再起動して、もう一度やり直してください。



OneDrive.appのプラグイン
OneDrive File Provider.appex
FinderSync.appexのどちらかが何らかの理由で動作不良になっている場合の例
あくまでも例です。他の原因もあります。十分に検討してから対応開始してください


事前準備
OneDriveフォルダ内を全部バックアップ
-->WEB
1:アカウントの切断(OneDrive>>基本設定>>アカウント)
-->アプリも終了
2:機能拡張切断
/usr/bin/pluginkit -r "/Applications/OneDrive.app/Contents/PlugIns/FinderSync.appex"
/usr/bin/pluginkit -r "/Applications/OneDrive.app/Contents/PlugIns/OneDrive File Provider.appex"
3:アプリケーション削除
/Applications/OneDrive.app ゴミ箱へ
4:設定削除
$HOME/Library/Group Containers/UBF8T346G9.OneDriveStandaloneSuite
$HOME/Library/Group Containers/UBF8T346G9.OfficeOneDriveSyncIntegration
留意
$HOME/Library/Group Containers/UBF8T346G9.OneDriveStandaloneSuite/OneDrive.noindex
実体があるようで、これは実体ではない取っておいても無駄
事前準備でのバックアップは必須
5:ゴミ箱空に(しなくてもOK)
再起動後にインストール再設定で復旧する

|

[mobileconfig]com.apple.NSExtension

AllowedExtensions

DeniedExtensions の違いのみ

ダウンロード - com.apple.nsextension.zip



<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>


    <key>PayloadContent</key>

    <array>

        <dict>


            <key>AllowedExtensions</key>

            <array>

                <string>com.box.desktop.findersyncext</string>

                <string>com.box.desktop.boxfileprovider</string>

                <string>com.adobe.accmac.ACCFinderSync</string>

                

            </array>


            <key>DeniedExtensions</key>

            <array>

                <string>jp.naver.line.mac.ShareExt</string>

            </array>



            <key>PayloadDisplayName</key>

            <string>com.apple.NSExtension</string>

            <key>PayloadIdentifier</key>

            <string>com.apple.NSExtension.37E39FD3-C74C-45CE-B75E-AB09D240957A</string>

            <key>PayloadType</key>

            <string>com.apple.NSExtension</string>

            <key>PayloadUUID</key>

            <string>F84A1D78-7E56-4B7E-850F-10444DD28834</string>

            <key>PayloadVersion</key>

            <integer>1</integer>

        </dict>

    </array>

    <key>PayloadDescription</key>

    <string>com.apple.NSExtension</string>

    <key>PayloadDisplayName</key>

    <string>com.apple.NSExtension</string>

        <key>ConsentText</key>

    <dict>

        <key>default</key>

        <string>com.apple.NSExtension</string>

    </dict>

    <key>PayloadIdentifier</key>

    <string>61AD84B8-19E9-4DD0-B982-87FD6C24B40C</string>

    <key>PayloadOrganization</key>

    <string>com.apple.NSExtension</string>

    <key>PayloadScope</key>

    <string>System</string>

    <key>PayloadType</key>

    <string>Configuration</string>

    <key>PayloadUUID</key>

    <string>E1539E71-C020-40E0-B1D8-64B8278B3C7C</string>

    <key>PayloadVersion</key>

    <integer>1</integer>

    <key>TargetDeviceType</key>

    <integer>5</integer>

</dict>

</plist>


|

[appex]プラグインの情報を取得する

[pluginkit]Finder機能拡張関連
https://quicktimer.cocolog-nifty.com/icefloe/2022/04/post-c04772.html
必要な項目を取得するだけ



#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
##自分環境がos12なので2.8にしているだけです
use AppleScript version "2.8"
use framework "Foundation"
use scripting additions

####選択ダイアログ
set aliasFile to (choose file with prompt "アプリケーションを選んでください" default location (path to applications folder from local domain) of type {"com.apple.application-bundle"} without showing package contents, multiple selections allowed and invisibles)


set aliasFilePath to aliasFile as alias

set strFilePath to POSIX path of aliasFilePath as text

set strPluginDir to "Contents/PlugIns/"

set strPluginPath to ("" & strFilePath & strPluginDir & "") as text

set strCommandText to ("ls -1 \"" & strPluginPath & "\"") as text
try
set strResponcet to do shell script strCommandText
on error
return "プラグインはありません"
end try
set AppleScript's text item delimiters to "\r"
set listAppex to every text item of strResponcet

set numCntAppex to count of listAppex

set strPromptText to ("" & numCntAppex & "つのAppexが見つかりました") as text

try
set objResponse to (choose from list listAppex with title "選んでください" with prompt strPromptText default items (item 1 of listAppex) OK button name "OK" cancel button name "キャンセル" without multiple selections allowed and empty selection allowed)
on error
log "エラーしました"
return
end try
if objResponse is false then
return
end if

set theResponse to (objResponse) as text

set strAppexPath to ("" & strPluginPath & theResponse & "") as text

set strInfoPath to ("" & strAppexPath & "/Contents/Info.plist") as text

set strCommandText to ("defaults read \"" & strInfoPath & "\" CFBundleIdentifier") as text
set strBundleIdentifier to do shell script strCommandText


set strPromptText to ("/usr/bin/pluginkit\n" & strAppexPath & "\n" & strBundleIdentifier & "\n") as text

set aliasIconPath to POSIX file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" as alias
set theResponse to 2 as number
try
set objResponse to (display dialog ("/usr/bin/pluginkit -r \n/usr/bin/pluginkit -a \n/usr/bin/pluginkit -e ignore -i\n/usr/bin/pluginkit -e use -i ") with title "取得データ" default answer strPromptText buttons {"OK", "キャンセル"} default button "OK" cancel button "キャンセル" with icon aliasIconPath giving up after 20 without hidden answer)
on error
log "エラーしました"
return
end try

|

[pluginkit]Finder機能拡張

/usr/bin/pluginkit
20220402172013_1280x588



一覧
/usr/bin/pluginkit -mA

sh-3.2$ 

sh-3.2$  /usr/bin/pluginkit -mA

+    com.skitch.skitch.SkitchMacPhotoEditing(2.9)

     com.apple.diagnosticextensions.osx.wifi(1.0)

     com.apple.TranslationUIServices.TranslationUIService(1.0)

+    com.apple.mobileslideshow.photospicker(1.0)

     com.apple.DiagnosticExtensions.sysdiagnose(1.0)

     com.apple.diagnosticextensions.osx.syslog(1.0)

     com.evernote.Evernote.shareext(10.34.4)

+    com.apple.VoiceMemos.SpotlightIndexExtension(2.3)




一覧:詳細
パスが出るの削除等する場合はこれ
/usr/bin/pluginkit -mAvvv

sh-3.2$ 

sh-3.2$ pluginkit -mAvvv

+    com.skitch.skitch.SkitchMacPhotoEditing(2.9)

            Path = /Applications/Skitch.app/Contents/PlugIns/SkitchMacPhotoEditing.appex

            UUID = CC648A9E-4689-48C3-B2E0-939AB4C58D80

      Timestamp = 2022-04-01 10:09:50 +0000

            SDK = com.apple.photo-editing

  Parent Bundle = /Applications/Skitch.app

    Display Name = Skitch Markup

      Short Name = SkitchMacPhotoEditing

    Parent Name = Skitch




削除
Finder機能拡張と写真編集等は別のappexファイルなので
全部削除するなら個別に削除
対象の『機能』が分からない場合は注意が必要
/usr/bin/pluginkit -r パス
Finder機能拡張

sh-3.2$ 

sh-3.2$ 

sh-3.2$  /usr/bin/pluginkit -r "/Applications/Skitch.app/Contents/PlugIns/SkitchMacAction.appex"

sh-3.2$ 

写真編集

sh-3.2$ 

sh-3.2$ 

sh-3.2$ /usr/bin/pluginkit -r "/Applications/Skitch.app/Contents/PlugIns/SkitchMacPhotoEditing.appex"

sh-3.2$ 



追加
/usr/bin/pluginkit -a

sh-3.2$ 

sh-3.2$ /usr/bin/pluginkit -a "/Applications/LINE.app/Contents/PlugIns/ShareExt.appex"

sh-3.2$ 



有効化
/usr/bin/pluginkit -e use -i com.microsoft.onenote.mac.shareextension

sh-3.2$ 

sh-3.2$ /usr/bin/pluginkit -e use -i com.microsoft.onenote.mac.shareextension

sh-3.2$ 



無効化
/usr/bin/pluginkit -e ignore -i com.microsoft.onenote.mac.shareextension

sh-3.2$ 

sh-3.2$ 

sh-3.2$ /usr/bin/pluginkit -e ignore -i com.microsoft.onenote.mac.shareextension

sh-3.2$ 

sh-3.2$ 


|

その他のカテゴリー

Acrobat Acrobat Annotation Acrobat Dialog Acrobat Form Acrobat JS Acrobat Open Acrobat Plugin Acrobat python Acrobat Reader Acrobat Sequ Acrobat Stamps Admin Admin Account Admin Apachectl Admin configCode Admin Device Management Admin LaunchServices Admin Locationd Admin loginitem Admin Maintenance Admin Permission Admin Pkg Admin Power Management Admin Printer Admin SetUp Admin SMB Admin System Information Admin Tools Admin Users Admin Volumes Adobe Apple AppleScript AppleScript Guide AppleScript Accessibility AppleScript AppKit AppleScript Applications AppleScript AppStore AppleScript Archive AppleScript Attributes AppleScript Automator AppleScript AVAsset AppleScript AVconvert AppleScript AVFoundation AppleScript AVURLAsset AppleScript BackUp AppleScript Barcode AppleScript Bash AppleScript Basic AppleScript Basic Path AppleScript Bluetooth AppleScript BOX AppleScript Browser AppleScript Calendar AppleScript CD/DVD AppleScript Choose AppleScript Chrome AppleScript CIImage AppleScript CloudStorage AppleScript Color AppleScript com.apple.LaunchServices.OpenWith AppleScript Console AppleScript Contacts AppleScript CotEditor AppleScript CURL AppleScript current application AppleScript Date&Time AppleScript delimiters AppleScript Desktop AppleScript Device AppleScript Disk AppleScript do shell script AppleScript Dock AppleScript DropBox AppleScript eMail AppleScript Encode Decode AppleScript Error AppleScript EXIFData AppleScript ffmpeg AppleScript File AppleScript Finder AppleScript Firefox AppleScript Folder AppleScript Fonts AppleScript GIF AppleScript HTML AppleScript Icon AppleScript Illustrator AppleScript Image Events AppleScript Image2PDF AppleScript ImageOptim Applescript iWork AppleScript Javascript AppleScript Jedit AppleScript Json AppleScript Label AppleScript List AppleScript locationd AppleScript LRC AppleScript LSSharedFileList AppleScript m3u8 AppleScript MakePDF AppleScript Map AppleScript Math AppleScript Microsoft AppleScript Microsoft Edge AppleScript Microsoft Excel AppleScript Mobileconfig AppleScript Mouse AppleScript Movie AppleScript Music AppleScript NetWork AppleScript Notes AppleScript NSArray AppleScript NSBitmapImageRep AppleScript NSBundle AppleScript NSCFBoolean AppleScript NSCharacterSet AppleScript NSColor AppleScript NSColorList AppleScript NSData AppleScript NSDictionary AppleScript NSError AppleScript NSEvent AppleScript NSFileAttributes AppleScript NSFileManager AppleScript NSFont AppleScript NSFontManager AppleScript NSImage AppleScript NSIndex AppleScript NSKeyedArchiver AppleScript NSKeyedUnarchiver AppleScript NSLocale AppleScript NSMutableArray AppleScript NSMutableDictionary AppleScript NSMutableString AppleScript NSNotFound AppleScript NSNumber AppleScript NSOpenPanel AppleScript NSPasteboard AppleScript NSPDFImageRep AppleScript NSpoint AppleScript NSPredicate AppleScript NSRange AppleScript NSRegularExpression AppleScript NSRunningApplication AppleScript NSScreen AppleScript NSSize AppleScript NSString AppleScript NSStringCompareOptions AppleScript NSTask AppleScript NSTimeZone AppleScript NSURL AppleScript NSURL File AppleScript NSURLBookmark AppleScript NSURLComponents AppleScript NSURLResourceKey AppleScript NSUserDefaults AppleScript NSUUID AppleScript NSView AppleScript NSWorkspace AppleScript Numbers AppleScript OAuth AppleScript ObjC AppleScript OneDrive AppleScript Osax AppleScript PDF AppleScript PDFAnnotationWidget AppleScript PDFContext AppleScript PDFDisplayBox AppleScript PDFDocumentPermissions AppleScript PDFKit AppleScript PDFnUP AppleScript PDFOutline AppleScript Photos AppleScript Photoshop AppleScript Plist System Events AppleScript PostScript AppleScript prefPane AppleScript Preview AppleScript Python AppleScript QR AppleScript QR Decode AppleScript QuickLook AppleScript QuickTime AppleScript record AppleScript Regular Expression AppleScript Reminders AppleScript ReName AppleScript Repeat AppleScript RTF AppleScript Safari AppleScript SaveFile AppleScript ScreenCapture AppleScript ScreenSaver AppleScript Script Editor AppleScript Script Menu AppleScript Shortcuts AppleScript Shortcuts Events AppleScript Sort AppleScript Sound AppleScript Spotlight AppleScript SRT AppleScript StandardAdditions AppleScript stringByApplyingTransform AppleScript System Events AppleScript System Settings AppleScript TemporaryItems AppleScript Terminal AppleScript Text AppleScript Text CSV AppleScript Text TSV AppleScript TextEdit AppleScript Translate AppleScript Trash AppleScript Twitter AppleScript UI AppleScript Unit Conversion AppleScript UTType AppleScript valueForKeyPath AppleScript Video AppleScript VisionKit AppleScript Visual Studio Code AppleScript webarchive AppleScript webp AppleScript Wifi AppleScript XML AppleScript XML EPUB AppleScript XML OPML AppleScript XML Plist AppleScript XML RSS AppleScript XML SVG AppleScript XML TTML AppleScript XML webloc AppleScript YouTube AppleScript Zero Suppress Applications Barcode OnLine Tools CityCode Design iPhone List Logs lsappinfo Memo Music perl PlistBuddy pluginkit postalcode ReadMe SF Symbols character id SF Symbols Entity sips Skype Slack sqlite TCC Tools Typography Video Wacom zoom