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
40 views

AppleScript to audio

I want to save the following spoken text to an audiofile that I can play on my iPod (so .mp3 or something). say "the company [[slnc 1200]]" using "Alex" say "une entreprise [[slnc 1200]]" using ...
0
votes
0answers
30 views

Organizing TV Show with automator & tvnamer

Previously I used Hazel (http://www.noodlesoft.com/hazel.php) and tvnamer (https://github.com/dbr/tvnamer/) to sort and rename my TV Shows Collection. I'm trying to simplify the process by using ...
0
votes
1answer
19 views

Setting a clipboard kind without setting “styled Clipboard text”

I am developing a tool to add a HTML-ized version of a text to the clipboard. Currently, I'm using applescript to manipulate the clipboard. Unfortunately, I realized that in addition to the entries I ...
0
votes
0answers
18 views

How to open application through notification in terminal shell

I have the following command to run in a terminal shell script: osascript -e 'display notification "This is a Text" with title "This is a Title"' This is a shell code running in applescript to open ...
0
votes
1answer
62 views

How can I use Automator to open a website & log in everyday at a certain time?

I need to set up an auto log in for an Intranet web site so I can get right to work with no delays. I want Automator to open safari, go to the page, input log in and password credentials and hit log ...
4
votes
0answers
102 views

How to register AppleScript as default web browser in Yosemite?

This is essentially the same question as How to register an AppleScript as a potential default web browser?, but the solution there doesn't seem to work on Yosemite (LSIsAppleDefaultForScheme no ...
0
votes
0answers
17 views

automatically share photos to Photos iCloud Shared Albums

I'd like to script the Yosemite Photos app so that every time I place images to a folder on my desktop, it automatically is imported into the Photos app and uploaded to a shared album. Is this ...
0
votes
0answers
23 views

AppleScript and Microsoft Outlook

I would like to use Applescript (I'm only recently starting to use it) with Outlook to select all messages in the Inbox and apply a rule. It should be so simple! Any help gratefully received. ...
1
vote
0answers
25 views

I need to batch move files from one location to another, and put them in pre-existing folders with the same first 7 characters

I am looking to automate moving large amounts of files. Basically I have one location on our network full of .zip files. They are all named like "12-3456.zip" etc. I need to move each of these .zip ...
1
vote
2answers
35 views

AppleScript for Dropbox on External HD

Disclaimer: I don't know much AppleScript, but I am a bit of a programmer, so you can go a little technical on me. I am looking for a solution to the issue of putting Dropbox on an external HD. ...
2
votes
2answers
77 views

How to run custom AppleScript in the background at all times?

Given an AppleScript file designed to poll for an application dialog box every 30 seconds, how can I easily setup my Mac OS so that this AppleScript file starts every time I login silently in the ...
2
votes
2answers
80 views

Way to manually(!) sort files into folders

I'm looking for an easy way to quickly go through a bunch of files, mostly videos and images and sort them in a set of standard folders. Currently I open the videos/images in VLC see what they're ...
0
votes
2answers
44 views

In AppleScript when entering password, is a click required

I'm writing an AppleScript to toggle on/off a VPN connection for a computer. I have things more or less working, however, I have to click on the password prompt dialog in order for the script to ...
0
votes
0answers
24 views

OSX Flush DNS without sudo

I have a Mac that keeps messing up its DNS (this may be a wider network issue, we have windows clients that are having problems too). Whilst I try to understand the DNS issue I'd like to set an 'icon' ...
0
votes
1answer
31 views

How to make automator run an applescript that turns of mac?

I want to make an applescript that taps the apple in the corner, taps shut down, and then taps shut down. I can't record it, since it actually involves shutting down the computer, making the script ...
0
votes
0answers
45 views

Entering F23 and other function keys

I cannot figure out how to enter the Function-23 key on my Mac. Obviously, no Apple keyboard contains keys above F19, but working with old software I am required to use the F23 key. I've attempted ...
1
vote
1answer
62 views

Open application in specific space through AppleScript

I have a script that I run when I get to work to open all of the applications that I work with. But when I run it they all open in one space. I'm running OSX Yosemite 10.10.3. So I need an ...
0
votes
1answer
41 views

Applescript variable not being passed

I have a basic applescript to request a user's input, then pass the variable into a path for mounting a volume: display dialog "What is the first letter of your last name?" default answer "" set ...
1
vote
1answer
45 views

Display dialog with current iTunes album cover

I would like to display with AppleScript a dialog that shows my current title, artist and album. In addiction to that the icon of the dialog should be the album cover of the current album. Is that ...
2
votes
1answer
106 views

Google search via AppleScript

I would like to make a Google search with an AppleScript. The code looks like this: set search to text returned of (display dialog "Google Search" buttons {"OK"} default answer {""}) open location ...
0
votes
2answers
47 views

How do I display text in the middle of a dialog as well as a new line?

I am currently making an AppleScript and would like to know how to do the following things. Display text in the center of a display dialog How to create a new line inside the dialog
0
votes
0answers
21 views

App Name not Displayed Correctly

I've created an AppleScript, saved it as an app and run it by launchd. For an undetermined reason, the app's name in Preferences > Security & Privacy > Privacy is displayed with a long string of ...
0
votes
1answer
39 views

get output volume with AppleScript

I'm writing an AppleScript which should show the value for the output volume. With get volume settings I'm getting 4 values, but I need just the output volume value. The integer should be shown in a ...
0
votes
1answer
18 views

ApplescriptObjC [Output Box]

I would like to add a box to my applescriptobjc application. I would like to add a box that displays the output of do shell script "" so I think I would do something like set a too (do ...
0
votes
0answers
26 views

AppleScriptObjC Path to .app

I am currently setting up an AppleScriptObjC application. Whenever I try other methods, it screws up. I'm trying to set it up where a shell script uses the mv command to move a file from the "Files" ...
0
votes
0answers
44 views

UNIX Script to Change Desktop & Screensaver in 10.8

I'm setting up LaunchAgent .plists that start up UNIX bash scripts to automatically change the desktop and screensaver for various different users for a Mac image that will be deployed to multiple Mac ...
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
0answers
53 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
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
2answers
126 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
vote
2answers
54 views

Remove parts from AppleScript result

I want to remove a part of an AppleScript result. The part of my whole code is following list disks I get the result: {"Macintosh HD", "MobileBackups", "home", "net", "USB-Stick"} How can I remove ...
-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
162 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
1answer
31 views

Need help with applescript and wolfram alpha interface

Okay so here's my code... My question is, can I determine what type of data it is before grabbing the text, because if I search something like "how many tablespoons in an ounce, it just gives me a ...
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, ...
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
2answers
59 views

Trigger refresh/update smart playlists in iTunes using Applescript?

I keep live update turned off on most of my smart playlists because changing anything, such as ratings, for a currently playing song could cause the song to disappear from the playlist if it no longer ...
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 ...
1
vote
1answer
37 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 ...
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 ...
3
votes
1answer
123 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?
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 ...
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
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
3answers
147 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 ...
0
votes
1answer
38 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
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
1answer
73 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 ...