On Sep 11, 2007, at 3:14 AM, Kevin Ballard wrote:
Try editing the macro plist by hand to add save: as an action.
Thanks for the idea. I tried but I can't seem to get it to work. Here's what my macro plist looks like:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>commands</key> <array> <dict> <key>argument</key> <dict> <key>action</key> <string>replaceAll</string> <key>findInProjectIgnoreCase</key> <false/> <key>findString</key> <string>[\s\t[^\n]]+\n</string> <key>ignoreCase</key> <false/> <key>regularExpression</key> <true/> <key>replaceAllScope</key> <string>document</string> <key>replaceString</key> <string>\n</string> <key>wrapAround</key> <true/> </dict> <key>command</key> <string>findWithOptions:</string> </dict> <dict> <key>argument</key> <dict> <key>action</key> <string>save</string> </dict> <key>command</key> <string>save:</string> </dict> </array> <key>keyEquivalent</key> <string>@e</string> <key>name</key> <string>Remove Extra Space</string> <key>uuid</key> <string>827CEB8B-09BD-49A5-948E-02E4A56D11C7</string> </dict> </plist>
I added the second <dict> node myself (just following the pattern) but it doesn't work. Is there something wrong with my syntax? Have you gotten this to work?
Thanks,
Michael