AppleScript is a proprietary programming language in Mac OS X to control and exchange data with applications.

learn more… | top users | synonyms (3)

1
vote
1answer
14 views

Setting print size preset in AppleScript

I've been using Folder Actions to automate printing photos taken from OS X built-in Photo Booth software. The AppleScript I use is as follows: on adding folder items to this_folder after receiving ...
1
vote
2answers
33 views

How to periodically show alert message *in foreground*?

I want to have an alert / dialog box to fire up periodically in foreground. I tried a combination of AppleScript and launchd and managed to have the script (actually converted to a app) fired up ...
0
votes
1answer
12 views

Shut down via Terminal/AppleScript without restoring

How can I shut down my Mac via Terminal or AppleScript, but without restoring? tell application "Finder" to sleep works not, the windows will be restored.
4
votes
1answer
1k views

enabling/disabling Internet Sharing with terminal in mac osx 10.9.2

The problem is setting the internet sharing with CLI instead of GUI in Mac OS 10.9.2 I followed instructions as per this thread Start/stop internet sharing from a script? including both CLI and ...
2
votes
2answers
96 views

Wanting help creating an applescript that is run when the contents of a folder changes

I would greatly appreciate some assistance with the following. My scenario: I have a Mac app that generates RTF files. I have an Android app that deals with MultiMarkdown/Markdown files. The Mac ...
0
votes
1answer
980 views

Access application submenus with AppleScript

I am trying to learn to access any menu item within an application with AppleScript. I can orient to the actual menu tab, and then access clickable menu items, but I can't access menu items within ...
-1
votes
1answer
47 views

Terminal command “ls” in AppleScript list

How can I create a list in AppleScript that shows the results of a terminal command. For example ls /Applications/ Every application should be shown in the list, so that I can choose an item from the ...
0
votes
0answers
13 views

Generate Document from Text AppleScript?

I have a series of documentation text files on a Mac that I want to turn into a PDF. But I want to automate the process. Preferably the document would have a table of contents. Is there anyway ...
0
votes
1answer
1k views

copy calendar entries from one calendar to another via apple script throws error

i am trying to copy ical entries from one calendar to another using the following script: tell application "iCal" set localEvents to events of calendar "Privat" set remoteEvents to events of ...
0
votes
0answers
7 views

Applescript to hide print queue

Running a Processing sketch which saves .txt files to a folder. Have a folder action attached that prints new files in this folder to a thermal receipt printer. However, I had to update to Yosemite, ...
0
votes
0answers
38 views

<Applescript> how to change/set the name of an existing recipient in outlook 2011

In Outlook 2011, I replied to a email using applescript. The recipient address exists. Now I would like to set a name for this recipient. Is there a way to set or change a name for an existing ...
1
vote
3answers
3k views

Using automator and handbrake cli to convert videos automatically

I am trying to automate video conversion process using Automator and Handbrake CLI version. I am trying to implement the functionality that whenever a video is downloaded in my dropbox folder on my PC ...
4
votes
0answers
202 views

Is it possible to compose Mac OS Mail in an external editor?

For Thunderbird there is the External Editor extension a very very classical piece of software that, when called via a shortcut, pops up your external editor (emacs in my case) and let's you edit your ...
4
votes
2answers
5k views

When MouseKeys are on, how do I click or move the mouse using AppleScript?

This post suggests that the command tell application “System Events” to key code 37 in AppleScript should move the mouse pointer one pixel down and to the left if run when MouseKeys are enabled. In OS ...
1
vote
1answer
33 views

Set Bash Variable as Icon in osascript -e Display Dialog with icon

I have a bash script that utilizes some osascript -e code for a dialog. I want to use a custom icon in that dialog. However, I don't understand how to code it so it's completely portable so as to make ...
0
votes
0answers
17 views

Applescript to fill out Server Password Prompt

I'm trying to figure out if it's possible (via AppleScript) to fill out a server authentication dialog box asking for username and password (using Google Chrome). This is the dialog box I see when ...
-5
votes
0answers
17 views

Create applescript to do next song in safari tab

