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
0answers
25 views

Help modifying an Automator script for ditto

I posted this question over on SuperUser but this may be a more appropriate forum. In OS X Mavericks 10.9.5 and on Yosemite OS X 10.10.3 I'm using an Automator Service and an AppleScript combo that is ...
0
votes
0answers
19 views

Folder Action - custom icon gets acted upon

I'm following this article on how to create a Folder Action importing files into Evernote. The script works fine, but the article includes a custom icon to install as icing on the cake. I followed ...
0
votes
1answer
92 views

Text-to-speech with 2 languages

I am studying French and to practice my pronunciation and to learn the words, I want to have my mac speak the words out loud. My mac should say the word in English, and after that, he should say the ...
0
votes
0answers
54 views

Clean up of calendar event before/during duplication

This issue all stems from duplicating events from subscribed calendars to a single iCloud calendar I share with someone. When the origin calendar is well structured everything works as expected. My ...
0
votes
2answers
129 views

How to play or pause multiple instances of VLC simultaneously?

I have 3 open VLC windows and whenever I see movement in one I need to pause all of them at once. Ideally I'd like a keyboard shortcut to do this. I tried AppleScript but I'm not familiar with the ...
-1
votes
1answer
33 views

AppleScript choose file with Terminal action

I would to choose a file/an image that is being mounted in the Terminal set pathelection to POSIX path of (choose file of type {"sparsebundle", "sparseimage", "dmg"}) do shell script "hdiutil ...
0
votes
0answers
14 views

Prevent VPN Disconnection message OSX

When my computer wakes from sleep, it tries to reconnect to my VPN network before the Wifi connection is fully established. The result is that nearly every time I get this message, "You were ...
0
votes
1answer
163 views

Repeated keystroke “w” for Agar.io

I've been searching for the relevant articles on the Internet and found nothing useful. Maybe I'm too stupid to understand. I would like to create a script that automatically keep pressing the "W" ...
0
votes
2answers
207 views

Using AppleScript to toggle Internet Sharing not working

I am using an applescript to activate internet sharing option from 'System Pref> Sharing'. I work on MacOs 10.9.4. I found this script on a forum and am using it. This works fine, when the System ...
1
vote
1answer
115 views

How do I extract the contents of a specified text field within a webpage using applescript?

How can I use Applescript And Safari to extract the answer from this site: http://www.wolframalpha.com/input/?i=whats+the+meaning+to+life%3F I'm attempting to extract the answer in copyable ...
0
votes
2answers
38 views

how to remove “/”s from my text in a variable

Okay so I have a code that grabs text from somewhere and stores it in the variable "answer" but it has / symbols mixed in with the text... how do I get rid of them...This is the code tell application ...
0
votes
1answer
52 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
39 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
60 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
69 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
26 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
125 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
241 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
149 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
401 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
288 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
54 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
39 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
19 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
32 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
77 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
59 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
45 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
136 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
95 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
19 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
50 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
250 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
92 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
38 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
36 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. ...
117
votes
6answers
57k 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
10k 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
54 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
105 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
119 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
97 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
535 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
53 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
45 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 ...