New answers tagged

0 votes

Run a program/script when the screen is locked or unlocked

Here's a simple script that I use when Karabiner fails on the lock screen. It turns the On Screen Keyboard on when the mac locks. import Foundation class ScreenLockObserver { init() { let ...
laktak's user avatar
  • 3,149
4 votes

AppleScript: Wrap selected text to a specific width

After a bit of searching around, the following seems to work. This was on macOS 13.5.2 and Automator 2.10 (521.1). Open Automator File -> New -> Quick Action Search for "shell script" ...
bfxfer's user avatar
  • 71
0 votes

Use Applescript to set a Music app playlist's View Options?

Late reply, but I found out today that playlist view information is stored in preferences/defaults for, so in domain (~/Library/Preferences/ file). It ...
tig's user avatar
  • 367
1 vote

Applescript: Mail - Is there a way to save user settings and re-apply them

I found what the problem was. "always bcc myself" and "always cc myself" are not independent. In fact it implemented as "always [xx] myself" as true or false, and "...
Rob's user avatar
  • 11
0 votes

Setting to open new TextEdit document window in center?

@Nic wrote: there's really only one solution: write a custom AppleScript Well, no. There are at least two others solutions available that have their own advantages: A. Use Keyboard Maestro. It comes ...
August's user avatar
  • 407
0 votes

How do I get the "percentage completed" to work on Automator apps?

See if this helps, in the "Mac Automation Scripting Guide" under the section "Interacting with Users" lists Displaying Progress: - Reset the progress information set ...
SydMK's user avatar
  • 201
1 vote

Change signature of open e-mail with Apple Script

I finally found a solution myself. Here's the working code: tell application "Mail" activate end tell tell application "System Events" tell process "Mail" ...
David's user avatar
  • 191

Top 50 recent answers are included