Category "applescript"

Automate clear browsing data Safari

Is there any way to automate clearing cache, cookies and history in Safari? I can run Swift, Python, JavaScript and AppleScript. This is the AppleScript I have

Apple Script - How to move a window to a specific virtual workspace(desktop)

I would like to open 2 different Visual Studio Code windows and Move 1 to Desktop 2 and the second window to Desktop 3 using AppleScript. Any help on this woul

How to enable Touch ID in prompt for password using Applescript in Objective C

I am using a solution from @CarlosP in my objective C app to execute a script as administrator. Link is above but basically it's doing this: NSDictionary *error

How can I open ".scpt" files on Windows?

I would like to open a ".scpt" file, what editors can I use? P.S. I am using Windows, so the App should support Windows.

Why does it sometimes take so long (~10s) to activate open apps via AppleScript?

The simple AppleScript activate application "Safari" sometimes takes up to 10s to complete when Safari is already open (but not activated). I use AppleScript

Control Quicktime Using Applescript

I am looking for a solution to control Quicktime using Applescript. All I need to do is - - open quicktime and start a recording - stop the recording and save

Is it possible to create a macro / script in iTerm2 that insert text automatically selected from a list?

I use iTerm2 as my default terminal app in OSX. A would like to ask if is possible to insert text automatically with a hotkey (or selecting it from a menu), wit

Adjust screen brightness without showing the brightness-adjusted popup using Python3

I am currently working on an app using Python that automatically adjusts the screen brightness in accordance with the contents on the screen (os: macOS Monterey

Applescript to batch convert videos with ffmpeg

I'm trying to add padding to a large amount of videos in their folders. I created an app with AppleScriptEditor so I can drag and drop files and they're automat

AppleScript Application is not allowed to send keystrokes

I made an app with AppleScript called FRIDAY. When I tell it to 'open chrome', it opens google chrome, this is working on Script Editor and out side of script e

shell command fails when running from crontab

[Edit: the original title of this question was "Applescript running from crontab not accessing network?" but having found that the problem is about PATHs--not n

AppleScript to remove icon from dock

I need to be able to run the script through Terminal only. I've seen other scripts that work as long as you change some settings in Accessibility; this is not a

AppleScript to remove icon from dock

I need to be able to run the script through Terminal only. I've seen other scripts that work as long as you change some settings in Accessibility; this is not a

How do I get the paragraph number of the currently selected paragraph in Microsoft Word into an AppleScript variable?

This is intended as an extension of the original question, The number of the current paragraph? How can I get it?, which does a nice job answering the question