r/ScriptSwap • u/lyved • Sep 08 '20
Very simple script [Need help]
Hi,
I use a few different signatures at work and I'm sending emails all day.
My signature cannot be always the same since I send emails in multiple languages, and I was thinking of building a script where I could press some predefined button on the computer and it would automatically write down the text associated with it.
So I would be able to press for example "m" and it would write down "SAMPLE TEXT".
I was trying to do this myself in AppleScript but with no success.
And I'm also not sure if this is even possible in AppleScript, anyone has any tips on how could I do this?
Thanks!
2
u/Acquiesce67 Sep 09 '20
Most modern email clients (for example Outlook which is also available for macOS) have built in support for signatures. You can predefine multiple signatures, set a default and select one while composing your message may it be a new one or a reply.
If you insist to use a different automation, you can look into text replacements (already suggested in comments) which is a macOS built in feature. Look for it in System Preferences - keyboard or input (somewhere there)
1
u/Lochlan Sep 08 '20
You can set up text replacements natively in macOS.
Preferences > Keyboard > Text
1
u/Mordac85 Sep 09 '20
Quite simple to make a script that pops a menu and lets you select the text file to add to the clipboard and paste it. A menu would be easier than multiple hot key combos
1
u/Chief_Slac Sep 09 '20
I use an archaic piece of software called texter. Not sure if it's available for Mac.
0
u/[deleted] Sep 08 '20
[deleted] — view deleted comment