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

How to check which files have been copied to the main hard drive and which ones have not been copied?

I formatted my MacBook main drive some months ago and, in order to not lose data, I created a .dmg image of the hard drive before the formatting procedure and saved it to an external device. Then, ...
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
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 ...
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
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 ...
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 ...
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 ...
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 ...
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
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 ...
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
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 ...
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 ...
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?" ...
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 ...
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
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 ...
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 ...
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
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. ...
1
vote
1answer
39 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 ...
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
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
25 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
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 ...
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
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 ...
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
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
51 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 ...
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
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 ...
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
48 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 ...
1
vote
1answer
29 views

Automatically convert a file whenever it is saved?

Is it possible to automatically convert a file to another format every time it is saved? Some context: I have a Numbers file which needs to be converted to csv for processing by various shell ...
0
votes
0answers
31 views

How to map buttons on my mouse with AppleScript?

Since BetterTouchTool is becoming paid, I was looking for an alternative solutions to map my navigation buttons (prev. page, next page) on my mouse (Logitech MX518) that I enjoy using for browsing ...
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
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 ...
-1
votes
0answers
62 views

I need help with a automatic login AppleScript

I am running El Capitan 10.11.2 on a Mid-2015 MacBook Pro. I have attempted to write an AppleScript to enable automatic login then when finished modify to disable it. I am new to AppleScript but ...
1
vote
0answers
30 views

How to ensure that windows opened from the Dock open in the current Space/Desktop

A Mail window was in the Dock, and I clicked on it to restore it to my current Desktop. Instead of opening where I can see it, it went to some other Desktop, presumably the one it was in when it was ...
3
votes
0answers
55 views

Can't Set Desktop Background in Fullscreen App

I have an 11" Air so I usually run all of my open applications in fullscreen mode. I have a launchd job for my user that runs a script every hour and every login to set the desktop background ...
3
votes
3answers
66 views

How preserve JPEG date stamps during Automator scaling?

Automator services embedded as a context menu are a great way to quickly scale down JPEGs in the finder. Right click the file, choose your scaling script, done in seconds. The problem is it ...
1
vote
0answers
27 views

How can I use turn on/off application in AppleScript?

Can I use to turn on/off application by 'keyboard' in AppleScript? I make simple macro program, for example auto mouse click or keyboard. But if idle start, I can't pause or stop it. So I need ...
0
votes
0answers
91 views

Query Status of Path Finder.app

I use Path Finder as a replacement to Finder.app (but still leave Finder running). One of the main reasons I use Path Finder, is that it lets me queue file transfers. However, it seems that Path ...
1
vote
0answers
71 views

AppleScript to automatically update IP-adress in Remote Desktop (ARD) on computers with DDNS

I've been searching for hours but couldn't find an answer yet hence my question here. I frequently use Apple Remote Desktop (ARD) and I have setup a DDNS for every computer. The only problem I have ...