don't know applescript language (and it will be nonsense to learn it just to do this single thing). What I want to do is press the keys that are in the macbook keyboard (play/pause, next, back) to ...
0
votes
1answer
23 views

Applescript or Automator service that automatically trusts certificates

I would like to know, if there is a way to make an Automator service or an Applescript that automatically trusts a root certificate. If possible without a prompt for password or Admin privileges. ...
110
votes
6answers
50k views

How can I trigger a Notification Center notification from an AppleScript or shell script?

I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write. Is there a built-in command or a third-party library I can use from either an ...
2
votes
3answers
9k views

How can I remove a portion of from the middle of a movie?

Quicktime Player help: With QuickTime Player you can quickly remove a portion of the beginning or end of a movie or a movie clip to make it shorter or remove unwanted content. I want to ...
0
votes
1answer
31 views

Automator - How to know what I can do with Automator in each app

I'm new to AppleScript and Automator, I've reached to stop and play next and previous track in Spotify, here's what I use inside the AppleScript: tell application "Spotify" to playpause for ...
1
vote
3answers
39 views

Applescript Move current file to Folder

I want to create a script that takes the current file selection and moves it to an already existing folder. I will then duplicate this code for 9 other folders and assign them all keyboard shortcuts. ...
0
votes
2answers
53 views

AppleScripting QuickTime Pro 7 to export .png files

How can I use AppleScript to save .png files from the start and end of .mp4 files with QuickTime? This is something I am doing a lot of and it would be good to automate it. I have some scripting ...
1
vote
1answer
59 views

Get MacBook to say Thank You when plugging in the power cord?

I would like to know how can to create an applescript which is executed when I connect the power cord to my MacBook. I would like it to say "Thank You"
1
vote
1answer
165 views

Adding Bounce Message back to Mail in Yosemite

Does anyone have an updated version of this workflow for adding a Bounce Message feature to Apple Mail in OSX 10.10.3? Applescript: on run {input, parameters} tell application "Mail" ...
0
votes
0answers
16 views

Adding a Folder into favorites sidebar with applescript

I am using Yosemite, and am having issues getting my applescript below to actually put a file into the favorite bar. I tested the file by typing "t" + Command + control, and it works, but when I run ...
0
votes
0answers
26 views

Reference parent of object specifier in AppleScript

This is my first attempt at AppleScript so I apologize if I don't explain myself very well. I am trying to have iTunes select an App form a list when an iPad is plugged to the computer. I need it to ...
1
vote
1answer
57 views

How do I Launch an Applescript with a Hotkey Without Automator?

I'm running Yosemite and looking to launch Terminal with a keypress in any application. One solution was creating a Service in Automator that launched terminal and assigning a key to it in System ...
0
votes
1answer
47 views

Script/Workflow: Select item, print, save as PDF, name sequentially, down arrow to next item

Yet again I have a task to do that would be great to automate. Yet after searching for examples that are even close I am nowhere. Here is what I am trying to do: First I Perform a search by specific ...
1
vote
1answer
26 views

Making a command key for an option that already exists

Introduction: Hello, my formatting may look weird but I'm hoping it will be more concise for you and easier to follow, I have ADHD so my writing sometimes goes from one thing to another without any ...
1
vote
1answer
50 views

How do I “say . . . using” in Javascript for Automation?

