Then I realized I am always pasting into an app that is expecting plain text. I have copy/paste a lot of scripts from other Discourse forums, and have never noticed this – never had an issue. That would be better than what I’m seeing here. ShowMessage:theMessage withTitle:theTitle textFrame:theTextFieldSize textMaxWidth:(650) Increase or decrease the second item’s numbers Many buttons would you like? There’s no real limit except for practical and aesthetic considerations.”Ĭourse, I hope you’ll never really think about using something as ugly as this!” Set up the parameters for the showMessage call: Handler must be called on the main thread.“ĪView’s setFrameSize:(aView’s fittingSize()) end ShowMessage:withTitle:textFrame:textMaxWidth:withButtons: on PerformSelectorOnMainThread:"showTheAlert:" Show the alert needs to be done on the main thread WithObject:theField waitUntilDone:true make sure we have permission PerformSelectorOnMainThread:"fitToSizeView:" Tell make it fit needs to be done on the main thread NSTextField’s alloc()'s initWithFrame:textFieldSize) tell NSAttributedString’s alloc()'s initWithString:theMessage attributes:attsDict – NSDictionary’s dictionaryWithObject:theFont forKey:(current NSFont’s monospacedDigitSystemFontOfSize:fontSize weight:(current NSFont’s systemFontSizeForControlSize:(current ShowMessage:theMessage withTitle:boldBit textFrame:textFieldSize textMaxWidth:maxWidth withButtons:buttonsList credit to Shane Stanley for this handler make attributed string system font with monospaced digits I don’t know if that’s an outlook issue, or a general email issue or what, but if there’s anything that can be done to avoid the issue or fix it in the forum, that would be good. (Although when that link becomes available, that will be good).īut today I tried to copy and paste the script into an email (Outlook) and while it looked OK on my end, the received message looked terrible and was unusable. Just an FYI, I’ve been copying and pasting script samples from the forum into scripts with no problem. Write a Discourse plugin that will do it.It should be easy enough, given the scripts/macros already posted here. Write an AppleScript that will do it (to be run from FastScripts or the Apple Script menu). If you feel strongly about making it very easy for users to copy from the forum to SD, then you can do any of the following: AFAIK, is the only forum that offers the “applescript://” protocol, but maybe there are others.ĭiscourse forum software is open source, and supports custom plugins. I was simply offering a KM solution for those that want to use it. If you are not familiar with it, I suggest you try the 30-day free trial – full version with no limitations. It is one of the most useful software apps/utilities I have ever owned. You speak of Keyboard Maestro as if it were some otherwise useless piece of software. You can’t expect users to install some proprietary software to make simple things work. It really should be as simple to use for anyone as macScripter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |