Skip to main content

Timeline for Delete Keystroke from AppleScript

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Jun 15, 2020 at 8:04 history edited CommunityBot
Commonmark migration
Nov 5, 2015 at 16:56 vote accept user14492
Oct 28, 2015 at 16:27 comment added jweaks I provided an answer.
Oct 27, 2015 at 1:55 answer added jweaks timeline score: 0
Oct 26, 2015 at 21:34 comment added user14492 @jweaks Added more info. I know script is running fine because I see the text get selected, but it never deletes it.
Oct 26, 2015 at 21:30 history edited user14492 CC BY-SA 3.0
More info.
Oct 26, 2015 at 20:15 comment added jweaks key code 51 DOES work as back delete. I just tested it out in TextEdit. What app and context do you have in front when this code of yours is running? Test with a beep or dialog before your key code 51 to make sure the problem is not with your code logic.
Oct 26, 2015 at 17:44 comment added Tetsujin Far less of an XY Problem done like that @IlariScheinin ;)
Oct 26, 2015 at 16:38 comment added Ilari Scheinin ... along these lines: set x to "something.dmg" <newline> if x ends with ".dmg" then set x to characters 1 thru -5 of x as string
Oct 26, 2015 at 16:33 comment added Ilari Scheinin What's the bigger picture you're trying to achieve? There might be a safer way to achieve it than to simulate keystrokes.
Oct 26, 2015 at 15:43 history asked user14492 CC BY-SA 3.0