Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [applescript]

AppleScript is an end user scripting language that has been available in Mac computers since System 7 Pro (7.1.1). It allows for automation of system tasks, communication between processes, and creation of workflows, amongst other functions.

2
votes
1answer
67 views

Check SMART status on MacOS and pop up alert

So I don't know much about bash scripting. I am just a beginner. I made this script which checks the SMART status of my root volume and if it is failing then it immediately throws a pop up alert if ...
4
votes
0answers
30 views

Launch and place application depending on screen resolution

I got fed up off opening a set of applications when I wanted to code. So I decided to read up on AppleScript and came up with the following task for myself. Open a application of choice on a given ...
2
votes
0answers
139 views

Log all Google Chrome browser activity

This script documents every website visited and writes the text content of each webpage to its own individual file. It seems to work as intended. Is there anything I could do to improve it? ...
2
votes
0answers
44 views

List of lists from file

I'm writing a sub-routine in AppleScript to get text from a file and insert that text in a list of lists forming a dictionary. Text File: a:b c:d e:f Expected ...
2
votes
2answers
1k views

Applescript to change file extensions

I'm new at scripting, but I thought it would be handy to have a script that would change the extensions of selected files in Finder. I run this script from an automator service so that batch changing ...
5
votes
2answers
142 views

SSH chatting tool

I have taught myself some bash and already knew some AppleScript, so I have come up with this SSH chatting tool for OS X users. It allows you to chat from a terminal to another OS X computer. One ...
3
votes
1answer
104 views

URL-finder using a lot of memory

I'm trying to get the URL of the browser with Mac OS X app. I wrote some AppleScript and am trying to use it in Cocoa. The problem is, when I watch it with instruments, memory is increasing, and at ...
22
votes
2answers
1k views

Writing FizzBuzz like this makes me feel like a small child

For the sake of full disclosure, this was written with bananas, not apples. The doctor may not be kept away. With AppleScript highlighting: For Copy&Pasting: ...
29
votes
2answers
328 views

Script to enter text in a box

Here's a little script that enters text into a document when activated. ...
4
votes
1answer
506 views

AppleScript to close running processes

I've been trying to emulate MS Windows behavior on my OS X and close processes that do not have a window. What I'd really like to do is "quit" the process on clicking the red "x" button. Instead, I'...