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

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
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
42 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
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 ...
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
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
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
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 ...
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 ...
0
votes
0answers
69 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
107 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
213 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
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 ...
-1
votes
1answer
35 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
22 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
314 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
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 ...
0
votes
1answer
63 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
42 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
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 ...
1
vote
1answer
153 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
53 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
27 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
169 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
71 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
62 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
69 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
167 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
57 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
36 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
110 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 ...
0
votes
1answer
53 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.
-1
votes
1answer
110 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
20 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 ...
1
vote
2answers
69 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
20 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
51 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
1answer
122 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 ...
2
votes
2answers
157 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 ...
0
votes
0answers
46 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
67 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
153 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
1answer
47 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. ...
1
vote
1answer
113 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"