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
11 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
15 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 ...
3
votes
0answers
59 views
+50

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
2answers
30 views

Open iMovie with alt down from AppleScript

How to open iMovie with alt from keyboard with AppleScript?
0
votes
0answers
9 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
31 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 ...
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 ...
1
vote
1answer
33 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
votes
0answers
20 views

Applescript click button that has no title

Hi I would like to tell the application to click the Configuration button that has the value of 1 (top left) I have locked the accessibility inspector on it, it has no title and I dont know which way ...
1
vote
2answers
227 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
33 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
4k 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 ...
0
votes
2answers
41 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
41 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
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 ...
4
votes
3answers
2k views

Applescript Delay not working since switch to Yosemite

Ever since I upgraded to Yosemite, Applescripts that use delays have stopped working. How can I fix this? Here's the world's simplest Applescript, for the sake of an easy example: set volume output ...
0
votes
0answers
7 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
21 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
33 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
14 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
21 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
176 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
11 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
26 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
2answers
258 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
9 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
18 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. ...
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 ...
1
vote
0answers
19 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
73 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
3k 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 ...
0
votes
1answer
1k 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 ...
2
votes
2answers
53 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
67 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
38 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
37 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
20 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
27 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
44 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
26 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
40 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 ...
-2
votes
0answers
26 views

Remove specific text from variable in applescript

If I have a variable (a) that contains info such as "2 tbsp (tablespoons)" or "2 oz (ounces)" is there a way to remove the abbreviations and have it just say "2 tablespoons" or "2 ounces"?
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
0answers
29 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 ...
2
votes
1answer
91 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
44 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
32 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
15 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
18 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
23 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" ...