In Applescript, I can specify the voice the system uses to speak text as follows: say "Hello" using "Alex" In Javascript, I can do something similar: var ScriptEditor = Application("Script ...
-2
votes
1answer
48 views

AppleScript to identify the current status of Network Connection?

What is the AppleScript to identify the current status of MacBook Pro's network connection (Yosemite 10.10.3) Connected via Iphone USB on/off (Hotspotting to Iphone) Connected via WIFI ON on/off ...
0
votes
3answers
1k views

AppleScript for iCal events from Address Book entries

I want to create a script that creates alarmed events in iCal for birthdays of people that I have in my address book. Unfortunately, I am very bad working with AppleScript. Below is the outline of ...
1
vote
0answers
36 views

How to: Automator, launch an app, as if I dragged n dropped file on App's dock icon?

Using automator, I know how to "Launch an App". I would like to know how to "Launch an App in a specific way". The app I want to launch, acts differently depending how its launched. If one: clicks ...
0
votes
0answers
27 views

How to have Automator say click “Thanks” to App's Dialog Box

Using Automator, how to click "Thanks" on the apps Dialog Box? The app runs a process, and when the process finishes returns a series of Dialog Boxes with the result. Each Dialog Box, has 1 button ...
0
votes
1answer
2k views

How to locate UI Button for AppleScript using Accessibility Inspector

There are several articles here that address this question, but none offer the help to connect-the-dots. The attached screen shot shot shows Accessibility Inspector for the button in question, which ...
0
votes
0answers
36 views

AppleScript click on website link

I need an AppleScript to select a specific text field of an area, paste a text and click enter. I have inspected the text (research) field. Here is the result: <input placeholder=​"Search Value" ...
0
votes
1answer
108 views

Is there a quicker way to pause Photos uploading to iCloud?

Photos.app on Yosemite takes forever to upload its library to iCloud, and can slow the WiFi network to a crawl while it does so. I know that I can pause it in the app's Preferences, but this is ...
0
votes
0answers
10 views

Further Question from “Automating Quicktime Image Sequence creation in Mountain Lion”

This is related to the question asked in: Automating Quicktime Image Sequence creation in Mountain Lion I was wondering if there was a way of adapting this script to resize the Image Sequence to ...
1
vote
2answers
46 views

Get nick name of current user

I want to get the nickname of the currently logged in OS X user via Apple Script. Currently can only retrieve the full name or the nickname of a contact, I wasn't able to combine the two scripts. ...
2
votes
2answers
1k views

How do I collect all of my notes and highlights from iBooks?

I've got a lot of highlighting and notes in iBooks that I've read, and would like to be able to collect them in one easy to use and manipulate format (e.g for writing papers and citing quotes). For ...
0
votes
1answer
30 views

Applescript for multiple find/replace using separate masterlist

I am trying to create a script to extract a list of data from column A on document 1, and then use columns A & B on document 2 as multiple find/replace data. Everything works in so far as ...
14
votes
3answers
14k views

Run AppleScript from bash script

If I wanted to run an AppleScript from within a bash script I could call a file with the list of commands that I require to execute. #!/bin/bash {some commands} osascript file.scpt {other commands} ...
4
votes
3answers
199 views

Script to change downloaded mac wallpaper automatically?

I want to change my mac wallpaper daily with microsoft bing images. I found this script that download the daily picture automatically, but I sill have to set the wallpaper automatically. Is it ...
8
votes
4answers
2k views

look up a word in Dictionary.app in Terminal

Is there a bash or applescript to look up a word in /Applications/Dictionary.app from a Terminal window ? open -a /Applications/Dictionary.app/ --args word ignores --args, says "type a word to look ...
1
vote
1answer
61 views

AppleScript Quicktime Player to play audio file generates error

My Quicktime Player (Version 10.3 727.4) can play mp3 files without any problems, but when I use AppleScript I get an error message: The document “audio.mp3” could not be opened. The file may be ...
1
vote
2answers
63 views

Applescript (PDF to iTunes): How to extract and/or write metadata with special characters? Help please :-)

INTRODUCTION Hello there, Like always, I want to put in front that I'm not a script expert. I'm not even a basic coder. I just try to learn, little by little about coding when I have these ...
0
votes
1answer
122 views

how to re-enable services in an app (Microsoft Remote Desktop in particular)

I am fairly confident I could use the service below in MRD before. I am not sure when I lost them, maybe it is related to the Yosemite upgrade (I noticed this on 10.10.0) or some recent MRD update ...
1
vote
1answer
29 views

How to make a custom keybind that runs an applescript file?

No additional questions. I'm fine with installing an additional program.
0
votes
1answer
27 views

Filling the inputs of SecurityAgent if they exist?

I am trying to automate the export of my keychains (system and user), and while my script works if I remove the set values, it does not after adding them. The error I am receiving is System Events ...