Re: Persisting Changes to Native MacOS Text Replacement
Re: Persisting Changes to Native MacOS Text Replacement
- Subject: Re: Persisting Changes to Native MacOS Text Replacement
- From: Axel Lüttgens via AppleScript-Users <email@hidden>
- Date: Sun, 20 Jun 2021 11:13:35 +0200
- Ironport-hdrordr: A9a23:ieo+cq9PVk+ANiqXLZ5uk+AdI+orL9Y04lQ7vn2Y6XduA7Wlfq GV7YsmPHrP4gr5N0tPpTntAsi9qV21z+8M3WGIVo3SITUPUgOTXftfBPLZskbd8k7Fh5JgPM VbE5SWU+eAa2SS5PySiGKF+r0brOVvnprEuQ9Tok0dKj2CE5sQjTuQamygYylLrN8vP/UE/e Gnl6l6jgvlYHUPS8SgGz0bU/PYp9vN/aiWBCI7Ow==
- Ironport-phdr: A9a23:XFQo6B2PDDVHkSMOsmDOVwQyDhhOgF0UFjAc5pdvsb9SaKPrp82kY BWOo6420hSQBNiTwskHotKei7rnV20E7MTJm1E5W7sIaSU4j94LlRcrGs+PBB6zBvfraysnA JYKDwc9rDm0PkdPBcnxeUDZrGGs4j4OABX/Mhd+KvjoFoLIgMm7yuS/94fdbghGhTexbq5+I Ai2oA7MqsQYnIxuJ7orxBDUuHVIYeNWxW1pJVKXgRnx49q78YBg/SpNpf8v7tZMXqrmcas2S 7xYFykmPHsu5ML3rxnDTBCA6WUaX24LjxdHGQnF7BX9Xpfsriv3s/d21SeGMcHqS70/RDKv5 LppRhD1kicKLyI2/27KhMJwjq1Vrh2vpwZ8zY7afo+bM+Fzfr/EfdMfWWZBXtpdWi5HD4ihb 4UPFe0BPeNAooThqFoBsx++ChGqCvvz1j9ImnD20rM80+Q6DArL2xYvHt0Qv3TQttn1MLoSU fypzKnH0zrDaehW1Czm6IjLchEhp++DXa5qfcXK10YiDgXIhUifpoL5JT2azPgNs3SF4Op6U +Kik28qpQ9/rDavxcoihIbEiIwUx13Z9Ch0z4U4KN6lRUJlbtCpEIZcuiWbOoZoTc0sQ2Fmt Sk7x7AJpZK2fSkHxZohyhXCaPKHa5CF7g//WOuVOzt0mXxodK6lixu880Ws0OnxW8qy3V1Xt CRKiMPMuWoI1xHL78iHTeZy8Vm51DaU0gDT9vlEIUcplarHM5IhwqA/lp4UsUnbGiD6hUH7g LGMekk5++Wl6P7rbqj8qpKSMYB4kgD+MqIwlcyjGek0LxQCUmyB9eih2rDv4Vf1TbtIg/Esl qTUs4jWJcEBqa64Bw9V3Jwj6xG6Dzq+ytsZkmcILFZfdBKDkojpJ03OIP/mAve5mFShiyxrx /PGP73nHJrNMmLPn6z/crpl8U5T1BIzzcxD55JTErwOOurzWlf1tNPGFR82Lxa0w+f/CNVhz 48eRHmPDbGDMKPJqlKI4uMvI/KQZI8OojryMeAl5+bqjXAng1MSYa6p3Z5EIEy/S/19Pg3Na GL0htoaGn0LphZ7UffnkkaqVT9Ie230Vrok4jx9A4WjW9T5S5ipkYCGiS6gA9UCb3heDl2XG m3pb5nBRuwBcjm6Js56jidCXKC5T4Jn3har4lzU0b1ie8PE9ykvkQb/yNd44fabwRgi+DgyC 9mBz26ASXpchWAZQTIqmqpy9x8ugmyf2LR11qQLXedY4OlEB19SCA==
- Ironport-sdr: Wsq9P/Ndg1QdQFv6CLE0JFnhhWaiWqgOPbwji6xICM5DjZ1Y86Y7IQGqywDbEp/5J1Mrt3OE6I x/4NdL9mvS8txLW+e5bEBYvrIDY9SscB3Wh/LLaw24HKXjJ9UPEzjdPjS8FuD0qUYosaUFcs8L WnPmnaAqiFQqZ/EpimY1yvHHtYc1k17YTkodzonrXbiDghlqj+f0I0sBt8WKXSUYpnT3m/4vaF nZ3YLIVCFb7NxlqSxNrdZY+ato3N4M5ZDR7CAmSst06KhkqgSvwzA4G8hTKmAJvTVbZjgnJQHQ BEg=
> Le 20 juin 2021 à 05:20, John Garrigues a écrit :
>
> […]
>
> Can anyone suggest a way to "save" the System
> Preferences/General/Keyboard/Text Replacement modification? Is there
> something I’m missing in the AppleScript?
Hello John,
This slight modification to your code seems to do the trick, by trying to be
closer to a user interaction:
[…]
tell row 1
select
tell UI element 2
tell text field 1
set focused to true
keystroke today
keystroke return
end tell
end tell
end tell
[…]
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden