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

Cannot Run GUI AppleScripts

I recently upgraded my system to OS X 10.11 El Capitan and ever since, my AppleScript which enables GUI scripting cannot be run. Part of the reason is obvious, the Universal Access pane in System ...
0
votes
1answer
39 views

I need an application to read aloud any emails that come into a specific email address

I want a sort of audio server which sits in background (running on OS X, not iOS) and whenever an email arrives at a specific address, it reads it aloud. Ideally there would be also an option to ...
0
votes
1answer
22 views

Having problems with an AppleScript

This isn't launching FaceTime when I want it to! I want it to launch an app, and you get to choose what app it launches, so if I press Google Chrome, then it launches Google Chrome, but it doesn't ...
1
vote
1answer
36 views

AppleScript help

I'm trying to make an app that will open different apps, and give you a list, but I keep getting error messages. Is it possible to do this? display dialog "Hello and welcome to my app!" buttons ...
0
votes
0answers
19 views

Converting .VCF to .CSV

I'm trying to get a group of contacts from BusyContacts to MailChimp. I have exported the group as a VCF file. Now I need to convert that VCF file to CSV. When I open my VCF file in a text editor, ...
1
vote
1answer
15 views

Apple Script to Export from application

I'm new to AppleScript and wanted to export my citations using AppleScript. I found the following but am not sure the structure to change the following to my path folders, can you please provide an ...
1
vote
1answer
22 views

Applescript change folder and terminal commands

I have tried the following but cannot seem to get this to work: do script "cd ~/desktop/test; for x in ls -1 | sed -e 's/^\(.\).*/\1/' | sort -u; do mv -i ${x}?* $x done" I'm wanting to perform ...
0
votes
1answer
64 views

Terminal Command into Applescript

I have the following terminal command that I want to automate using applescript. I also would like to have a command to cd directories to the folder where I want to apply the command first. After cd ...
0
votes
1answer
25 views

Start Terminal in AppleScript

At work I'm overseeing several users who use MacBooks to connect to our enterprise environment. One of our vendors has an old server which users access via ssh. I've created an Automator workflow to ...
0
votes
0answers
11 views

Controlling Scroll Bars

On our company page in LinkedIn, under the analytics tab, there is scrollbar. I want a script which will scroll down to the bottom, hit "see more", and recursively continue until the data is ...
1
vote
1answer
197 views

Extract links from email based on the anchor text, not the href

I am putting together an Automator workflow that will allow me to bind a hotkey to a Smart Mailbox listing and effectively automate the task of clicking "Unsubscribe" in emails which have that text ...
0
votes
1answer
22 views

Temporary Folder Difference for Apple Script

This seems to work as a temporary folder in Apple Script path to temporary items but path to temporary items from user domain is also recommended to use. Which one is correct and safe to use? ...
1
vote
1answer
17 views

Temporary Folder Path for Apple Script

set targetFile to (path to temporary items as string) & fileName I am trying to download a web image to temporary folder by curl in a Apple Script. According to the above code, the curl ...
1
vote
2answers
32 views

Can I change the button “m” with space bar?

My space bar won't work so I want to use the m button as space bar. Is there a way to do that? Maybe with the Automator using an apples riptide or something?
0
votes
1answer
10 views

Notes script to access notes in specific folder?

