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

Applescript - Get information from terminal command

I'm creating a little script to allow quick changes to the network settings of my Mac. I have got it all working, but I wanted to be able to see what the settings are before I change them in the first ...
1
vote
1answer
67 views

Applescript - AppleEvent handler failed on set properties {visible messages: }

I have the following applescript working under Lion, but it returns this Error: -10000. Mail got an error: AppleEvent handler failed. error under Yosemite. try tell application "Mail" set ...
0
votes
0answers
20 views

Use Automator to select camera in Quick Time Movie Recording

I'd like to create an application shortcut to directly show the screen of my connected iOS device using Quick Time's "New Moview Recording" function. I am already able to create an Automator script ...
0
votes
1answer
29 views

Applescript to emulate key strokes [duplicate]

I want applescript to input into microsoft excel "No, (tab, tab again), Yes". I can't seem to make this work. I would preferably like it to start whenever I press a hotkey or something, but having to ...
1
vote
1answer
45 views

How do I use a numerical variable and a loop in automator?

Since scripting is not that powerful in case of Preview.app, I am trying to find the solution with Automator. Here's the problem: I've got a protected pdf file of 130 pages. It happens that I can't ...
0
votes
2answers
55 views

How to mount and name a volume if it's not already mounted with a startup script

I'm trying to do something I thought would be simple, but after researching it I feel like I'm half way towards shaving a yak, so I'm asking for advice. I want to create a script that lets me and my ...
0
votes
1answer
24 views

how can I use applescript to type?

how can I use applescript to type in a specified area on the screen? I've tried the 'keystroke' command, but it doesn't seem to work. also, how can I use applescript to display an image? thanks a lot ...
0
votes
2answers
45 views

Open iMovie with alt down from AppleScript

How to open iMovie with alt from keyboard with AppleScript?
0
votes
0answers
22 views

Applescript - How to Create a Contact IN a specific Account?

I am using Applescript on Yosemite 10.10.4 to create contacts in the contacts app. I have two iCloud accounts configured on my Mac. One personal (The "main" iCloud account) and one business. ...
2
votes
1answer
45 views

AppleScript: 'exists' returns true every time

On every exists in AppleScript the result is true. For example: set a to (POSIX path of (((path to home folder from user domain) as text) & "skfhshfkh:" & "hfjhsfhsj:")) if exists a then ...
1
vote
1answer
82 views

Turn Wifi off/on with a single key?

Is there a way to assign the WiFi on/off function to one of the function keys like F4 that I otherwise never use? I assume Applescript would be required. However I may want to use a BASH script ...
1
vote
2answers
258 views

How can I convert a text selection to upper case in Apple Mail with a keyboard shortcut

Apple Mail version Version 6.6 (1510) OS 10.8.5 Is there a keyboard shortcut for converting the case for a text selection in the message editor? I know I can right-click and access this from the ...
0
votes
1answer
245 views

AppleScript - GUI Scripting and setting checkbox, radio button and field values

I'm working on an GUI scripting AppleScript that will, for the open FileMaker Pro Advanced document, go to the File menu and select the File Options dialog box, then set some checkbox/radio button and ...
0
votes
1answer
5k views

How to create applescripts for Outlook 2011 to replicate Quicksteps?

Outlook 2010+ for PCs includes Quickstep functionality, that allows you to create multistep rules or macros to easily perform actions on selected email(s). Examples are automatically categorize an ...
1
vote
2answers
59 views

Get part of result of command line in OS X

I would like to use the following command line to get the current Wi-Fi channel. /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I I would like to use ...
0
votes
1answer
118 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 ...
0
votes
0answers
20 views

AppleScript and Configurator

I have written a bash script to modify a mobileconfig file (iOS profile in a xml-plist format) as per this link and I am now in the process where I would like to interact with Configurator via ...
0
votes
1answer
50 views

Get terminal application name from shell

I am used to my osascript aliases. In particular, I have nx for opening new tab and closing the old one. However, my scripts use application name to send keyboard signals to it. Instead of writing it ...
1
vote
1answer
47 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
1answer
26 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
46 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
191 views

AppleScript: Check if “System Events” has loaded

When an Active Directory (AD) user logs in, my AppleScript fires and attempts to put their AD home directory in the sidebar for easier access when opening and saving documents. It works great, but ...
0
votes
0answers
21 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 ...
1
vote
2answers
36 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. ...
1
vote
1answer
279 views

How can I regularly move movies in iTunes to an external drive?

I have been adding a lot of movies to iTunes lately. Problem is, the size grows very quickly. I appreciate having the metadata in one place, but I would want to move the actual files to an external ...
0
votes
0answers
34 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
25 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
40 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 ...
2
votes
2answers
95 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 ...
3
votes
2answers
4k views

Show Results of Automator-Terminal command

TL;DR If I create a .app via Automator, how can I show results of a shell script in a dialog or terminal window? I am using Automator to run a shell script adb install /Directory/$1.apk and if I ...
2
votes
2answers
151 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 ...
1
vote
2answers
81 views

Unable to run 'display notification' using osascript in a tmux session

If I run the following command in Apple Script Editor directly, display notification "Hello, world" I can see a notification as expected However if I tried to invoke it via command line: ...
1
vote
1answer
51 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 ...
0
votes
2answers
47 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
25 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
40 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
2answers
92 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 ...
0
votes
0answers
73 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
72 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
32 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 ...
2
votes
1answer
146 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
53 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
1answer
46 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
21 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
25 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
0answers
27 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
60 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 ...
1
vote
2answers
56 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 ...
0
votes
0answers
26 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
24 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 ...