Hey Folks,
I got annoyed with Safari today when I was trying to find out if a certain plugin was active.
I have 32 of the things installed, but I'm only running 10 of them.
Safari won't let you find or sort plugins in any sensible fashion, and as far as I know there's not a way to list them in such a way that you can copy the result. So I looked in the Safari Extensions folder and was surprised to find them all there. I figured there would be a main folder and a disabled folder - nyet.
I did find a fairly complex little plist though, and I was able to grab the relevant info from it after some effort:
------------------------------------------------------------------------------------------------
set safariExtensionsPlist to "~/Library/Safari/Extensions/Extensions.plist"
tell application "System Events"
tell property list file safariExtensionsPlist
tell property list items of property list item "Installed Extensions"
set installedSafariExtansions to value of property list item "Archive File Name"
end tell
tell property list item "Installed Extensions"
tell (property list items where name of its property list items contains "Enabled")
set enabledSafariExtansions to value of property list item "Archive File Name"
end tell
end tell
end tell
end tell
------------------------------------------------------------------------------------------------
I thought I'd post this and perhaps save someone else the trouble.
--
Best Regards,
Chris