New answers tagged applescript
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 ...
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" ...
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 Music.app, so in com.apple.Music domain (~/Library/Preferences/com.apple.Music.plist file). It ...
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 "...
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 ...
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 ...
1
vote
Accepted
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"
...
Top 50 recent answers are included
Related Tags
applescript × 3398macos × 967
automator × 685
terminal × 382
finder × 257
script × 214
command-line × 186
bash × 163
automation × 155
keyboard × 152
mail.app × 135
safari × 127
itunes × 92
google-chrome × 76
ms-office × 75
mac × 72
email × 70
javascript × 66
pdf × 63
text × 53
notifications × 50
services × 49
audio × 48
applications × 46
copy-paste × 46