Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/goodguyry/update-comments

Manage Spotlight comments from Finder's toolbar
https://github.com/goodguyry/update-comments

Last synced: 6 days ago
JSON representation

Manage Spotlight comments from Finder's toolbar

Awesome Lists containing this project

README

        

Update Comments
==================

An AppleScript application (with a ridiculously unimaginative name) for managing Spotlight comments.

Drag it to your Finder toolbar to quickly add, edit, replace and remove Spotlight comments. It's got a few odd bugs, mostly related to listing comments for removal or editing, but nothing that prevents using it.

## Setup
### Run it as you would any other AppleScript
The easiest way to do this is to drop the script file into your _~/Library/Scripts_ folder and run it from the Script menu in the menu bar. To enable the Script menu, open AppleScript Editor (/Applications/Utilities/AppleScript Editor.app) and enable the option for "Show Script menu in menu bar" in the AppleScript Editor's preferences window.

### Save it as an application
Open the script in AppleScript Editor and select "Application" from the _Save As_ menu. From there, there are a couple extra steps.

1. **Add the icon file to the Resources folder**
Right-click your application file and select "Show Package Contents". Open the _Contents/Resources_ folder and drag the included .icns file (or your own, whatever) into this folder. Go ahead and copy the filename to the clipboard.
3. **Alter the icon file key in the plist to enable the icon file.**
In the _Contents_ folder is your Info.plist file. Open this file in your editor of choice and find the ````CFBundleIconFile```` key. Change the associated ```````` entry (directly after ````CFBundleIconFile````) to reflect the name of your icon file (without the file extension). If you've used the included icon file, your plist file should read:
````
CFBundleIconFile
update-comments
````
Keep that plist file open, dawg...
2. **Add a key to the plist file so the dock icon will remain hidden.**
In order to keep New File from showing a dock icon (which, IMHO is dumb and pointless for this type of application), you need to _add_ the following to the plist file:
````
LSUIElement
1
````

## Known issues
Sometimes, when listing comments to remove/replace, comments are duplicated or not listed.