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

learn more… | top users | synonyms (3)

0
votes
1answer
62 views

`display notification` works from AppleScript Editor but not when exported as Application

I've got some short AppleScript code designed to display notifications at a specified interval. The code works perfectly from the Script Editor, but not when exported as an Application. Instead, ...
1
vote
1answer
50 views

How can I move reminders from one list to another by Applescript?

I have an use case where I want to move certain reminders I created using Siri from the default list to another. Programmatically, via an AppleScript script, which runs on a Mac. tell application ...
1
vote
1answer
61 views

How to link multiple key events in AppleScript?

I have been trying to write an AppleScript that would open the mail app register a save as key event (Shift+Command+S) wait 1.5 seconds, do a return key event ("Enter") and then wait another 1 second ...
0
votes
1answer
70 views

Question for applescript with dragon Dictate

I want to make a program that will take the question I ask it, input it to WolframAlpha, take the answer, convert it to text and the say the text. set defaultAnswer to "" set cancelButton to ...
0
votes
0answers
27 views

Automator action keeps failing

I would like to have a very simple Automator action that watches my photo upload folder in Dropbox and moves every file that it receives into another folder on my desktop. Sometimes it works ...
0
votes
2answers
3k views

Applescript to add sender of message to specific group in Contacts

I'm trying to set up an Applescript to add the sender of a selected message in Apple Mail to a specific group in the Contacts app. By reconfiguring the code provided in this answer, I worked up the ...
3
votes
1answer
166 views

Make a FaceTime call using AppleScript

Is it possible to initiate a FaceTime call with "+1 (###) ###-####" when I execute an AppleScript? Does FaceTime support AppleScript and how can I automate the start of a call?
1
vote
1answer
249 views

Applescript IF statement with click and keystroke?

I would like to make a script that press down the shift button every time i click on something and maintains it pressed until I release click. Something like: If click then key down shift "when click ...
0
votes
3answers
166 views

Applescript- I made an auto scrolling code and need to know how to stop it

Edit: This is the most recent code I have now... How can I get it to stop (change the value of x) when I run a separate script? set x to 0 tell application "Google Chrome" set urlName to ...
5
votes
3answers
417 views

AppleScript to show package contents of hidden original of alias

I'm attempting to build an Automator workflow (which will be saved as a Service, so that I can both access it from contextual menus and invoke it with a keyboard shortcut), that will function much ...
7
votes
7answers
3k views

Sending push notification to iPhone via AppleScript

Is there any combination of iPhone and/or Mac apps that I can use to send a push notification to my iPhone? For example, let's say I want to create a service (invoked via (Application Name) > ...
2
votes
3answers
321 views

Help with a simple email script for OSX

I would be so happy if someone could assist me in creating an Applescript to send some emails. I have seen a few examples but I am not confident that I can adapt them to my own needs. I need to send ...
0
votes
0answers
67 views

Pages.app Applescript: how to delete a range of text?

I have an application where a Pages.app template must be customized to produce a specific document. Think mail/merge. The basic idea is to use Pages.app placeholder text and replace them with the ...
0
votes
1answer
57 views

Applescript to click menu item in Lightroom 5

I am using a script found elsewhere on this site. But I can't figure out how to modify it to fit my use. As written the script activates the submenu I need but I can't figure out how to click an ...
0
votes
1answer
20 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
36 views

Extract a tracking number from Mail app in mac and add it automatically to Parcel app

is there an appleScript that can Extract a tracking number from Mail app in mac and add it automatically to Parcel app so it sync directly with my apple Watch and my iPhone
1
vote
2answers
3k views

Applescript to type text, followed by a modifier key combo?

I want to use TextExpander to activate when I type the specific text "attached", and have the AppleScript type out the word "attached" (since TextExpander will remove it), and then invoke the ...
1
vote
1answer
108 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
68 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
52 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.
2
votes
2answers
152 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 ...
-1
votes
1answer
110 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
20 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
0answers
51 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
264 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
120 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
44 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 ...
0
votes
1answer
46 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. ...
124
votes
6answers
61k 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 ...
3
votes
3answers
11k 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
64 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
145 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
144 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
105 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
683 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
75 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
57 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
67 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
74 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
44 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
81 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
147 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 ...
1
vote
0answers
52 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
58 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
0answers
85 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
252 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
17 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
87 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. ...