Skip to main content

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.

Filter by
Sorted by
Tagged with
2 votes
0 answers

Auto re-connecting to a VPN on OS X and pointing Squid accordingly

We need to tunnel certain applications over a VPN at work. Ideally we would use a dedicated firewall/network appliance for this but the only permanent infrastructure we have are Mac Pro's running ...
Al Longley's user avatar
1 vote
1 answer

Script to transpose chords in a song sheet

I'd like to write a script that receives text input from the clipboard that will be from a song lyric sheet with chords. The goal is for the function to return the text to the clipboard after ...
user avatar
2 votes
1 answer

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 ...
Doe's user avatar
  • 21
4 votes
0 answers

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 ...
Jackson Jacob's user avatar
2 votes
0 answers

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? ...
I0_ol's user avatar
  • 379
2 votes
0 answers

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 ...
Harrison Tran's user avatar
2 votes
2 answers

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 ...
Jeremy Caron's user avatar
6 votes
2 answers

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 ...
insanikov's user avatar
  • 539
3 votes
1 answer

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 ...
sftsz's user avatar
  • 243
23 votes
2 answers

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: ...
nhgrif's user avatar
  • 25.3k
32 votes
2 answers

Script to enter text in a box

Here's a little script that enters text into a document when activated. ...
hairboat's user avatar
  • 421
4 votes
1 answer

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'...
RASG's user avatar
  • 219