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
22 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
27 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
17 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 ...
0
votes
1answer
23 views

Open iMovie with alt down from AppleScript

How to open iMovie with alt from keyboard with AppleScript?
0
votes
2answers
40 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
24 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
0answers
6 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
20 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
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
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
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 ...
0
votes
1answer
38 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 ...
2
votes
0answers
38 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
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. ...
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 ...
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. ...
2
votes
2answers
52 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
72 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
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
19 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
26 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
23 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 ...
-2
votes
0answers
25 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"?
1
vote
1answer
38 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
0answers
26 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
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 ...
2
votes
1answer
90 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
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
1answer
31 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
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" ...
0
votes
0answers
32 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
18 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
13 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
39 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
82 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
84 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
53 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
28 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
11 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
98 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
30 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
40 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
32 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
42 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
94 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
31 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 ...