I have tested this Notes export script (https://github.com/alexwlchan/notes-export/blob/master/notes-export.scpt). It seems to work, but the issue is that I want to specify a specific Notes folder to ...
0
votes
1answer
32 views

How can you access Apple Mail from Apple script?

I want to archive old emails ( say, older then 7 days ) from my inbox automatically with an applescript scheduled via cron. To be honest, I am open to other Apple-friendly languages such as Swift or ...
1
vote
1answer
979 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" ...
1
vote
2answers
33 views

Disable Screen Sleep AppleScript

Is there a way to turn screen sleeping on and off temporarily through AppleScript? I'm making a script at the moment that will run for a few minutes when I'm away, so I don't want it to sleep, but ...
0
votes
1answer
4k 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 ...
2
votes
1answer
79 views

Batch compress multiple folders into individual zip files

I have dozens of folders that I need to compress into individual zip files. If I select all of these folders in the Finder and do "Compress [X] Items," I get one zip file containing all of the ...
3
votes
2answers
303 views

VPN Auto connect Notification

I have implemented a VPN auto connect option via Applescript [see code]. It works like a charme there's only one problem. Every time when i open my MacBook I get this [see printscreen] notification. A ...
0
votes
2answers
481 views

Auto vpn connection dependent on Wifiname

I recently asked a question Auto connect vpn upon login/boot which got answered well using apple script . I want to extend this question to the following problem: The vpn connection should be ...
0
votes
1answer
15 views

App made in Applescript Icon wont change

The app's Icon wont change for me I tried copying in contents as "applet.icns" I tried Copy + Paste in get info nothing will work I found a article on the internet about this problem they say that you ...
0
votes
2answers
17 views

Change installed AppleScript version

Is there any way to change the installed version of AppleScript? After mistakenly identifying my version of AppleScript as 1.0 by using a 15 year old script (turns out that just checks the version of ...
0
votes
1answer
17 views

Applescript : Only run the script if specific input is entered

Is it possible to run an applescript ONLY if a specific input is inserted If I put in my attempts at the code i might be clearer at what Im getting at set x to display dialog "What is your password?" ...
0
votes
0answers
38 views

Is it possible to simulate a continuos press in AppleScript?

The closest solution to a continuous key press that I know is just repeating a key press a certain number of times: repeat 1000 times tell application "System Events" to keystroke "c" using ...
1
vote
1answer
33 views

If “STOP” Is typed do this

Would it be possible For example would it be possible for me to code a very simple repeat code but say If I just typed STOP that it would end the program here is my beginning code for the repeat. set ...
2
votes
2answers
2k views

Double click in AppleScript

How do you write the command to carry out a double click with a mouse at a specific location in AppleScript?
0
votes
0answers
21 views

How to repair a corrupt Applescript Editor

I have an applescript that I've been working on the past week or so. I've been running & rerunning a script, fixing bugs, etc. that are deep in the code. Sometimes, the script would take a ...
0
votes
1answer
16 views

Script opens two terminal windows

I coded this little AppleScript using Automator: tell application "Terminal" do script "myscript" end tell This perfectly works but has a side effect: when I close the window, there's always the ...
-1
votes
0answers
36 views

AppleScript asks questions, select multiple finder files, combine results into a text file

I am looking for some help getting an apple script setup. I have been trying to copy and past from different examples on the web to no avail. The AppleScript will display a dialogue box asking for ...
1
vote
1answer
37 views

How can I run a shell script with admin privileges from Applescript?

I am writing an Applescript that aims to automate the install (add to root keychain) and 'Always Trust' setting by simply launching the Applescript. I'm stuck with how to get the admin user ...
1
vote
1answer
48 views

Get AppleScript Path of Parent Folder

I am writing an AppleScript that will be run from a USB drive, but the dive name may change often so I need to figure out how to get the directory path of the parent folder that contains the script. ...
0
votes
1answer
24 views

Swaping spaces between monitors

Given that I have 'mission control/displays have separate spaces' unchecked: is there a way to swap spaces between displays (and assign a shortcut to it)? For example: if I have 'Desktop 4' on the ...
0
votes
2answers
1k views

How to select message in Mail with ID using AppleScript?

With the help of "Ask Different" I got my first AppleScript program working, and I'm trying to improve it. I'm again stymied though. I have found the message number ID of a particular message in my ...
0
votes
1answer
35 views

AppleScript Save As Dialog in Safari Reader Save As PDF

I have an AppleScript to open move a Safari webpage into Reader view and then to Save As a PDF. I would like it to Save As the PDF with default filename, but always in the same specific location. I'm ...
0
votes
0answers
19 views

AppleScript Automator back-compatibility

I made a little, easy AppleScript and used Automator to launch it on click: tell application "Terminal" do script "myScript" end tell What about back-compatibility? Can I run it on every previous ...
1
vote
1answer
24 views

Automator workflow / app to refresh a given tab in Safari (or even Crome)

When I am coding my Rails app I am switching back to Safari quite often to refresh my local version of the site to see if my changes are correct. It would be awesome to just hit one of the function ...
0
votes
1answer
2k 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
2answers
47 views

How to put a Mac to sleep after display disconnect using AppleScript?

I would like to solve the issue from this question, namely, after disconnecting a Cinema display from a clamshell MacBook I would like to let the MacBook go to sleep without opening and closing the ...
0
votes
1answer
52 views

Help converting Apple Script to Shell Script

This Apple Script works great to mount the logged in Active Directory users network homedrive as a mounted network drive but we currently have it running as an App at login via "Login Items". ...
1
vote
1answer
34 views

AppleScript : Download to a AFP drive

I try to download files to a AFP drive but always have "Warning: Failed to create the file /Volumes/home/Downloads: Is a directory " But the last command work fine tell application "Finder" to ...
0
votes
0answers
13 views

AppleScript to Like a SoundCloud Track using System Events

I'd like to create an AppleScript to like a SoundCloud track. Since SoundCloud supports keyboard shortcuts, I tried to use System Events. (l "ell" is the shortcut.) This is what I have so far, but ...
0
votes
0answers
31 views

How to make an AppleScript typer

I need an AppleScript that will type a certain text when I press "4" This script I made does the typing I need but it needs to be activated with a keystroke "4" and that is where I am stuck: or as ...
0
votes
1answer
31 views

Applescript insert images into .Pages document

I've tried numerous examples online, but all don't seem to work. The image is received via Automator and each file is dispensed incrementally and ran through the following Applescript: on run ...
1
vote
1answer
50 views

Automator: extract PDF text and save in current directory

I've made an Automator service for extracting PDF text and saving it in the current directory, and it works reasonably well. It takes one or several PDF files, extracts the text, and saves it as ...
0
votes
0answers
23 views

How to define keyboard shortcut for “Save to your Music” Functionality for Spotify

I really love the Spotify app. When I like some songs on Spotify, I'm using "Save to Your Music" to add songs to my Spotify library. But this requires switching applications and using the mouse, so I ...
1
vote
2answers
32 views

How do I create an automator to forward mail?

My parents both have GMAIL accounts. We were wondering if there was a way to forward email so when my dad's account receives email from a certain sender it would be forwarded to my mom's account. ...
0
votes
0answers
19 views

Replaceing Folder Action Dispatcher with LaunchAgent on Yosemite

The fact that Yosemite's Folder Action Dispatcher (the thing that watches folders for changes and then performs some action) is broken (High CPU/mem) is well documented. However, what to do about it ...
5
votes
1answer
47 views

AppleScript : Set do script result as variable

I would like to get the result of this search and display the result in a notification or safari popup. " set result to do shell script "curl https://www.binlist.net/json/" & cc without altering ...